Page 1 of 1

Nagios 4.0.2 not reloading config on restart through .cmd

Posted: Tue Dec 17, 2013 6:09 am
by Conz
I just installed a new server to host our Nagios 4.0.2 with CentOS 6.5.
It is set up with nagiosQL to manage all the config files. when giving a restart command through nagiosql, nagios will restart but it will not re-load the config files it seems.
It will keep monitoring monitored hosts and services till I give a service restart command from the server shell.

There are no errors that I can see and the only difference with a restart from the console is that it actually kills the processes.

Anyone any ideas ?
[17-12-2013 11:52:15] wproc: Registry request: name=Core Worker 16020;pid=16020
Informational Message[17-12-2013 11:52:15] wproc: Registry request: name=Core Worker 16023;pid=16023
Informational Message[17-12-2013 11:52:15] wproc: Registry request: name=Core Worker 16022;pid=16022
Informational Message[17-12-2013 11:52:15] wproc: Registry request: name=Core Worker 16021;pid=16021
Informational Message[17-12-2013 11:52:15] wproc: Successfully registered manager as @wproc with query handler
Informational Message[17-12-2013 11:52:15] nerd: Fully initialized and ready to rock!
Informational Message[17-12-2013 11:52:15] nerd: Channel opathchecks registered successfully
Informational Message[17-12-2013 11:52:15] nerd: Channel servicechecks registered successfully
Informational Message[17-12-2013 11:52:15] nerd: Channel hostchecks registered successfully
Informational Message[17-12-2013 11:52:15] qh: core query handler registered
Informational Message[17-12-2013 11:52:15] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Informational Message[17-12-2013 11:52:15] LOG VERSION: 2.0
Informational Message[17-12-2013 11:52:15] Local time is Tue Dec 17 11:52:15 CET 2013
Program Start[17-12-2013 11:52:15] Nagios 4.0.2 starting... (PID=4615)
Informational Message[17-12-2013 11:52:15] Event broker module 'NERD' deinitialized successfully.
Program Restart[17-12-2013 11:52:15] PROGRAM_RESTART event encountered, restarting...
External Command[17-12-2013 11:52:15] EXTERNAL COMMAND: RESTART_PROGRAM;

Re: Nagios 4.0.2 not reloading config on restart through .cm

Posted: Tue Dec 17, 2013 11:39 am
by sreinhardt
There was an issue with this prior to 4.0.2 where a reload(different than restart) was not handling loading\unloading of hosts and services properly. It seems to be fixed with the 4.0.2 release though. I see the log file, but can you confirm that QL is not sending a reload instead? Which command in the QL interface are you using?

Re: Nagios 4.0.2 not reloading config on restart through .cm

Posted: Thu Dec 19, 2013 10:24 am
by iotg
Hi there!

Something similar happened to me (Nagios was no restarting from Nagios QL 3.2.0 after upgrade to Nagios Core 4.0.1), so I checked the NagiosQL Support Forum and I found this link: http://www.nagiosql.org/forum8/installa ... mitstart=0 So I did the changes posted and apparently nagios is now restarting from Nagios QL (below the event log from nagios console):

[12-16-2013 08:59:10] nerd: Fully initialized and ready to rock!
[12-16-2013 08:59:10] nerd: Channel opathchecks registered successfully
[12-16-2013 08:59:10] nerd: Channel servicechecks registered successfully
[12-16-2013 08:59:10] nerd: Channel hostchecks registered successfully
[12-16-2013 08:59:10] qh: core query handler registered
[12-16-2013 08:59:10] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[12-16-2013 08:59:10] LOG VERSION: 2.0
[12-16-2013 08:59:10] Local time is Mon Dec 16 08:59:10 CST 2013
[12-16-2013 08:59:10] Nagios 4.0.1 starting... (PID=29402)
[12-16-2013 08:59:10] Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
[12-16-2013 08:59:10] Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
[12-16-2013 08:59:10] Warning: sleep_time is deprecated and will be removed.
[12-16-2013 08:59:10] Warning: p1_file is deprecated and will be removed.
[12-16-2013 08:59:10] Warning: enable_embedded_perl is deprecated and will be removed.
[12-16-2013 08:59:10] Warning: use_embedded_perl_implicitly is deprecated and will be removed.
[12-16-2013 08:59:10] Event broker module 'NERD' deinitialized successfully.
[12-16-2013 08:59:10] PROGRAM_RESTART event encountered, restarting...
[12-16-2013 08:59:10] EXTERNAL COMMAND: RESTART_PROGRAM;

As I said, it seems that Nagios is now restarting but the changes that I´m doing in NagiosQL are not effective into Nagios unless I restart nagios from CLI (doing a service nagios restart, or service nagios stop and then start).

As an additional note, If I do a service nagios reload from CLI... Same thing (host checks and service checks are not taking effect)

Your help will be really appreciated.

Cheers.

Re: Nagios 4.0.2 not reloading config on restart through .cm

Posted: Thu Dec 19, 2013 4:16 pm
by sreinhardt
Please open your own thread, as this is somewhat different being 4.0.1. Additionally I believe 4.0.2 had a fix that resolved this issue, so I would suggest updating. Checking the changelog is not a bad idea either.

Re: Nagios 4.0.2 not reloading config on restart through .cm

Posted: Tue Mar 04, 2014 3:45 pm
by c0ntra
Hi,

I'm also experiencing this issue with Nagios 4.0.2 except I'm not using NagiosQL; instead I'm simply reloading from the linux shell. I went over the changes listed for Bug 492 [http://sourceforge.net/p/nagios/nagiosc ... c89f91d27/], and it seems my init script is all up-to-date, but i'm still not able to see any service or host changes in the nagios web interface unless I stop the service, and then start it up again.

Any ideas?

Re: Nagios 4.0.2 not reloading config on restart through .cm

Posted: Wed Mar 05, 2014 12:35 pm
by abrist
What platform/os are you running nagios on? I ask because there are still some issues with the init script on suse, debian and friends, among a few others.