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

Module zenprocess

source code

Classes [hide private]
ZenProcessPreferences
DeviceStats
ProcessStats
Pid
Helper class to track process id information
ConfigListener
ZenProcessTask
A scheduled task that finds instances of configure processes and collects metrics on the processes
Functions [hide private]
dictionary, list of tuples
mapResultsToDicts(showrawtables, results)
Parse the process tables and reconstruct the list of processes that are on the device.
source code
 
reverseDict(d)
Return a dictionary with keys and values swapped: all values are lists to handle the different keys mapping to the same value
source code
 
chunk(lst, n)
Break lst into n-sized chunks
source code
Variables [hide private]
  __doc__ = """zenproc...
  log = logging.getLogger("zen.zenprocess")
  HOSTROOT = '.1.3.6.1.2.1.25'
  RUNROOT = HOSTROOT+ '.4'
  NAMETABLE = RUNROOT+ '.2.1.2'
  PATHTABLE = RUNROOT+ '.2.1.4'
  ARGSTABLE = RUNROOT+ '.2.1.5'
  PERFROOT = HOSTROOT+ '.5'
  CPU = PERFROOT+ '.1.1.1.'
  MEM = PERFROOT+ '.1.1.2.'
  WRAP = 0xffffffffL
Function Details [hide private]

mapResultsToDicts(showrawtables, results)

source code 

Parse the process tables and reconstruct the list of processes that are on the device.

Parameters:
  • showrawtables (boolean) - log the raw table info?
  • results (dictionary of dictionaries) - results of SNMP table gets ie (OID + pid, value)
Returns: dictionary, list of tuples
maps relating names and pids to each other

Variables Details [hide private]

__doc__

Value:
"""zenprocess

Gets SNMP process data from a device's HOST-RESOURCES-MIB
and store process performance in RRD files.
"""