Page 1 of 2

nagios.cmd issue with restart of nagios

Posted: Thu Jan 28, 2016 5:46 pm
by mimianddaniel
Could someone shed some light when nagios.cmd fifo is passing the cmds to nagios when it gets restarted? I notice that the cmds written to the FIFO is not applied properly while its restarting. The restart for us take about ~40secs, I see around ~40secs mark, that wproc are all registered.

Thanks

Re: nagios.cmd issue with restart of nagios

Posted: Fri Jan 29, 2016 1:57 pm
by hsmith
What version of Nagios are you using? Are you running into issues, or is this just a general curiosity?

If you want to see what's going on for yourself, here you go: https://github.com/NagiosEnterprises/nagioscore

Re: nagios.cmd issue with restart of nagios

Posted: Fri Jan 29, 2016 4:31 pm
by mimianddaniel
excuse my lack of info, 4.0.8 is what we are using. This is an issue. During the reload, even tho nagios.cmd exists and you can write to it, it's not being processed. This is an issue.

Re: nagios.cmd issue with restart of nagios

Posted: Mon Feb 01, 2016 10:12 am
by rkennedy
What are the permissions on your nagios.cmd file?

Re: nagios.cmd issue with restart of nagios

Posted: Wed Feb 03, 2016 4:11 pm
by mimianddaniel
prw-rw---- 1 nagios

There is no problem with the perm or ownership for that matter.
Watching the perm and ownership while doing nagios reload, the file doesnt get removed or changes perm as far as i can tell by doing watch -n 1 'ls- l nagios.cm'
However, the external cmds executed during the reload doesnt seem to be showing up after the reload has completed.

Re: nagios.cmd issue with restart of nagios

Posted: Thu Feb 04, 2016 1:19 pm
by tmcdonald
I noticed you mentioned a restart in your first post, and a reload after that. There is a difference, so which are you using? Can you post the exact command?

Re: nagios.cmd issue with restart of nagios

Posted: Thu Feb 04, 2016 3:55 pm
by mimianddaniel
it was reload. sorry for the confusion..
nagios reload

Re: nagios.cmd issue with restart of nagios

Posted: Thu Feb 04, 2016 5:55 pm
by hsmith
Just the command 'nagios reload'?

What operating system are you running Nagios on, and how was it installed?

Re: nagios.cmd issue with restart of nagios

Posted: Wed Feb 17, 2016 12:47 pm
by mimianddaniel
this is running on centos 6.
created a package from the src and installed.

/etc/init.d/nagios reload would be the exact command.
Sorry for the late reply.

Re: nagios.cmd issue with restart of nagios

Posted: Wed Feb 17, 2016 5:50 pm
by hsmith
What happens if you do a restart instead of a reload?