Services disappeared off host, but still listed in Core Conf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Services disappeared off host, but still listed in Core Conf

Post by GldRush98 »

In the regular host services screen, my main core's services have all vanished:
missingservices1.JPG
But If I check the core config manager, they are all still listed there:
missingservices2.JPG
I've tried reapplying the configuration and rebooting the server, but the services are still missing... even though they're really there. What is going on? :(
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Services disappeared off host, but still listed in Core

Post by GldRush98 »

Ok, I reapplied the configuration several more times and they finally showed up. I didn't even change anything between applying configurations. :?
What in the world? :|
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Services disappeared off host, but still listed in Core

Post by nscott »

That looked like mysqld was unavailable. Do you see any major errors in /usr/local/nagios/var/nagios.log ?

Did you get any mail in /var/spool/mail/root about mysql?
Nicholas Scott
Former Nagios employee
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Services disappeared off host, but still listed in Core

Post by GldRush98 »

This happened again.

[root@localhost ~]# service mysqld status
mysqld (pid 2551) is running...

There is nothing in the mail log (last thing was the database backup message from this morning).

I have applied the configuration several times and it is still not listing the services under the Core1.
Is there anything else you'd like me to check while the issue is occurring?
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Services disappeared off host, but still listed in Core

Post by nscott »

GldRush,

Do this:

Code: Select all

ps aux | grep '/usr/local/nag*ios/bin/nagios -d'
This should return exactly one thing, the nagios process. If this is returning two things than this is probably your problem.

so then

Code: Select all

killall -9 nagios
service nagios restart
Nicholas Scott
Former Nagios employee
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Services disappeared off host, but still listed in Core

Post by GldRush98 »

There was only one. I figured killing it and restarting the service was worth a shot any way. Didn't help. Applied configuration again, didn't help.

[root@localhost ~]# ps aux | grep '/usr/local/nag*ios/bin/nagios -d'
nagios 14049 1.6 0.3 19344 7460 ? Ssl 10:50 2:11 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@localhost ~]# killall -9 nagios
[root@localhost ~]# service nagios restart
Running configuration check...done.
Stopping nagios: /etc/init.d/nagios: line 67: kill: (14049) - No such process
done.
Starting nagios: done.
[root@localhost ~]#

I rebooted the Nagios server, still missing. I reapplied one more time after the reboot and the services FINALLY came back. :?
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Services disappeared off host, but still listed in Core

Post by nscott »

Ok, well thats good to hear, next time it happens do this.

service mysqld stop
killall -9 nagios
service ndo2db stop
service mysqld start
service nagios start
service ndo2db start
Nicholas Scott
Former Nagios employee
Locked