...
The basic format for plugin output is shown below:
TEXT OUTPUT | OPTIONAL PERFDATALONG TEXT LINE 1LONG TEXT LINE 2...LONG TEXT LINE N | PERFDATA LINE 2PERFDATA LINE 3...PERFDATA LINE N
The performance data is optional.
If a plugin returns performance data in its output, it must separate the performance data from the other text output using a pipe (|) symbol.Additional lines of long text output are also optional.
Plugin Output Examples
Let's see some examples of possible plugin output...
...
If this plugin was used to perform a service check, the portion of output (left of the pipe separator) will be stored in the <$SERVICEOUTPUT$> data and the portion of output (right of the pipe separator) will be stored in the $SERVICEPERFDATA$ data.
A perfdata is composed at a minimum of:
| Code Block |
|---|
key=value |
Then in option you can ass more information:
key=valueUNIT;warning;critical;minimumvalue;maximalvalue
For example:
/=2643MB;5948;5958;0;5968
you can have as mush perfdata as you want, just by separating values with space:
| Code Block |
|---|
HTTP OK: HTTP/1.1 200 OK - 20156 bytes in 0.271 second response time |time=0.270634s;;;0.000000 size=20156B;;;0 |
Plugin Output Length Restrictions
...