Page 1 of 1

BUG in unconfigured object process

Posted: Wed Jan 23, 2019 4:10 am
by jkettu
HI,

Since at least 5.5.5 we have had the unconfigured objects list completely empty from our remote agents.
Now upgraded to 5.5.9 and the issue was still there so took a deepdive to understand how that would work.

After many checks I noticed the /usr/local/nagiosxi/scripts/parse_core_eventlog.php file had an extra space on the grep for
CMD=grep 'Error: Got host checkresult for ' /usr/local/nagiosxi/var/corelog.diff.
That expected 2 spaces on the log line after for and thus never noticed these lines.

[1548234215] Error: Got host checkresult for 'DEVICE', but no such host can be found

So by removing that one space everything started to work like it should.

Could you please put that on the fix list?

Re: BUG in unconfigured object process

Posted: Wed Jan 23, 2019 11:16 am
by lmiltchev
Thank you for reporting the issue! I can confirm that there is an extra space on this line. Our developers have been made aware of the bug, and will be fixing it in the next release of Nagios XI. Thank you!