Thursday, March 14, 2013

Nagios Error: Could not open command file

 
Nagios Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
 
You get this error when you update on naigos GUI page, like you wanted to disable 
notification, Then it means that the permissions on the folder are messed up. Don’t 
bother setting up the permissions on the file itself, nagios.cmd,  since
that file gets recreated very often, so:
 

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

No comments:

Post a Comment