glibc and valgrind memcheck errors (cgi segmentation fault) with nagios 3.06 on Redhat 4.7 x86

Andreas Ericsson ae at op5.se
Mon Mar 23 13:13:29 CET 2009


Justin Amburn wrote:
> We found something in the status.dat file where plugin output containing
> a windows UNC followed by the letter n was treated as a newline
> character. It seems to have thrown off the cgi file when it attempted to
> read status.dat in the bottom of the strace:
> 
>         plugin_output=The message '-1073737725' for application
> 'AdsmClientService' could not be formatted using library(ies): ''. The
> log entry contains the following replacement strings:'ANS4005E Error
> processing '\
>  
> long_plugin_output=tnode02\\d$\\Archive\\solutions\\solutions_tlog_20090
> 3151900.TRN': file not found' ** EventID: 4099\n
> 
> the plugin_output line SHOULD read:
> 	plugin_output=The message '-1073737725' for application
> 'AdsmClientService' could not be formatted using library(ies): ''. The
> log entry contains the following replacement strings:'ANS4005E Error
> processing
> '\ntnode02\\d$\\Archive\\solutions\\solutions_tlog_200903151900.TRN':
> file not found' ** EventID: 4099\n
> 
> 
> This seems to be a bug with encoding either with nrpe or with nagios.
> 

It's in Nagios. It *should* only take backslash to mean "line continues
on next line" if that backslash is the last output character on the line,
and even then only if it isn't escaped by another backslash (I think).

This shouldn't cause a sigsegv though.

-- 
Andreas Ericsson                   andreas.ericsson at 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.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com




More information about the Developers mailing list