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

Class zenprocess

source code

  Products.ZenUtils.CmdBase.CmdBase --+                
                                      |                
  Products.ZenUtils.ZenDaemon.ZenDaemon --+            
                                          |            
 twisted.spread.jelly.Jellyable --+       |            
                                  |       |            
twisted.spread.flavors.Serializable --+   |            
                                      |   |            
   twisted.spread.flavors.Referenceable --+            
                                          |            
          Products.ZenHub.PBDaemon.PBDaemon --+        
                                              |        
                            RRDDaemon.RRDDaemon --+    
                                                  |    
                              SnmpDaemon.SnmpDaemon --+
                                                      |
                                                     zenprocess

Instance Methods [hide private]
 
__init__(self) 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) 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, error, 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 an value in the right path in RRD files
source code
 
heartbeat(self, *unused)
if cycling, send a heartbeat, else, shutdown
source code
 
connected(self) source code

Inherited from SnmpDaemon.SnmpDaemon: setPropertyItems

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

Inherited from Products.ZenHub.PBDaemon.PBDaemon: connect, eventService, getInitialServices, getService, getServiceNow, gotPerspective, remote_getName, remote_shutdown, run, sendEvent, sigTerm, stop

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Class Variables [hide private]
  statusEvent = {'eventClass': '/Status/OSProcess', 'eventGroup'...
  initialServices = ['EventService', 'ProcessConfig']
  processConfigInterval = 1200
  processCycleInterval = 300
  properties = ('configCycleInterval', 'snmpCycleInterval', 'pro...

Inherited from SnmpDaemon.SnmpDaemon: heartBeatTimeout, snmpCycleInterval

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

Inherited from Products.ZenHub.PBDaemon.PBDaemon: name

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: SnmpDaemon.SnmpDaemon.__init__

remote_updateDeviceList(self, devices)

source code 
Overrides: RRDDaemon.RRDDaemon.remote_updateDeviceList

heartbeat(self, *unused)

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

connected(self)

source code 
Overrides: Products.ZenHub.PBDaemon.PBDaemon.connected

Class Variable Details [hide private]

statusEvent

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

properties

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