Unable to write to nagios.cmd
Posted: Wed Jul 30, 2014 12:57 pm
Nagios XI 2014R1.3 on RHEL 6
One of my users reported being unable to Acknowledge a service in the Nagios XI GUI.
I was able to reproduce the problem.
"Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!'
Looking at the nagios.cmd file, the permissions didn't seem right:
ls -l /usr/local/nagios/var/rw
-rw-r--r-- 1 root nagcmd 420 Jul 30 13:35 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jul 30 12:00 nagios.qh
changing nagios.cmd from 644 to 664 fixed the symptom....but I don't know the cause.
Also, restarting nagios via '/etc/init.d/nagios restart' produced the following nagios.cmd file:
prw-rw---- 1 nagios nagcmd 0 Jul 30 13:52 nagios.cmd
which looks more like what I would expect.
One of my users reported being unable to Acknowledge a service in the Nagios XI GUI.
I was able to reproduce the problem.
"Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!'
Looking at the nagios.cmd file, the permissions didn't seem right:
ls -l /usr/local/nagios/var/rw
-rw-r--r-- 1 root nagcmd 420 Jul 30 13:35 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jul 30 12:00 nagios.qh
changing nagios.cmd from 644 to 664 fixed the symptom....but I don't know the cause.
Also, restarting nagios via '/etc/init.d/nagios restart' produced the following nagios.cmd file:
prw-rw---- 1 nagios nagcmd 0 Jul 30 13:52 nagios.cmd
which looks more like what I would expect.