[email protected] wrote:
third: ll /usr/local/nagios/var/rw/
total 4
-rw-r--r-- 1 apache nagcmd 29 Jun 19 16:52 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jun 17 14:42 nagios.qh
Ran these again today to make sure it was on the right host as I had most of our nagios instance open. Looks like I might have ran them on either our prod instance.
The type and ownership of nagios.cmd is wrong. That should be a pipe owned by nagios:
[email protected] wrote:
third: ll /usr/local/nagios/var/rw/
total 4
-rw-r--r-- 1 apache nagcmd 29 Jun 19 16:52 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jun 17 14:42 nagios.qh
Ran these again today to make sure it was on the right host as I had most of our nagios instance open. Looks like I might have ran them on either our prod instance.
The type and ownership of nagios.cmd is wrong. That should be a pipe owned by nagios:
ll /usr/local/nagios/var/rw/
total 0
prw-rw---- 1 nagios nagcmd 0 Jun 23 11:29 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jun 23 11:29 nagios.qh
so still looks similar( except not owned by apache). Are you saying I need to change ownership from nagcmd to nagios on nagios.cmd or does that look correct?
Still having the same problem after deleting proposed file and restarting.
Your permissions are fine now, being nagios:nagios or nagios:nagcmd is just fine. The big difference is the p or command pipe at the very start of the permissions. It seems that something in XI is attempting to write to the command file while it doesn't exist, and instead is creating a new one as text and not a pipe. Just to be sure we are 100% on the same page. If you:
restart nagios core
list the command file and make sure it has the p flag
force an immidiate check
Does this work? If so, does applying config change the nagios.cmd file back to non-pipe?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sreinhardt wrote:Your permissions are fine now, being nagios:nagios or nagios:nagcmd is just fine. The big difference is the p or command pipe at the very start of the permissions. It seems that something in XI is attempting to write to the command file while it doesn't exist, and instead is creating a new one as text and not a pipe. Just to be sure we are 100% on the same page. If you:
I am locking this thread as you have a ticket open in our ticketing system, and it would be easier to follow it in one place. We will continue communication via emails.
Be sure to check out our Knowledgebase for helpful articles and solutions!