Page 1 of 3
Blank service check
Posted: Wed Sep 05, 2018 8:03 am
by hbouma
I have one Nagios XI server that has a blank service check.I have 82 services in CCM, but when I look at the service status summary dashlet, it lists 83 total services. When clicking on the 83, I see one service that has no name, no host and some nonsense in the date and last check fields. I have looked through my configuration files in /usr/local/nagios/etc/services/ and I see no files with a blank host and blank service description. I see no unusual services configuration files either. How to I find and remove this service?
2018-09-05 08_57_17-Dashboards ยท Nagios XI.png
I am running Nagios XI 5.5.3 on Red Hat 7 64bit.
Re: Blank service check
Posted: Wed Sep 05, 2018 12:08 pm
by npolovenko
Hello,
@hbouma. This could be a corrupted entry in the database. I suggest running a repair_db script first to see if the problem goes away:
/usr/local/nagiosxi/scripts/repair_databases.sh
Re: Blank service check
Posted: Wed Sep 05, 2018 1:00 pm
by hbouma
That was run, unfortunately, the phantom service is still there.
Re: Blank service check
Posted: Wed Sep 05, 2018 2:05 pm
by npolovenko
@hbouma, Please upload the following file:
/usr/local/nagios/var/objects.cache
And then run this query:
echo "SELECT * FROM nagios_services\G;" | mysql -uroot -pnagiosxi nagios > /tmp/nagios.txt
It will generate nagios.txt file in the /tmp/ directory. Please upload that file here as well.
Re: Blank service check
Posted: Wed Sep 05, 2018 2:05 pm
by npolovenko
@hbouma, Please upload the following file:
/usr/local/nagios/var/objects.cache
And then run this query:
echo "SELECT * FROM nagios_services\G;" | mysql -uroot -pnagiosxi nagios > /tmp/nagios.txt
It will generate nagios.txt file in the /tmp/ directory. Please upload that file here as well.
Re: Blank service check
Posted: Wed Sep 05, 2018 2:29 pm
by hbouma
Sent information via private message.
I can tell you already that the object.cache file has some outdated information in it.
Re: Blank service check
Posted: Wed Sep 05, 2018 3:42 pm
by npolovenko
@hbouma, Thank you. Please run the following commands in order and let me know if the issue gets resolved:
service nagios stop
rm /usr/local/nagios/var/objects.cache
rm /usr/local/nagios/var/status.dat
rm /usr/local/nagios/var/retention.dat
service nagios start
Re: Blank service check
Posted: Wed Sep 05, 2018 4:11 pm
by hbouma
Unfortunately, this didn't work.
However, the file /usr/local/nagios/var/status.dat doesn't exist. Could that be why the problem didn't disappear?
Re: Blank service check
Posted: Wed Sep 05, 2018 4:22 pm
by npolovenko
@hbouma, No that's normal. It is supposed to get automatically deleted every time Nagios service stops. But sometimes it doesn't and that's why I included that command.
Could you send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and send it to me via private message.
*After you send it please post an update in this thread to bring it back up in the support queue.
Re: Blank service check
Posted: Thu Sep 06, 2018 6:52 am
by hbouma
Profile sent.