Package ZenWin :: Module zeneventlog :: Class zeneventlog
[hide private]
[frames] | no frames]

Class zeneventlog

source code

Products.ZenWin.WinCollector.WinCollector --+
                                            |
                                           zeneventlog

Connect using WMI to gather the Windows Event Log and create Zenoss events.

Instance Methods [hide private]
object
fetchDevices(self, driver)
Generator function to return the list of devices to gather Event log information.
source code
objects
processDevice(self, device, timeoutSecs)
Scan a single device.
source code
Twisted defered
processLoop(self, devices, timeoutSecs)
Kick off the main loop of collecting data
source code
dictionary
makeEvent(self, name, lrec)
Put event in the queue to be sent to the ZenEventManager.
source code
int
cycleInterval(self)
Return the length of the cycleInterval
source code
Class Variables [hide private]
  agent = 'zeneventlog'
  name = 'zeneventlog'
  whatIDo = 'read the Windows event log'
  eventlogCycleInterval = 5* 60
  attributes = WinCollector.attributes+('eventlogCycleInterval',)
  deviceAttributes = WinCollector.deviceAttributes+('zWinEventlo...
  events = 0
Method Details [hide private]

fetchDevices(self, driver)

source code 
Generator function to return the list of devices to gather Event log information.
Parameters:
  • driver (driver object) - driver
Returns: object
objects

processDevice(self, device, timeoutSecs)

source code 
Scan a single device.
Parameters:
  • device (device object) - device to interrogate
  • timeoutSecs (int) - timeoutSecs
Returns: objects
objects

processLoop(self, devices, timeoutSecs)

source code 
Kick off the main loop of collecting data
Parameters:
  • devices (string) - devices
  • timeoutSecs (string) - timeoutSecs
Returns: Twisted defered
defered

makeEvent(self, name, lrec)

source code 
Put event in the queue to be sent to the ZenEventManager.
Parameters:
  • name (string) - name of the device
  • lrec (log record object) - log record
Returns: dictionary
dictionary with event keys and values

cycleInterval(self)

source code 
Return the length of the cycleInterval
Returns: int
number of seconds to repeat a collection cycle

Class Variable Details [hide private]

deviceAttributes

Value:
WinCollector.deviceAttributes+('zWinEventlog', 'zWinEventlogMinSeverit\
y')