On 03/26/2013 07:09 PM, Jochen Bern wrote:
> On 26.03.2013 18:23, Jim Winkle wrote:
>> It's possible for a plugin to have a vertical bar (|) character in its
>> regular output.
>
> That depends a bit on what your definition of "(plugin) output" is.
> Plugins certainly *can* shove pipe symbols out their stdout/stderr, but
> (lacking any defined escaping) they'll never arrive in what Nagios
> considers the "Plugin Output" (while extraneous pipes *will* appear in
> the Performance Data).
>
>> For example, I've seen cases where check_logfiles does this [...]
>> It seems that (and correct me if I'm wrong) Nagios doesn't support a
>> way to escape '|' in plugin output.
>
> That's correct as of 3.x. (Somebody please speak up if the upcoming 4.x
> is going to change that.)
>
Nothing has changed in that regard for Nagios 4.
>> If this is true, I'll request this enhancement on tracker.nagios.org.
>
> IIUC API changes wouldn't get applied until at least 4.1, so you might
> want to simultaneously ask Gerhard for a fix in the plugin for the time
> being.
>
It's not really an API change to allow random characters to be escaped
in plugin output.
OTOH, perfdata should've been on a line of its own from the start,
prefixed with 'perfdata=' instead of a magic character put in the
plugin output.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: ae@op5.se