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

Class zenperfxmlrpc

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


Periodically query all devices for XMLRPC values to archive in RRD files
Method Summary
  __init__(self)
  badMethodName(self, deviceName, url, methodName)
  checkStatus(self, successCounts, deviceName)
  cleanup(self, fullPath)
  connected(self)
Run forever, fetching and storing
  insertBasicAuth(self, url, username, password)
  maybeQuit(self)
Stop if all performance has been fetched, and we aren't cycling
  readDevices(self, unused)
Periodically fetch xmlrpc values from all known devices
  remote_deleteDevice(self, doomed)
  remote_updateDeviceConfig(self, cfg)
  reportRate(self, *unused)
Finished reading all the devices, report stats and maybe stop
  scanCycle(self, *unused)
  sendThresholdEvent(self, **kw)
Send the right event class for threshhold events
  setPropertyItems(self, items)
extract configuration elements used by this server
  setUnresponsiveDevices(self, arg)
remember all the unresponsive devices
  startReadDevice(self, deviceName)
Initiate a request (or several) to read all the xmlrpc URLS and all associated methods for a device
  startUpdateConfig(self, driver)
Periodically ask the Zope server for basic configuration data.
  storeRRD(self, deviceName, url, methodName, value)
store a value into an RRD file
  storeValues(self, updates, deviceName, url)
decode responses from devices and store the elements in RRD files
  updateDeviceConfig(self, xmlRpcTargets)
Save the device configuration and create an XMLRPC proxy to talk to it
  updateDeviceList(self, deviceList)
Update the config for devices
  updateProxy(self, url, username, password, deviceStatus)
create or update proxy
Inherited from RRDDaemon: buildOptions, error, errorStop, getDevicePingIssues, heartbeat, logError, model, remote_setPropertyItems, remote_updateDeviceList
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
int heartBeatTimeout = 180                                                                   
list initialServices = ['EventService', 'XmlRPCConfig']
int maxRrdFileAge = 2592000                                                               
tuple properties = ('configCycleInterval', 'xmlrpcCycleInterva...
Status status = <ZenRRD.zenperfxmlrpc.Status instance at 0x37d7...
int xmlrpcCycleInterval = 60                                                                    
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

maybeQuit(self)

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

readDevices(self, unused=None)

Periodically fetch xmlrpc values from all known devices

reportRate(self, *unused)

Finished reading all the devices, report stats and maybe stop

sendThresholdEvent(self, **kw)

Send the right event class for threshhold events
Overrides:
Products.ZenRRD.RRDDaemon.RRDDaemon.sendThresholdEvent

setPropertyItems(self, items)

extract configuration elements used by this server
Overrides:
Products.ZenRRD.RRDDaemon.RRDDaemon.setPropertyItems (inherited documentation)

setUnresponsiveDevices(self, arg)

remember all the unresponsive devices

startReadDevice(self, deviceName)

Initiate a request (or several) to read all the xmlrpc URLS and all associated methods for a device

startUpdateConfig(self, driver)

Periodically ask the Zope server for basic configuration data.

storeRRD(self, deviceName, url, methodName, value)

store a value into an RRD file

storeValues(self, updates, deviceName, url)

decode responses from devices and store the elements in RRD files

updateDeviceConfig(self, xmlRpcTargets)

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

updateDeviceList(self, deviceList)

Update the config for devices

updateProxy(self, url, username, password, deviceStatus)

create or update proxy

Class Variable Details

heartBeatTimeout

Type:
int
Value:
180                                                                   

initialServices

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

maxRrdFileAge

Type:
int
Value:
2592000                                                               

properties

Type:
tuple
Value:
('configCycleInterval', 'xmlrpcCycleInterval')                         

status

Type:
Status
Value:
<ZenRRD.zenperfxmlrpc.Status instance at 0x37d7198>                    

xmlrpcCycleInterval

Type:
int
Value:
60                                                                    

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