Page 1 of 1

4 service status for each monitored item

Posted: Thu Apr 27, 2017 11:53 am
by garrett320
I moved my Nagios XI VM to another ESX host and when I powered on the VM Nagios is now showing 4 service status for each monitored item. For instance, I'm monitoring /opt on a system and it shows me 4 /opt's for each system. Can you tell me how this might have happened? Or more importantly resolve this back to 1 "service" for each device?

Re: 4 service status for each monitored item

Posted: Thu Apr 27, 2017 1:11 pm
by dwhitfield
What's the output of ps -aef | grep nagios.cfg?

If you have more than one parent (first # column should match second # column for all but the first), then you should:

Code: Select all

service nagios stop
killall nagios
service nagios start
If that doesn't do it, then it's possible there's a db issue. If you don't have killall install on your server, you can either install it or kill the processes manually.

Re: 4 service status for each monitored item

Posted: Thu Apr 27, 2017 2:43 pm
by garrett320
Here is the output

[root@Nagios hosts]# ps -aef | grep nagios.cfg
nagios 1681 1 0 09:53 ? 00:00:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 2040 1681 0 09:53 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 110425 83629 0 15:40 pts/0 00:00:00 grep --color=auto nagios.cfg

I follow the steps you provided and that resolved my issue. Thank you for your help!

Re: 4 service status for each monitored item

Posted: Thu Apr 27, 2017 2:57 pm
by cdienger
Glad to hear! Are we okay closing this thread or did you have any additional questions?

Re: 4 service status for each monitored item

Posted: Thu Apr 27, 2017 3:32 pm
by garrett320
You can close this thread, thank you.