[Nagiosplug-devel] RFC: Plugin API Changes

Ton Voon ton.voon at altinity.com
Tue Feb 28 13:54:02 CET 2006


On 28 Feb 2006, at 18:10, Ethan Galstad wrote:

> The multiline output changes that I am proposing would remain
> compatible with the existing (single line) plugin output.  Take this
> sample plugin output as an example:
>
> Line1: "Short output | Perf1"
> Line2: "Long output 1"
> Line3: "Long output 2"
> Line4: "Long output3 | Perf2"
> Line5: "Perf3"
> Line6: "Perf4"
>
> Nagios would interpret the six lines out of above plugin output and
> make it avaiable in macros it like this:
>
> $SERVICEOUTPUT$="Short output"
> $PERFDATA$="Perf1 Perf2 Perf3 Perf4"
> $LONGSERVICEOUTPUT$="Long output 1\nLong output2\nLong output3\n"

I think this design works well.

Should $LONGSERVICEOUTPUT$ be "Short output\nLong output 1\nLong  
output2\nLong output3\n"?

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon






More information about the Devel mailing list