Package Products :: Package ZenStatus :: Module zenstatus :: Class ZenStatusTask |
[hide private]
[frames] | no frames]

# Class ZenStatusTask

source code

    ZenCollector.tasks.BaseTask --+
                                  |
                                 ZenStatusTask

Instance Methods | [hide private]
__init__(self, name, configId, scheduleIntervalSeconds, taskConfig) Construct a new task for checking the status | source code
_scan_device(self, ip_address) | source code
doTask(self) | source code
processTestWithRetry(self, result) Test a connection to a device. | source code
processTest(self, result) | source code
handleExceptions(self, reason) Log internal exceptions that have occurred from testing TCP services | source code
cleanup(self) | source code

Method Details | [hide private]

### __init__(self, name, configId, scheduleIntervalSeconds, taskConfig) (Constructor) | source code
Construct a new task for checking the status Parameters: `deviceId` (string) - the Zenoss deviceId to watch `taskName` (string) - the unique identifier for this task `scheduleIntervalSeconds` (int) - the interval at which this task will be collected `taskConfig` - the configuration for this task

### processTestWithRetry(self, result) | source code
Test a connection to a device. Parameters: `result` (ZenTcpClient object) - device and TCP service to test

### handleExceptions(self, reason) | source code
Log internal exceptions that have occurred from testing TCP services Parameters: `reason` (Twisted error instance) - error message