Trees | Index | Help |
|
---|
Package ZenEvents :: Module zenactions :: Class ZenActions |
|
CmdBase
--+ |ZenDaemon
--+ |ZCmdBase
--+ | ZenActions
Method Summary | |
---|---|
__init__(self)
| |
basic options setup sub classes can add more options here | |
checkVersion(self,
zem)
| |
eventCommands(self,
zem)
| |
execute(self,
stmt)
| |
format(self,
action,
data,
clear)
| |
getAckUrl(self,
evid)
| |
getDeleteUrl(self,
evid)
| |
getEventsUrl(self,
device)
| |
getUndeleteUrl(self,
evid)
| |
getUrl(self,
evid)
| |
Create events for failed heartbeats. | |
Load the ActionRules into the system. | |
main loop to run actions. | |
Run stored procedures that maintain the events database. | |
processEvent(self,
zem,
context,
action)
| |
Run through all rules matching them against events. | |
query(self,
stmt)
| |
run(self)
| |
runCycle(self)
| |
runEventCommand(self,
cmd,
data,
clear)
| |
Send an event to an email address. | |
Send event to the system. | |
Send a heartbeat event for this monitor. | |
Send and event to a pager. | |
controlled shutdown of main loop on interrupt | |
stop(self)
| |
A quick html => plaintext converter that retains and displays anchor hrefs | |
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 |
addstate = "INSERT INTO alert_state VALUES ('%s', '%s', ...
|
str |
clearEventSelect = "SELECT %s FROM history clear, hist...
|
str |
clearsel = "SELECT %s, h.evid FROM history h, alert_stat...
|
str |
clearstate = "DELETE FROM alert_state WHERE evid='%s' ...
|
NoneType |
lastCommand = None |
str |
newsel = "SELECT %s, evid FROM status WHERE %s AND evid ...
|
Inherited from ZenDaemon :
pidfile
Inherited from CmdBase :
doesLogging
|
Method Details |
---|
buildOptions(self)basic options setup sub classes can add more options here
|
heartbeatEvents(self)Create events for failed heartbeats. |
loadActionRules(self)Load the ActionRules into the system. |
mainbody(self)main loop to run actions. |
maintenance(self, zem)Run stored procedures that maintain the events database. |
processRules(self, zem)Run through all rules matching them against events. |
sendEmail(self, action, data, clear=None)Send an event to an email address. Return True if we think the email was sent, False otherwise. |
sendEvent(self, evt)Send event to the system. |
sendHeartbeat(self)Send a heartbeat event for this monitor. |
sendPage(self, action, data, clear=None)Send and event to a pager. Return True if we think page was sent, False otherwise. |
sigTerm(self, signum, frame)controlled shutdown of main loop on interrupt |
stripTags(self, data)A quick html => plaintext converter that retains and displays anchor hrefs |
Class Variable Details |
---|
addstate
|
clearEventSelect
|
clearsel
|
clearstate
|
lastCommand
|
newsel
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 | http://epydoc.sf.net |