Package ZenStatus :: Module zenping :: Class ZenPing
[hide private]
[frames] | no frames]

Class ZenPing

source code

Products.ZenUtils.CmdBase.CmdBase --+        
                                    |        
Products.ZenUtils.ZenDaemon.ZenDaemon --+    
                                        |    
      Products.ZenUtils.ZCmdBase.ZCmdBase --+
                                            |
                                           ZenPing

Instance Methods [hide private]
 
__init__(self) source code
 
sendEvent(self, evt)
wrapper for sending an event
source code
 
sendPingEvent(self, pj)
Send an event based on a ping job to the event backend.
source code
 
loadConfig(self)
get the config data
source code
 
prepDevices(self, devices)
resolve dns names and make StatusTest objects
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code
 
pingCycle(self)
Start a new run against the ping job tree
source code
 
startOne(self)
Initiate the next ping job
source code
 
ping(self, pj)
Perform a ping
source code
 
next(self)
Pull up the next ping job, which may throw StopIteration
source code
 
endCycle(self, *unused)
Note the end of the ping list with a successful status message
source code
 
sendHeartbeat(self)
Send a heartbeat event for this monitor.
source code
 
pingSuccess(self, pj)
Callback for a good ping response
source code
 
pingFailed(self, err) source code
 
doPingFailed(self, err)
Callback for a bad (no) ping response
source code
 
sigTerm(self, *unused)
controlled shutdown of main loop on interrupt
source code
 
start(self)
Get things going
source code
 
markChildrenDown(self, pj)
If this is a router PingJob, mark all Nodes away from the ping monitor as down
source code

Inherited from Products.ZenUtils.ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Class Variables [hide private]
  agent = 'ZenPing'
  eventGroup = 'Ping'
  pathcheckthresh = 10
  timeOut = 1.5
  tries = 2
  chunk = 75
  cycleInterval = 60
  configCycleInterval = 1200
  maxFailures = 2
  pinger = None
  pingTreeIter = None
  startTime = None
  jobs = 0
  reconfigured = True

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.__init__

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.buildOptions
(inherited documentation)

sigTerm(self, *unused)

source code 
controlled shutdown of main loop on interrupt
Overrides: Products.ZenUtils.ZenDaemon.ZenDaemon.sigTerm