restarting nagios through web does not reload config.
Posted: Mon Aug 18, 2014 9:44 am
I've been having this problem for a while now since the upgrade to 4.x, I use nagiosql to edit our configuration but when I'm done I have to use the console to restart Nagios or it will not pick up on changes.
It restarts the service but for some reason it just won't pick up on config changes... It's been a while but I think I had to mod nagiosql to actually get it to send a restart command that nagios actually picked up on when 4 was first released .. but going by memory and never really bothered with it as I usually have an ssh session open any ways.
I'd still like to get this to work now though, so if anyone has any ideas
[edit]
Forgot to mention, restart through the Nagios service webpage itself does exactly the same as a restart from nagiosql, which is 'not reloading the config'
Also running 4.0.7 right now, just found out .8 has been released but need to update it still.
[/edit]
Upsidedownlog:
It restarts the service but for some reason it just won't pick up on config changes... It's been a while but I think I had to mod nagiosql to actually get it to send a restart command that nagios actually picked up on when 4 was first released .. but going by memory and never really bothered with it as I usually have an ssh session open any ways.
I'd still like to get this to work now though, so if anyone has any ideas
[edit]
Forgot to mention, restart through the Nagios service webpage itself does exactly the same as a restart from nagiosql, which is 'not reloading the config'
Also running 4.0.7 right now, just found out .8 has been released but need to update it still.
[/edit]
Upsidedownlog:
[18-08-2014 16:36:35] Successfully launched command file worker with pid 20672
Informational Message[18-08-2014 16:36:35] wproc: Registry request: name=Core Worker 20668;pid=20668
Informational Message[18-08-2014 16:36:35] wproc: Registry request: name=Core Worker 20669;pid=20669
Informational Message[18-08-2014 16:36:35] wproc: Registry request: name=Core Worker 20671;pid=20671
Informational Message[18-08-2014 16:36:35] wproc: Registry request: name=Core Worker 20667;pid=20667
Informational Message[18-08-2014 16:36:35] wproc: Successfully registered manager as @wproc with query handler
Informational Message[18-08-2014 16:36:35] nerd: Fully initialized and ready to rock!
Informational Message[18-08-2014 16:36:35] nerd: Channel opathchecks registered successfully
Informational Message[18-08-2014 16:36:35] nerd: Channel servicechecks registered successfully
Informational Message[18-08-2014 16:36:35] nerd: Channel hostchecks registered successfully
Informational Message[18-08-2014 16:36:35] qh: core query handler registered
Informational Message[18-08-2014 16:36:35] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Informational Message[18-08-2014 16:36:35] LOG VERSION: 2.0
Informational Message[18-08-2014 16:36:35] Local time is Mon Aug 18 16:36:35 CEST 2014
Program Start[18-08-2014 16:36:35] Nagios 4.0.7 starting... (PID=20666)
Informational Message[18-08-2014 16:36:35] Event broker module 'NERD' deinitialized successfully.
Informational Message[18-08-2014 16:36:35] Successfully shutdown... (PID=7740)
Program End[18-08-2014 16:36:35] Caught SIGTERM, shutting down...