Page 1 of 1

[Nagios-devel] BUG in utils.c - nagios 3.0a4 - processing passive

Posted: Sat May 26, 2007 9:16 am
by Guest
Hi all,

There is a bug in Nagios 3.0a4, utils.c, function process_check_result_file.

It's impossible to process result list having more then one result output.
eg. submitting many service checks in one moment causes creating temporary
file (in /usr/local/nagios/var/spool/checkresults) which contains several
records divided by '\n'. Function process_check_result_file which process
this file is looking for a '\x0' as a record divider, but there is no such
line.
Result: function process_check_result_file returns only one last record in
file.

Remedy: replace '\x0' for '\n' in:

/* whitespace indicates end of record */
else if(input[0]=='\x0'){

It should work fine, it's working for me :)

I'm not familiar with nagios architecture, maybe there is other solution for
this problem (putting whitespace between records? maybe?).

have fun
Roman Trylski






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