nagios.cmd issue with restart of nagios

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.
mimianddaniel
Posts: 7
Joined: Thu Jan 28, 2016 1:49 pm

nagios.cmd issue with restart of nagios

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios.cmd issue with restart of nagios

Post 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
Former Nagios Employee.
me.
mimianddaniel
Posts: 7
Joined: Thu Jan 28, 2016 1:49 pm

Re: nagios.cmd issue with restart of nagios

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nagios.cmd issue with restart of nagios

Post by rkennedy »

What are the permissions on your nagios.cmd file?
Former Nagios Employee
mimianddaniel
Posts: 7
Joined: Thu Jan 28, 2016 1:49 pm

Re: nagios.cmd issue with restart of nagios

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios.cmd issue with restart of nagios

Post 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?
Former Nagios employee
mimianddaniel
Posts: 7
Joined: Thu Jan 28, 2016 1:49 pm

Re: nagios.cmd issue with restart of nagios

Post by mimianddaniel »

it was reload. sorry for the confusion..
nagios reload
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios.cmd issue with restart of nagios

Post by hsmith »

Just the command 'nagios reload'?

What operating system are you running Nagios on, and how was it installed?
Former Nagios Employee.
me.
mimianddaniel
Posts: 7
Joined: Thu Jan 28, 2016 1:49 pm

Re: nagios.cmd issue with restart of nagios

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios.cmd issue with restart of nagios

Post by hsmith »

What happens if you do a restart instead of a reload?
Former Nagios Employee.
me.
Locked