Page 1 of 1
Nagios Manager engine status is shows null
Posted: Mon Jan 11, 2021 3:59 am
by mejokj
Hi Team,
We have faced an issue that the Nagios monitoring engine check statistics is showing null and it has been fixed by restarting the Nagios service(Done Apply configuration). During the issue time, we observed Nagios running and all components are showing green and observed CRM status shows all green.
And we could not find any root cause of why the issue happened.
Could you please help us to find the root cause of the issue
We have attached the screenshot for your reference.
Thanks
Re: Nagios Manager engine status is shows null
Posted: Mon Jan 11, 2021 5:26 pm
by cdienger
Please send me a profile the next time you find it in this broken state. Send me the profile via a private message. The profile can be generated under Admin > System Config > System Profile > Download Profile, or from the command line with:
Code: Select all
/usr/local/nagiosxi/scripts/components/getprofile.sh 61238
The profile is then saved to /usr/local/nagiosxi/var/components/profile.zip.
Re: Nagios Manager engine status is shows null
Posted: Tue Jan 12, 2021 10:48 am
by mejokj
Hi,
System profile file sent you as PM.
Thanks
Re: Nagios Manager engine status is shows null
Posted: Tue Jan 12, 2021 6:02 pm
by cdienger
That table is populated from values found in the nagiosxi database. XI runs:
and then parses the information it returns. The database in your environment appears to be offloaded to another so the profile is missing any database logs. I would check these for error. Also do a database repair by following the steps in
https://assets.nagios.com/downloads/nag ... tabase.pdf.
Re: Nagios Manager engine status is shows null
Posted: Fri Jan 15, 2021 6:47 am
by mejokj
Hi,
We don’t see any db issue. Please find the attachment for the details of the xi_sysstat table.
Thanks
Re: Nagios Manager engine status is shows null
Posted: Mon Jan 18, 2021 6:13 pm
by ssax
I do not have access to your profile and @cdienger is out of the office today.
If you're not on XI 5.8.1 I would upgrade to that and validate.
If you're not able to upgrade but you are on XI 5.7+, I would do this and see if that resolves it:
Copy the attached ndo-master.zip file to the XI server and run the following commands as root:
Code: Select all
unzip ndo-master.zip
cd ndo-master
./configure
make all
make install
Then restart the nagios service:
See if that alleviates the issue.
Re: Nagios Manager engine status is shows null
Posted: Tue Jan 19, 2021 6:48 am
by mejokj
Hi ssax,
Thanks for the reply.
Unfortunately, we cannot do any upgrade to the Nagios xi right now as we had faced a lot of problems with the last upgrade and performed a downgrade to solve those issues.
Anyway, We will send the system profile as PM to you. please have a look and let us know if you find any issues.
Thanks
Re: Nagios Manager engine status is shows null
Posted: Tue Jan 19, 2021 6:45 pm
by ssax
Ok, I didn't know you were on XI 5.5, since you're on that ignore the previous instructions.
Did anything change on the system prior to this occurring?
Please PM me your
/usr/local/nagios/var/nagios.log so I can look through it. Grab the one from /
usr/local/nagios/var/archives as well that contains the data when this occurred (the filename in archives will list a day after, so if you want data from the 8th you would grab the archive filename that shows the 9th because it's rotated the next day at midnight).
You should edit this file:
Code: Select all
/usr/local/nagiosxi/html/config.inc.php
Change this:
To this:
Please run this command and send me the resulting /tmp/HTTPDFILES.zip file:
Code: Select all
zip -r /tmp/HTTPDFILES.zip /etc/httpd/conf/httpd.conf /etc/httpd/conf.d /etc/php.ini