nagios – Error: Could not stat() command file ‘/usr/local/nagios/var/rw/nagios.cmd’!
if you encounter this little beauty:
Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
try testing your selinux settings
start with: setenforce 0
this will disable for now
Tried that. didn’t work.
Tried that. It’s working.
Restart nagios after killing selinux
Oh AND editing SELINUX=disable did not work for me, I had to go into /etc/sysconfig/selinux and change it to SELINUX=permissive
thanks
thanks, it works for me.
Awesome,
It worked!
Figured that this would solve it, thanks a lot! None of the other blogs mention selinux, only the permissions.
Its work for me also
Thank You
Its work for me also
Thank you very much guy
BR
Fantastic – not sure if it was SELINUX=disable did or /etc/sysconfig/selinux and change it to SELINUX=permissive that did the trick.
I am sure I needed to restart the Nagios Box – and it worked.
thanks , working
It is a nice check but how do you get it working with selinux?
It worked.
Also you might wanna check the .cmd path in cgi.cfg.