Trees | Index | Help |
|
---|
Package ZenStatus :: Module zenping :: Class ZenPing |
|
CmdBase
--+ |ZenDaemon
--+ |ZCmdBase
--+ | ZenPing
Method Summary | |
---|---|
__init__(self)
| |
basic options setup sub classes can add more options here | |
Callback for a bad (no) ping response | |
Note the end of the ping list with a successful status message | |
get the config data | |
If this is a router PingJob, mark all Nodes away from the ping monitor as down | |
Pull up the next ping job, which may throw StopIteration | |
Perform a ping | |
Start a new run against the ping job tree | |
pingFailed(self,
err)
| |
Callback for a good ping response | |
resolve dns names and make StatusTest objects | |
wrapper for sending an event | |
Send a heartbeat event for this monitor. | |
Send an event based on a ping job to the event backend. | |
controlled shutdown of main loop on interrupt | |
Get things going | |
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
|
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 |
start(self)Get things going |
startOne(self)Initiate the next ping job |
Class Variable Details |
---|
agent
|
chunk
|
configCycleInterval
|
cycleInterval
|
eventGroup
|
jobs
|
maxFailures
|
pathcheckthresh
|
pinger
|
pingTreeIter
|
reconfigured
|
startTime
|
timeOut
|
tries
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:13 2007 | http://epydoc.sf.net |