Package Products :: Package ZenRRD :: Module RRDDaemon :: Class RRDDaemon |
[hide private]
[frames] | no frames]

# Class RRDDaemon

source code

                     object --+
                              |
       ZenUtils.CmdBase.CmdBase --+
                                  |
       ZenUtils.ZenDaemon.ZenDaemon --+
                                      |
    twisted.spread.pb.Referenceable --+
                                      |
               ZenHub.PBDaemon.PBDaemon --+
                                          |
                                         RRDDaemon

Holds the code common to performance gathering daemons.

Instance Methods | [hide private]
__init__(self, name, noopts=False) Initializer | source code
list |
getDevicePingIssues(self) Determine which devices we shouldn't expect to hear back from. | source code
remote_setPropertyItems(self, items) Set zProperties provided from zenhub. | source code
remote_updateDeviceList(self, devices) Callable from zenhub. | source code
setPropertyItems(self, items) Set zProperties | source code
sendThresholdEvent(self, **kw) "Send the right event class for threshhold events" | source code
buildOptions(self) Command-line options to add | source code
logError(self, msg, error) Log messages to the logger | source code
error(self, error) Log an error, including any traceback data for a failure Exception Stop if we got the --cycle command-line option. | source code
errorStop(self, why) Twisted callback to receive fatal messages. | source code
list |
model(self) Return the list of services from zenhub | source code
Inherited from `ZenHub.PBDaemon.PBDaemon`: `connect`, `connectTimeout`, `connected`, `connecting`, `eventService`, `generateEvent`, `getInitialServices`, `getService`, `getServiceNow`, `gotPerspective`, `heartbeat`, `loadCounters`, `pushEvents`, `pushEventsLoop`, `remote_getName`, `remote_shutdown`, `remote_updateThresholdClasses`, `run`, `saveCounters`, `sendEvent`, `sendEvents`, `setExitCode`, `sigTerm`, `stop` Inherited from `ZenHub.PBDaemon.PBDaemon` (private): `_getPerformanceEventsChunk`, `_performanceEvents`, `_trimEventQueue` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `audit`, `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenUtils.ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `ZenUtils.CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `parseOptions`, `pretty_print_config_comment`, `validateConfigFile`

Class Variables | [hide private]
| properties = `'configCycleInterval',`
| configCycleInterval = `20`
| rrd = `None`
| shutdown = `False`
| thresholds = `None`
Inherited from `ZenHub.PBDaemon.PBDaemon`: `heartbeatEvent`, `heartbeatTimeout`, `initialServices`, `name` Inherited from `ZenHub.PBDaemon.PBDaemon` (private): `_customexitcode`, `_sendingEvents` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `pidfile` Inherited from `ZenUtils.CmdBase.CmdBase`: `doesLogging`

Method Details | [hide private]

### __init__(self, name, noopts=False) (Constructor) | source code
Initializer Parameters: `name` (string) - name of the daemon `noopts` (boolean) - process command-line arguments? Overrides: ZenUtils.CmdBase.CmdBase.__init__

### getDevicePingIssues(self) | source code
Determine which devices we shouldn't expect to hear back from. Returns: list list of devices

### remote_setPropertyItems(self, items) | source code
Set zProperties provided from zenhub. Parameters: `items` (list) - list of zProperties to obtain Overrides: ZenHub.PBDaemon.PBDaemon.remote_setPropertyItems

### remote_updateDeviceList(self, devices) | source code
Callable from zenhub. Parameters: `devices` (list) - list of devices (unused)

### setPropertyItems(self, items) | source code
Set zProperties Parameters: `items` (list) - list of zProperties

### sendThresholdEvent(self, **kw) | source code
"Send the right event class for threshhold events" Parameters: `kw` (dictionary of keyword arguments) - keyword arguments describing an event

### buildOptions(self) | source code
Command-line options to add Overrides: ZenUtils.CmdBase.CmdBase.buildOptions

### logError(self, msg, error) | source code
Log messages to the logger Parameters: `msg` (string) - the message `error` (Exception) - an exception

### error(self, error) | source code
Log an error, including any traceback data for a failure Exception Stop if we got the --cycle command-line option. Parameters: `error` (string) - the error message

### errorStop(self, why) | source code
Twisted callback to receive fatal messages. Parameters: `why` (string) - the error message

### model(self) | source code
Return the list of services from zenhub Returns: list list of services