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

# Module zenperfsnmp

source code

Classes | [hide private]
| SnmpConfig A class to transfer the SNMP collection data to zenperfsnmp
| Status Keep track of the status of many parallel requests
| SnmpStatus Track and report SNMP status failures
| OidData
| zenperfsnmp Periodically query all devices for SNMP values to archive in RRD files

Functions | [hide private]
makeDirs(dir) Wrapper around makedirs that sanity checks before running | source code
read(fname) Wrapper around the standard function to open a file and read its contents | source code
write(fname, data) Wrapper around the standard function to open a file and write data | source code
unlink(fname) Wrapper around the standard function to delete a file | source code
chunk(lst, n) Break lst into n-sized chunks | source code
sorted(lst, *args, **kw) Keep things sane in a pre-python 2.4 environment | source code
firsts(lst) The first element of every item in a sequence | source code
checkException(alog, function, *args, **kw) Execute the function with arguments and keywords. | source code

Variables | [hide private]
| __doc__ = `"""zenperfs`...``
| log = `logging.getLogger("zen.zenperfsnmp")`
| MAX_OIDS_PER_REQUEST = `40`
| MAX_SNMP_REQUESTS = `20`
| DEVICE_LOAD_CHUNK_SIZE = `20`
| CYCLES_TO_WAIT_FOR_RESPONSE = `2`

Function Details | [hide private]

### checkException(alog, function, *args, **kw) | source code
Execute the function with arguments and keywords. If there is an exception, log it using the given logging function 'alog'.

Variables Details | [hide private]

  ### __doc__ Value:
      """zenperfsnmp

      Gets SNMP performance data and stores it in RRD files.

      """