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

# Class Nagios

source code

    CommandParser.CommandParser --+
                                  |
                                 Nagios

Instance Methods | [hide private]
splitMultiLine(self, output) Convert the plugin output into component parts: summary, message, performance_data | source code
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`: `dataForParser`

Method Details | [hide private]

### splitMultiLine(self, output) | source code
    Convert the plugin output into component parts:
         summary, message, performance_data

    If the message is None, then there is an error.

### 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)