<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] could not open command file for update</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>What are the permissions on nagios.cmd itself? Is your web server user allowed to write to the file, not just the directory?<BR>
<BR>
Also, any directories above and including rw must be at least +rx for the web server user (typically 755).<BR>
<BR>
<BR>
--<BR>
Marc<BR>
<BR>
-----Original Message-----<BR>
From: Shirley <shirley@origamipartners.com><BR>
To: Nagios-users@lists.sourceforge.net <Nagios-users@lists.sourceforge.net><BR>
Sent: Thu Oct 30 00:03:20 2003<BR>
Subject: [Nagios-users] could not open command file for update<BR>
<BR>
<BR>
aside from directory permissions being wrong, is there any other reason<BR>
nagios would start to report<BR>
<BR>
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'<BR>
for update!<BR>
<BR>
for any external command attempts? i've looked through the faqs and the<BR>
only searchable archive i could find, and aside from directory problems,<BR>
someone reported seeing the problem one night and then having it disappear<BR>
by morning.<BR>
<BR>
initially i did not change any permissions while i was updating cfg files.<BR>
after restarting nagios to watch the changes take affect, i tried to<BR>
restart again via the web interface and i started getting first 'could not<BR>
stat()' errors and after i did all sorts of variations of<BR>
permissions/ownership on the var/rw/ directory, now i get the 'could not<BR>
open' with the most permissive options set on that dir. i have restarted<BR>
apache after every permissions change, btw and restarted nagios process as<BR>
well several times. external commands are enabled and the right directory<BR>
is referenced in the main cfg<BR>
<BR>
what else can i check?<BR>
<BR>
thanks for any help<BR>
<BR>
<BR>
<BR>
-------------------------------------------------------<BR>
This SF.net email is sponsored by: SF.net Giveback Program.<BR>
Does SourceForge.net help you be more productive?  Does it<BR>
help you create better code?   SHARE THE LOVE, and help us help<BR>
YOU!  Click Here: <A HREF="http://sourceforge.net/donate/">http://sourceforge.net/donate/</A><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
Nagios-users@lists.sourceforge.net<BR>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>
::: Messages without supporting info will risk being sent to /dev/null<BR>
</FONT>
</P>

</BODY>
</HTML>