could not open command file for update

Marc Powell mpowell at ena.com
Thu Oct 30 07:18:38 CET 2003


What are the permissions on nagios.cmd itself? Is your web server user allowed to write to the file, not just the directory?

Also, any directories above and including rw must be at least +rx for the web server user (typically 755).


--
Marc

-----Original Message-----
From: Shirley <shirley at origamipartners.com>
To: Nagios-users at lists.sourceforge.net <Nagios-users at lists.sourceforge.net>
Sent: Thu Oct 30 00:03:20 2003
Subject: [Nagios-users] could not open command file for update


aside from directory permissions being wrong, is there any other reason
nagios would start to report

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' 
for update!

for any external command attempts? i've looked through the faqs and the
only searchable archive i could find, and aside from directory problems,
someone reported seeing the problem one night and then having it disappear
by morning.

initially i did not change any permissions while i was updating cfg files.
after restarting nagios to watch the changes take affect, i tried to
restart again via the web interface and i started getting first 'could not
stat()' errors and after i did all sorts of variations of
permissions/ownership on the var/rw/ directory, now i get the 'could not
open' with the most permissive options set on that dir. i have restarted
apache after every permissions change, btw and restarted nagios process as
well several times. external commands are enabled and the right directory
is referenced in the main cfg

what else can i check? 

thanks for any help



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031030/db6a2876/attachment.html>


More information about the Users mailing list