Page 1 of 1

Nagios keeps running after stop or restart

Posted: Wed Jun 19, 2013 8:43 am
by ChanningL
Hello,

I'm implementing Nagios at my intership. But I'm having problems. When I've changed some configurations on the nagios server and I'm doing a restart with service nagios restart, nagios says that it did a restart:
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.

But it actually does nothing. Normally when u restart nagios you have to wait a couple of seconds before you can use the web interface again but nagios keeps running, so nagios doesn't pick up any of the new configurations. And it flips between states. When I look at a host there are for example 5 services with 2 critical and 3 OK but when i reload the page it has for example only 3 services with 1 unkown and 2 OK.

I tryed to only stop Nagios with Service nagios stop. It says it has stopped but it keeps up and running!

I think the problem occured when I restarted Nagios and accidently gave the restart command again when it was still starting.

Can someone please help me with this?

Greetz,
Channing
The Netherlands

Re: Nagios keeps running after stop or restart

Posted: Wed Jun 19, 2013 12:19 pm
by abrist
You may multiple nagios services running in the background. Stop the service, kill all of the nagios processes, and then restart the service:

Code: Select all

service nagios stop
killall nagios
service nagios start  

Re: Nagios keeps running after stop or restart

Posted: Tue Jun 25, 2013 3:12 am
by ChanningL
Yes thankyou! it worked!:D

Re: Nagios keeps running after stop or restart

Posted: Tue Jun 25, 2013 9:10 am
by slansing
Closing as resolved.