Derwynd's Weblog

Derwynd's Weblog

Error: Could not stat() command file ‘/usr/local/nagios/var/rw/nagios.cmd’!

if you encounter this:

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

Or else check permissions on file

chown nagios.nagcmd /usr/local/nagios/var/rw
chmod g+rwx /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

Advertisements

August 7, 2012 - Posted by | Uncategorized

2 Comments »

  1. “setenforce 0” worked for me on CentOS 5! You saved me a bunch! Thank you.

    Comment by Big L | March 4, 2013 | Reply

  2. I know this is a very old post, but just would like to say that ‘setenforce 0′ worked for me on CentOS 7’ Thank you

    Comment by dukehazord | January 21, 2015 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: