Backslashes at the end of plugin_output

Ethan Galstad nagios at nagios.org
Wed Oct 15 19:02:22 CEST 2008


Ricardo Maraschini wrote:
> Hi,
> 
>    Some days ago somebody here point an issue on status.cgi plugin_output treatment when the output contains a backslash in the end, so I had the same problem again.  As instance you can see below a service status directly from status.log:
> 
>  servicestatus {
>         host_name=SPO-PONTE109
>         service_description=Lotus_DATABASE_Fatal
>         <cut>
> 
>         plugin_output=Monitor.Last.DATABASE COMPACTOR.FatalText = Error compacting mail\
> 
>         <cut>
>         }
> 
>     Reading the above from status.log, status.cgi brokes with a SIGSEGV. We patch the source to eliminate these undesirable backslashes, the patch follow this mail.
>     The ideal solution is prevent nagios from store these backslashes in status.log, anybody here can point me where to look to achieve this "ideal solution"? The patch attached can broke something that I can't see?
> 
> -rm
> 

What version of Nagios are you running?  I couldn't replicate a segfault
with 3.0.3

- Ethan Galstad

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/




More information about the Developers mailing list