Page 1 of 1

Re: [Nagios-devel] Semicolons in plugin output

Posted: Fri Mar 16, 2007 3:39 am
by Guest
Jason Hoos wrote:
> Quick question - what is the reason behind the conversion of semicolons
> in plug-in output to colons? Is it to prevent issues with parsing of
> status.dat?
>

I believe this is because the plugin-output is usually sent to other commands
via the shell (fe, notifications). Semi-colon is a special shell character
and as such should never be sent there raw.

If the above explanation is the case, it would be better (and slightly
better, performance-wise) to do the semicolon-to-colon conversion when
the string is passed to the shell.

> The reason I ask is that I have some plug-ins that output HTML entities
> (which all end in semicolons of course),

Why do they end in semicolons? I'd have thought a greater-than sign would
end HTML entities. Mind you, those are also special shell characters.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]