Cannot open command file for update

Marc Powell lists at xodus.org
Wed Jul 14 15:40:01 CEST 2010


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.

> [root at 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
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