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
Nagios keeps running after stop or restart
Re: Nagios keeps running after stop or restart
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.
"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.
Re: Nagios keeps running after stop or restart
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
Closing as resolved.