Error: Could not open command file 'nagios.cmd' for update!

Aldo Foot lunixer at gmail.com
Sat Dec 13 02:02:51 CET 2008


I'm running CentOS 5 and Nagios 3.0.6.

When I click on "Re-schedule the next check of this service" I get an error:

Error: Could not open command file
'/usr/local/nagios/var/rw/nagios.cmd' for update!
The permissions on the external command file and/or directory may be
incorrect. Read the FAQs on how to setup proper permissions.
An error occurred while attempting to commit your command for processing.

I read the FAQ here:
http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=false

and followed the instructions here:
http://nagios.sourceforge.net/docs/2_0/commandfile.html

and have these file permissions:

# ls -ld /usr/local/nagios/var/rw
drwxrwsr-x 2 nagios nagcmd 4096 Dec 12 16:49 /usr/local/nagios/var/rw

# ls -l /usr/local/nagios/var/rw
prw-rw---- 1 nagios nagcmd 0 Dec 12 16:15 nagios.cmd

Note that if I disable the system firewall there is no error.
I won't get into much detail on the firewall side (building a local
policy file), because
I'd like to know whether there is a simpler, better solution to this.

thanks in advanced.
~af

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list