Page 1 of 1

Re: [Nagios-devel] glibc and valgrind memcheck errors

Posted: Mon Mar 23, 2009 11:13 am
by Guest
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 [email protected]
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: [email protected]