Brilliant Mark, thanks

Can you explain how this would have happened?

TBH the OS restore was from last Dedember-ish, when I first installed nagios, 
but I don't remember doing this step previously...

Thanks

B

-----Original Message-----
From: Marc Powell [mailto:[email protected]] 
Sent: Wednesday, July 14, 2010 2:40 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Cannot open command file for update


On Jul 14, 2010, at 6:50 AM, Brian O'Mahony wrote:

> 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.

> [r...@nagios servers]# ls -al /usr/local/nagios/var/r*
>  
> /usr/local/nagios/var/rw:
> total 2
> drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 .
> drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 ..
> prw-rw---- 1 nagios nagios    0 Jul 14 12:40 nagios.cmd

Stop nagios and run 'make install-commandmode' from the original tarball you 
installed from or --

chmod 775 /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
make sure that the user your web server runs as is a member of the nagcmd group

restart apache, restart nagios.

HTH

--
Marc


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
[email protected]
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


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to