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

Class zenperfsnmp

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


Periodically query all devices for SNMP values to archive in RRD files
Method Summary
  __init__(self)
  badOid(self, deviceName, oid)
  cleanup(self, fullPath)
  connected(self)
Run forever, fetching and storing
  loadConfigs(self, perfRoot)
Read local configuration values at startup
  maybeQuit(self)
Stop if all performance has been fetched, and we aren't cycling
  pickleName(self, id)
  readDevices(self, unused)
Periodically fetch the performance values from all known devices
  remote_deleteDevice(self, doomed)
  remote_updateDeviceConfig(self, snmpTargets)
  remote_updateDeviceList(self, devices)
  reportRate(self, *unused)
Finished reading all the devices, report stats and maybe stop
  scanCycle(self, *unused)
  setUnresponsiveDevices(self, arg)
remember all the unresponsive devices
  startReadDevice(self, deviceName)
Initiate a request (or several) to read the performance data from a device
  startUpdateConfig(self, driver)
Periodically ask the Zope server for basic configuration data.
  storeRRD(self, device, oid, value)
store a value into an RRD file
  storeValues(self, updates, deviceName)
decode responses from devices and store the elements in RRD files
  updateAgentProxy(self, deviceName, ip, port, community, version, timeout, tries, maxoids)
create or update proxy
  updateDeviceConfig(self, snmpTargets)
Save the device configuration and create an SNMP proxy to talk to it
  updateDeviceList(self, responses, requested)
Update the config for devices devices
  updateSnmpStatus(self, status)
Update the Snmp failure counts from Status database
Inherited from SnmpDaemon: setPropertyItems
Inherited from RRDDaemon: buildOptions, error, errorStop, getDevicePingIssues, heartbeat, 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', 'SnmpPerfConfig']
int maxRrdFileAge = 2592000                                                               
int perfsnmpConfigInterval = 1200                                                                  
int perfsnmpCycleInterval = 300                                                                   
tuple properties = ('configCycleInterval', 'snmpCycleInterval'...
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

connected(self)

Run forever, fetching and storing
Overrides:
Products.ZenHub.PBDaemon.PBDaemon.connected

loadConfigs(self, perfRoot)

Read local configuration values at startup

maybeQuit(self)

Stop if all performance has been fetched, and we aren't cycling

readDevices(self, unused=None)

Periodically fetch the performance values from all known devices

reportRate(self, *unused)

Finished reading all the devices, report stats and maybe stop

setUnresponsiveDevices(self, arg)

remember all the unresponsive devices

startReadDevice(self, deviceName)

Initiate a request (or several) to read the performance data from a device

startUpdateConfig(self, driver)

Periodically ask the Zope server for basic configuration data.

storeRRD(self, device, oid, value)

store a value into an RRD file

storeValues(self, updates, deviceName)

decode responses from devices and store the elements in RRD files

updateAgentProxy(self, deviceName, ip, port, community, version, timeout, tries, maxoids=40)

create or update proxy

updateDeviceConfig(self, snmpTargets)

Save the device configuration and create an SNMP proxy to talk to it

updateDeviceList(self, responses, requested)

Update the config for devices devices

updateSnmpStatus(self, status)

Update the Snmp failure counts from Status database

Class Variable Details

initialServices

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

maxRrdFileAge

Type:
int
Value:
2592000                                                               

perfsnmpConfigInterval

Type:
int
Value:
1200                                                                  

perfsnmpCycleInterval

Type:
int
Value:
300                                                                   

properties

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

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