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

Class RRDDaemon

source code

Products.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
Class Variables [hide private]
  properties = 'configCycleInterval',
  configCycleInterval = 20
  rrd = None
  shutdown = False
  thresholds = None
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?

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

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

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