BUG in utils.c - nagios 3.0a4 - processing passive	checks
    Roman Trylski 
    tryllu at tlen.pl
       
    Sat May 26 19:16:44 CEST 2007
    
    
  
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 SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
    
    
More information about the Developers
mailing list