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

Class zenprocess

source code

Products.ZenHub.PBDaemon.PBDaemon --+        
                                    |        
                  RRDDaemon.RRDDaemon --+    
                                        |    
                    SnmpDaemon.SnmpDaemon --+
                                            |
                                           zenprocess

Instance Methods [hide private]
 
__init__(self, noopts=False)
Initializer for common SNMP daemon classes
source code
 
devices(self)
Return a filtered list of devices
source code
 
fetchConfig(self)
Get configuration values from the Zope server
source code
 
remote_deleteDevice(self, doomed) source code
 
remote_updateDeviceList(self, devices)
Callable from zenhub.
source code
 
clearSnmpError(self, name, message) source code
 
remote_updateDevice(self, cfg) source code
 
updateDevices(self, cfgs, fetched) source code
 
start(self, driver)
Read the basic config needed to do anything
source code
 
updateSnmpStatus(self, updates) source code
 
updateProcessStatus(self, status) source code
 
oneDevice(self, device) source code
 
scanDevice(self, device)
Fetch all the process info
source code
 
deviceFailure(self, reason, device)
Log exception for a single device
source code
 
storeProcessNames(self, results, device)
Parse the process tables and figure what pids are on the device
source code
 
periodic(self, unused=None)
Basic SNMP scan loop
source code
 
fetchPerf(self, device)
Get performance data for all the monitored Processes on a device
source code
 
storePerfStats(self, results, device)
Save the performance data in RRD files
source code
 
save(self, deviceName, pidName, statName, value, rrdType, min='U', max='U')
Save a value into an RRD file
source code
 
heartbeat(self) source code
 
connected(self) source code

Inherited from SnmpDaemon.SnmpDaemon: setPropertyItems

Inherited from RRDDaemon.RRDDaemon: buildOptions, error, errorStop, getDevicePingIssues, logError, model, remote_setPropertyItems, sendThresholdEvent

Class Variables [hide private]
  statusEvent = {'eventClass': Status_OSProcess, 'eventGroup': '...
  initialServices = SnmpDaemon.initialServices+ ['ProcessConfig']
  processConfigInterval = 20* 60
  processCycleInterval = 5* 60
  properties = SnmpDaemon.properties+('processCycleInterval',)
  missing = 0
  restarted = 0
  parallelJobs = 10

Inherited from SnmpDaemon.SnmpDaemon: heartbeatTimeout, snmpCycleInterval

Inherited from RRDDaemon.RRDDaemon: configCycleInterval, rrd, shutdown, thresholds

Method Details [hide private]

__init__(self, noopts=False)
(Constructor)

source code 
Initializer for common SNMP daemon classes
Overrides: SnmpDaemon.SnmpDaemon.__init__
(inherited documentation)

remote_updateDeviceList(self, devices)

source code 
Callable from zenhub.
Overrides: RRDDaemon.RRDDaemon.remote_updateDeviceList
(inherited documentation)

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

source code 
Save a value into an RRD file
Parameters:
  • deviceName (string) - name of the remote device (ie a hostname)
  • pidName (string) - process id of the monitored process
  • statName (string) - metric name
  • value (number) - data to be stored
  • rrdType (string) - RRD data type (eg ABSOLUTE, DERIVE, COUNTER)
  • min (number) - minimum value acceptable for this metric
  • max (number) - maximum value acceptable for this metric

Class Variable Details [hide private]

statusEvent

Value:
{'eventClass': Status_OSProcess, 'eventGroup': 'Process'}