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

Class zenprocess

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


Method Summary
  __init__(self)
  clearSnmpError(self, name, message)
  connected(self)
  deviceFailure(self, error, device)
Log exception for a single device
  devices(self)
Return a filtered list of devices
  fetchConfig(self)
Get configuration values from the Zope server
  fetchPerf(self, device)
Get performance data for all the monitored Processes on a device
  heartbeat(self, *unused)
if cycling, send a heartbeat, else, shutdown
  oneDevice(self, device)
  periodic(self, unused)
Basic SNMP scan loop
  remote_deleteDevice(self, doomed)
  remote_updateDevice(self, cfg)
  remote_updateDeviceList(self, devices)
  save(self, deviceName, pidName, statName, value, rrdType, min, max)
Save an value in the right path in RRD files
  scanDevice(self, device)
Fetch all the process info
  start(self, driver)
Read the basic config needed to do anything
  storePerfStats(self, results, device)
Save the performance data in RRD files
  storeProcessNames(self, results, device)
Parse the process tables and figure what pids are on the device
  updateDevices(self, cfgs, fetched)
  updateProcessStatus(self, status)
  updateSnmpStatus(self, updates)
Inherited from SnmpDaemon: setPropertyItems
Inherited from RRDDaemon: buildOptions, error, errorStop, getDevicePingIssues, logError, model, remote_setPropertyItems, sendThresholdEvent
Inherited from PBDaemon: connect, 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
list initialServices = ['EventService', 'ProcessConfig']
int processConfigInterval = 1200                                                                  
int processCycleInterval = 300                                                                   
tuple properties = ('configCycleInterval', 'snmpCycleInterval'...
dict statusEvent = {'eventClass': '/Status/OSProcess', 'event...
Inherited from SnmpDaemon: heartBeatTimeout, snmpCycleInterval
Inherited from RRDDaemon: configCycleInterval, heartbeatevt, rrd, shutdown
Inherited from PBDaemon: name
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging
Inherited from Referenceable: __implemented__, __provides__, perspective
Inherited from Jellyable: __providedBy__

Method Details

deviceFailure(self, error, device)

Log exception for a single device

devices(self)

Return a filtered list of devices

fetchConfig(self)

Get configuration values from the Zope server

fetchPerf(self, device)

Get performance data for all the monitored Processes on a device

heartbeat(self, *unused)

if cycling, send a heartbeat, else, shutdown
Overrides:
ZenRRD.RRDDaemon.RRDDaemon.heartbeat (inherited documentation)

periodic(self, unused=None)

Basic SNMP scan loop

save(self, deviceName, pidName, statName, value, rrdType, min='U', max='U')

Save an value in the right path in RRD files

scanDevice(self, device)

Fetch all the process info

start(self, driver)

Read the basic config needed to do anything

storePerfStats(self, results, device)

Save the performance data in RRD files

storeProcessNames(self, results, device)

Parse the process tables and figure what pids are on the device

Class Variable Details

initialServices

Type:
list
Value:
['EventService', 'ProcessConfig']                                      

processConfigInterval

Type:
int
Value:
1200                                                                  

processCycleInterval

Type:
int
Value:
300                                                                   

properties

Type:
tuple
Value:
('configCycleInterval', 'snmpCycleInterval', 'processCycleInterval')   

statusEvent

Type:
dict
Value:
{'eventClass': '/Status/OSProcess', 'eventGroup': 'Process'}           

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