Nagios keeps running after stop or restart

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ChanningL
Posts: 12
Joined: Wed Jun 19, 2013 8:24 am

Nagios keeps running after stop or restart

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios keeps running after stop or restart

Post 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  
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ChanningL
Posts: 12
Joined: Wed Jun 19, 2013 8:24 am

Re: Nagios keeps running after stop or restart

Post by ChanningL »

Yes thankyou! it worked!:D
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios keeps running after stop or restart

Post by slansing »

Closing as resolved.
Locked