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

Marc Powell marc at ena.com
Thu Nov 11 19:38:22 CET 2004



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Lance Boon
> Sent: Thursday, November 11, 2004 11:50 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Error: Could not open command file
> '/usr/local/nagios/var/rw/nagios.cmd' for update!
> 
> I've just set up Nagios 1.2 up on a Fedora Core 9 box and most of it
> seems to be working correctly. However if I want to add a comment to
one
> of my hosts I get the error "Error: Could not open command file
> '/usr/local/nagios/var/rw/nagios.cmd' for update!" I've followed the
> instructions on
http://nagios.sourceforge.net/docs/1_0/commandfile.html
> to no avail. If I look at the apache access log I see
> 
> 10.10.10.100 - nagios [11/Nov/2004:11:33:21 -0600] "POST
> /nagios/cgi-bin/cmd.cgi HTTP/1.1" 200 1710
> 
> ls -asl -->  4 drwxrwsr-x  2 nagios nagios  4096 Nov 10 22:22 rw
> 
> ls -asl -->  0 prw-rw----  1 nagios nagios    0 Nov 10 22:22
nagios.cmd
> 
> tail /etc/group  -->  nagios:x:503:nagios,nobody
> 
> I'm stuck on trying to figure out what is happening here so any
> assistance would be greatly appreciated, I've looked through the list
> archives and tried some of the suggestions there but to no avail as
> well.

Presuming that your web server runs as the user 'nobody', did you
restart apache _after_ adding it to the nagios group? It's not clear
that's one of the suggestions you found and tried.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
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