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

Class RRDDaemon

Jellyable --+            
            |            
 Serializable --+        
                |        
    Referenceable --+    
                    |    
      CmdBase --+   |    
                |   |    
        ZenDaemon --+    
                    |    
             PBDaemon --+
                        |
                       RRDDaemon

Known Subclasses:
zencommand, ZenMail, zenperfxmlrpc

Holds the code common to performance gathering daemons.
Method Summary
  __init__(self, name)
  buildOptions(self)
basic options setup sub classes can add more options here
  error(self, error)
Log an error, including any traceback data for a failure Exception
  errorStop(self, why)
  getDevicePingIssues(self)
  heartbeat(self, *unused)
if cycling, send a heartbeat, else, shutdown
  logError(self, msg, error)
  model(self)
  remote_setPropertyItems(self, items)
  remote_updateDeviceList(self, devices)
  sendThresholdEvent(self, **kw)
Send the right event class for threshhold events
  setPropertyItems(self, items)
extract configuration elements used by this server
Inherited from PBDaemon: connect, connected, eventService, getInitialServices, getService, getServiceNow, gotPerspective, remote_getName, remote_shutdown, run, sendEvent, sigTerm, stop
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions
Inherited from Referenceable: jellyFor, remoteMessageReceived
Inherited from Serializable: processUniqueID
Inherited from Jellyable: getStateFor

Class Variable Summary
int configCycleInterval = 20                                                                    
dict heartbeatevt = {'eventClass': '/Heartbeat'}
int heartBeatTimeout = 60                                                                    
tuple properties = ('configCycleInterval',)
NoneType rrd = None                                                                  
bool shutdown = False
Inherited from PBDaemon: initialServices, name
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging
Inherited from Referenceable: __implemented__, __provides__, perspective
Inherited from Jellyable: __providedBy__

Method Details

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
Products.ZenHub.PBDaemon.PBDaemon.buildOptions (inherited documentation)

error(self, error)

Log an error, including any traceback data for a failure Exception

heartbeat(self, *unused)

if cycling, send a heartbeat, else, shutdown

sendThresholdEvent(self, **kw)

Send the right event class for threshhold events

setPropertyItems(self, items)

extract configuration elements used by this server

Class Variable Details

configCycleInterval

Type:
int
Value:
20                                                                    

heartbeatevt

Type:
dict
Value:
{'eventClass': '/Heartbeat'}                                           

heartBeatTimeout

Type:
int
Value:
60                                                                    

properties

Type:
tuple
Value:
('configCycleInterval',)                                               

rrd

Type:
NoneType
Value:
None                                                                  

shutdown

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net