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

# Class Nagios

source code

                     object --+
                              |
    CommandParser.CommandParser --+
                                  |
                                 Nagios

Instance Methods | [hide private]
processPerfData(self, rawPerfData) Create a dictionary of datapoint:value entries from the plugin output. | source code
processResults(self, cmd, result) Process the results of a running a command. | source code
Inherited from `CommandParser.CommandParser`: `createDefaultEventUsingExitCode`, `dataForParser`, `preprocessResults`

Static Methods | [hide private]
splitMultiLine(output) Convert the plugin output into component parts: summary, performance_data Empty output or no performance data raises a _BadData exception. | source code

Method Details | [hide private]

### processPerfData(self, rawPerfData) | source code
Create a dictionary of datapoint:value entries from the plugin output. This funtion removes a ' (represented as '' in the label) from the label. There's just too much opportunity to mess something up by keeping a shell meta-character.

### processResults(self, cmd, result) | 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)