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

Class ZenPing

CmdBase --+        
          |        
  ZenDaemon --+    
              |    
       ZCmdBase --+
                  |
                 ZenPing


Method Summary
  __init__(self)
  buildOptions(self)
basic options setup sub classes can add more options here
  doPingFailed(self, err)
Callback for a bad (no) ping response
  endCycle(self, *unused)
Note the end of the ping list with a successful status message
  loadConfig(self)
get the config data
  markChildrenDown(self, pj)
If this is a router PingJob, mark all Nodes away from the ping monitor as down
  next(self)
Pull up the next ping job, which may throw StopIteration
  ping(self, pj)
Perform a ping
  pingCycle(self)
Start a new run against the ping job tree
  pingFailed(self, err)
  pingSuccess(self, pj)
Callback for a good ping response
  prepDevices(self, devices)
resolve dns names and make StatusTest objects
  sendEvent(self, evt)
wrapper for sending an event
  sendHeartbeat(self)
Send a heartbeat event for this monitor.
  sendPingEvent(self, pj)
Send an event based on a ping job to the event backend.
  sigTerm(self, *unused)
controlled shutdown of main loop on interrupt
  start(self)
Get things going
  startOne(self)
Initiate the next ping job
Inherited from ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
str agent = 'ZenPing'
int chunk = 75                                                                    
int configCycleInterval = 1200                                                                  
int cycleInterval = 60                                                                    
str eventGroup = 'Ping'
int jobs = 0                                                                     
int maxFailures = 2                                                                     
int pathcheckthresh = 10                                                                    
NoneType pinger = None                                                                  
NoneType pingTreeIter = None                                                                  
bool reconfigured = True
NoneType startTime = None                                                                  
float timeOut = 1.5                                                                   
int tries = 2                                                                     
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

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

doPingFailed(self, err)

Callback for a bad (no) ping response

endCycle(self, *unused)

Note the end of the ping list with a successful status message

loadConfig(self)

get the config data

markChildrenDown(self, pj)

If this is a router PingJob, mark all Nodes away from the ping monitor as down

next(self)

Pull up the next ping job, which may throw StopIteration

ping(self, pj)

Perform a ping

pingCycle(self)

Start a new run against the ping job tree

pingSuccess(self, pj)

Callback for a good ping response

prepDevices(self, devices)

resolve dns names and make StatusTest objects

sendEvent(self, evt)

wrapper for sending an event

sendHeartbeat(self)

Send a heartbeat event for this monitor.

sendPingEvent(self, pj)

Send an event based on a ping job to the event backend.

sigTerm(self, *unused)

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

start(self)

Get things going

startOne(self)

Initiate the next ping job

Class Variable Details

agent

Type:
str
Value:
'ZenPing'                                                              

chunk

Type:
int
Value:
75                                                                    

configCycleInterval

Type:
int
Value:
1200                                                                  

cycleInterval

Type:
int
Value:
60                                                                    

eventGroup

Type:
str
Value:
'Ping'                                                                 

jobs

Type:
int
Value:
0                                                                     

maxFailures

Type:
int
Value:
2                                                                     

pathcheckthresh

Type:
int
Value:
10                                                                    

pinger

Type:
NoneType
Value:
None                                                                  

pingTreeIter

Type:
NoneType
Value:
None                                                                  

reconfigured

Type:
bool
Value:
True                                                                   

startTime

Type:
NoneType
Value:
None                                                                  

timeOut

Type:
float
Value:
1.5                                                                   

tries

Type:
int
Value:
2                                                                     

Generated by Epydoc 2.1 on Thu Aug 16 09:55:13 2007 http://epydoc.sf.net