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

Class ZenPing

source code

Products.ZenHub.PBDaemon.PBDaemon --+
                                    |
                                   ZenPing

Instance Methods [hide private]
 
__init__(self) source code
 
config(self) source code
 
stopOnError(self, error) source code
 
connected(self) source code
 
sendPingEvent(self, pj)
Send an event based on a ping job to the event backend.
source code
 
loadConfig(self, driver)
Get the configuration for zenping
source code
 
buildOptions(self) source code
 
pingCycle(self, unused=None)
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
 
heartbeat(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
 
remote_setPropertyItems(self, items)
The config has changed, maybe the device list is different
source code
 
remote_updateConfig(self) source code
 
copyItems(self, items) source code
 
clearDevice(self, device) source code
 
clearDeletedDevices(self, oldtree)
Send clears for any device we stop pinging
source code
 
remote_deleteDevice(self, device) source code
Class Variables [hide private]
  agent = "zenping"
  name = "zenping"
  eventGroup = "Ping"
  initialServices = PBDaemon.initialServices+ ['PingConfig']
  pingTimeOut = 1.5
  pingTries = 2
  pingChunk = 75
  pingCycleInterval = 60
  configCycleInterval = 20* 60
  maxPingFailures = 2
  pinger = None
  pingTreeIter = None
  startTime = None
  jobs = 0
  reconfigured = True
  loadingConfig = None
  lastConfig = None