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

The following two tabs change content below.

charlie root

VP of keeping it real / HNIC at pissedoffadmins.com
I bring the cold coffee.

Latest posts by charlie root (see all)

13 comments so far

Add Your Comment
  1. It worked.

    Also you might wanna check the .cmd path in cgi.cfg.

  2. It is a nice check but how do you get it working with selinux?

  3. thanks , working

  4. 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.

  5. Its work for me also
    Thank you very much guy


  6. Its work for me also
    Thank You

  7. Figured that this would solve it, thanks a lot! None of the other blogs mention selinux, only the permissions.

  8. Awesome,

    It worked!

  9. thanks, it works for me.

  10. thanks

  11. Oh AND editing SELINUX=disable did not work for me, I had to go into /etc/sysconfig/selinux and change it to SELINUX=permissive

  12. Restart nagios after killing selinux

  13. Tried that. It’s working.

  14. Tried that. didn’t work.