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

Marc Powell marc at ena.com
Mon Jun 9 22:46:31 CEST 2008


On Jun 8, 2008, at 7:48 AM, howard chen wrote:

>
> But seems when I restarted the nagios, permission reset, so I am
> looking for the correct method to set the permission.
>
>
> Below is the  information which might be useful:
> ===================
> ls -l /usr/local/nagios/var/rw/nagios.cmd
> prw-rw---- 1 nagios nagcmd 0 Jun  8 20:46 /usr/local/nagios/var/rw/ 
> nagios.cmd
>
>
> id nagios
> uid=504(nagios) gid=504(nagios) groups=504(nagios),505(nagcmd)
>
>
> cat /etc/group | grep nagcmd
> nagcmd:x:505:apache,nagios
>

apache has been restarted since adding it to the nagcmd group? Also,  
if you have SELinux enabled, the quickstart only talks about setting  
context for share and sbin, not the rw directory. Apache is going to  
need write access to var/rw/nagios.cmd in order to write data to the  
pipe.

--
Marc


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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