Package Products :: Package ZenRRD :: Package parsers :: Module ps :: Class ps |
[hide private]
[frames] | no frames]

# Class ps

source code

    CommandParser.CommandParser --+
                                  |
                                 ps

Instance Methods | [hide private]
dataForParser(self, context, datapoint) | source code
sendEvent(self, results, **kwargs) | source code
getMatches(self, matchers, procName, cmdAndArgs) Get regex matches of processes running on the machine | source code
tuple |
getProcInfo(self, line) Process the non-empyt ps and return back the standard info. | source code
groupProcs(self, matchers, output) Group processes per datapoint | source code
processResults(self, cmd, results) Process the results of a running a command. | source code

Method Details | [hide private]

### dataForParser(self, context, datapoint) | source code
Overrides: CommandParser.CommandParser.dataForParser

### getProcInfo(self, line) | source code
Process the non-empyt ps and return back the standard info. Parameters: `line` (text) - one line of ps output Returns: tuple pid, rss, cpu, cmdAndArgs (ie full process name)

### processResults(self, cmd, results) | source code
Process the results of a running a command. Parameters: `cmd` - the results of running a command, with the configuration from ZenHub `results` - the values and events from the command output Returns: None. Overrides: CommandParser.CommandParser.processResults (inherited documentation)