Services disappearing in NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cmassey
Posts: 11
Joined: Tue Sep 14, 2010 10:19 am

Services disappearing in NagiosXI

Post by cmassey »

I'm having a strange issue with Nagios. On one of my switches it lists "No Services Found" Even though there are services listed in the Core configuration manager.
I also had the disk space service on two of my servers disappear as well. The disk checks are also listed in the config manager. After a restart of the machine, the disk space checks reappeared. The checks on the switch also came back. But now, my other switch, which happens to be the same type lists "No Services Found".
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Services disappearing in NagiosXI

Post by mguthrie »

We had one other customer with an issue like this, but we never did quite nail down the issue. Lets see if we can narrow it down.

Does the service show up correctly in Nagios core?

If the service is not in Nagios Core, but is visible in the Core Config Manager, check to see if you can find the status information in the /usr/local/nagios/var/status.dat file.

Do you get a valid xml document by accessing the following url:
[url]http://<yourhost>/nagiosxi/backend/?cmd=getservicestatus[/url]

We did run into an issue recently where certain services were returning non UTF-8 characters, which was throwing off the xml used by Nagios XI. Not sure if that's the issue here or not. Here's the FAQ link for it:
http://support.nagios.com/wiki/index.ph ... No_Results
cmassey
Posts: 11
Joined: Tue Sep 14, 2010 10:19 am

Re: Services disappearing in NagiosXI

Post by cmassey »

How do I look in Nagios Core? Is it by checking the /usr/local/nagios/etc directory?

The services are not showing up in the status.dat file.

If I try to go to the backend, I receive the response: ERROR: NOT AUTHENTICATED
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Services disappearing in NagiosXI

Post by mguthrie »

How do I look in Nagios Core? Is it by checking the /usr/local/nagios/etc directory?
You can check the service status in Nagios Core by accessing: (requires your nagiosadmin password)
http://<yourhostname>/nagios
The services are not showing up in the status.dat file.
Hmm, are you getting any errors when you apply configuration?
Have you tried using the Core Config Manager->Write Config tool to manually write the DB information to the config files.

If I try to go to the backend, I receive the response: ERROR: NOT AUTHENTICATED
Sorry for the poor communication, I forgot to tell you to log into XI first, then access the following URL and see if you get an XML error
[url]http://<yourhost>/nagiosxi/backend/?cmd=getservicestatus[/url]


Other things to try:
Try the following command from the command line:
killall -9 nagios

And then start the Nagios Monitoring engine from the Admin page.
cmassey
Posts: 11
Joined: Tue Sep 14, 2010 10:19 am

Re: Services disappearing in NagiosXI

Post by cmassey »

The services are not listed in Nagios Core.

No errors when applying configuration.

I've tried the write tool with no success.

The Backend brings back a valid XML file.

I've also tried killing nagios and restarting it from the admin page.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Services disappearing in NagiosXI

Post by mguthrie »

Ok, we're going to have to do some digging then to see what might cause that. I'm wondering if we've got a bug somewhere in NagiosQL...
cmassey
Posts: 11
Joined: Tue Sep 14, 2010 10:19 am

Re: Services disappearing in NagiosXI

Post by cmassey »

Any news on this problem?

I just restarted nagios and now that device's services came back and an entire host group's service disappeared.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Services disappearing in NagiosXI

Post by mguthrie »

Is this problem with the services disappearing localized just to host and service groups, or are they disappearing from the main host and service tables as well?
cmassey
Posts: 11
Joined: Tue Sep 14, 2010 10:19 am

Re: Services disappearing in NagiosXI

Post by cmassey »

The services are no where to be found. But they are listed in the Configuration Manager.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Services disappearing in NagiosXI

Post by mguthrie »

Ok, let me back up a step then. When you use the Write Config Tool, are you getting any errors related to file permissions, or does everything "appear" to work ok? If you're getting errors with permissions, you can run the /usr/local/nagiosxi/scripts/reset_config_perms script to make sure the permissions are set correctly.

Oh, can you also check the Core Config Manager->Config Manager Admin->Config Manager log to see if you have any error messages?
Locked