Package DataCollector :: Module zenmodeler :: Class ZenModeler
[hide private]
[frames] | no frames]

Class ZenModeler

source code

Products.ZenUtils.CmdBase.CmdBase --+        
                                    |        
Products.ZenUtils.ZenDaemon.ZenDaemon --+    
                                        |    
      Products.ZenUtils.ZCmdBase.ZCmdBase --+
                                            |
                                           ZenModeler
Known Subclasses:
zendisc.ZenDisc

Instance Methods [hide private]
 
__init__(self, noopts=0, app=None, single=False, threaded=None, keeproot=False) source code
 
loadPlugins(self)
Load plugins from the plugin directory.
source code
 
selectPlugins(self, device, transport)
Build a list of active plugins for a device.
source code
 
resolveDevice(self, device)
If device is a string look it up in the dmd.
source code
 
collectDevice(self, device)
Collect data from a single device.
source code
 
cmdCollect(self, device, ip, timeout)
Start command collection client.
source code
 
snmpCollect(self, device, ip, timeout)
Start snmp collection client.
source code
 
addClient(self, obj, timeout, clientType, name) source code
 
portscanCollect(self, device, ip, timeout)
Start portscan collection client.
source code
 
checkCollection(self, device) source code
 
clientFinished(self, collectorClient)
Callback that processes the return values from a device.
source code
 
checkStop(self)
if there's nothing left to do, maybe we should terminate
source code
 
fillCollectionSlots(self)
If there are any free collection slots fill them up
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code
 
processOptions(self) source code
 
timeoutClients(self) source code
 
reactorLoop(self) source code
 
stop(self)
Stop ZenModeler make sure reactor is stopped, join with applyData thread and close the zeo connection.
source code
 
mainLoop(self) source code
 
sigTerm(self, *unused)
controlled shutdown of main loop on interrupt
source code
 
main(self) source code
 
collectSingle(self, device) source code

Inherited from Products.ZenUtils.ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect

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

Class Variables [hide private]
  generateEvents = True

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self, noopts=0, app=None, single=False, threaded=None, keeproot=False)
(Constructor)

source code 
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.__init__

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.buildOptions
(inherited documentation)

sigTerm(self, *unused)

source code 
controlled shutdown of main loop on interrupt
Overrides: Products.ZenUtils.ZenDaemon.ZenDaemon.sigTerm