Take actions based on events in the event manager. Start off by
sending emails and pages.
|
loadActionRules(self)
Load the ActionRules into the system. |
source code
|
|
|
|
|
execute(self,
stmt)
Execute stmt against ZenEventManager connection and return the number
of rows that were affected. |
source code
|
|
|
query(self,
stmt)
Execute stmt against ZenEventManager connection and fetch all
results. |
source code
|
|
|
_describe(self,
stmt)
Execute stmt against ZenEventManager connection and return the cursor
description. |
source code
|
|
|
_columnNames(self,
table)
Returns the column names for the table using a ZenEventManager
connection. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processRules(self,
zem)
Run through all rules matching them against events. |
source code
|
|
|
|
|
filterDeviceName(self,
zem,
whereClause)
This is somewhat janky but we only store the device id in the mysql
database but allow people to search based on the device
"title". |
source code
|
|
|
|
|
maintenance(self,
zem)
Run stored procedures that maintain the events database. |
source code
|
|
|
|
|
fetchMonitorHostname(self,
monitor='localhost') |
source code
|
|
|
heartbeatEvents(self)
Create events for failed heartbeats. |
source code
|
|
|
runEventCommand(self,
cmd,
data,
clear=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
sendEvent(self,
evt)
Send event to the system. |
source code
|
|
|
sendHeartbeat(self)
Send a heartbeat event for this monitor. |
source code
|
|
|
|
|
|
|
stripTags(self,
data)
A quick html => plaintext converter that retains and displays
anchor hrefs |
source code
|
|
|
|
|
|
|
|
|
sigTerm(self,
signum=None,
frame=None)
controlled shutdown of main loop on interrupt |
source code
|
|