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

# Class SnmpPerformanceCollectionTask

source code

    ZenCollector.tasks.BaseTask --+
                                  |
                                 SnmpPerformanceCollectionTask

A task that performs periodic performance collection for devices providing data via SNMP agents.

Instance Methods | [hide private]
__init__(self, deviceId, taskName, scheduleIntervalSeconds, taskConfig) | source code
_failure(self, reason) Twisted errBack to log the exception for a single device. | source code
_connectCallback(self, result) Callback called after a successful connect to the remote device. | source code
_checkTaskTime(self) | source code
_untestedOids(self) | source code
_uncollectedOids(self) | source code
_fetchPerf(self) Get performance data for all the monitored components on a device | source code
_fetchPerfChunk(self, oid_chunk) | source code
_processBadOids(self, previous_bad_oids) | source code
_sendStatusEvent(self, summary, eventKey=None, severity=Event.Error, details=None) | source code
_doCollectOids(self, ignored) | source code
remove_from_good_oids(self, oids) | source code
_addBadOids(self, oids) Report any bad OIDs and then track the OID so we don't generate any further errors. | source code
_finished(self, result) Callback activated when the task is complete | source code
cleanup(self) | source code
Twisted deferred object |
doTask(self) Contact to one device and return a deferred which gathers data from the device. | source code
_logTaskOidInfo(self, previous_bad_oids) | source code
_logOidsNotCollected(self, reason) | source code
_connect(self) Create a connection to the remote device | source code
_close(self) Close down the connection to the remote device | source code
displayStatistics(self) Called by the collector framework scheduler, and allows us to see how each task is doing. | source code

Class Variables | [hide private]
| STATE_CONNECTING = `'CONNECTING'`
| STATE_FETCH_PERF = `'FETCH_PERF_DATA'`
| STATE_STORE_PERF = `'STORE_PERF_DATA'`

Method Details | [hide private]

### __init__(self, deviceId, taskName, scheduleIntervalSeconds, taskConfig) (Constructor) | source code
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

### _failure(self, reason) | source code
Twisted errBack to log the exception for a single device. Parameters: `reason` (Twisted error instance) - explanation of the failure

### _fetchPerf(self) | source code
Get performance data for all the monitored components on a device Decorators: `@defer.inlineCallbacks`

### _fetchPerfChunk(self, oid_chunk) | source code
Decorators: `@defer.inlineCallbacks`

### _processBadOids(self, previous_bad_oids) | source code
Decorators: `@defer.inlineCallbacks`

### _doCollectOids(self, ignored) | source code
Decorators: `@defer.inlineCallbacks`

### _finished(self, result) | source code
Callback activated when the task is complete Parameters: `result` (array of (boolean, dictionaries)) - results of SNMP gets

### doTask(self) | source code
Contact to one device and return a deferred which gathers data from the device. Returns: Twisted deferred object A task to scan the OIDs on a device.