permissions on nagios.cmd

Julie islandjewel at gmail.com
Mon Sep 15 20:01:26 CEST 2008


Never mind - it was one last setting on SElinux..

SELinux is preventing cmd.cgi (httpd_sys_script_t) "getattr" to
/usr/local/nagios/var/rw/nagios.cmd

I added a change to SELinux policy and it is working now... I needed to add
it for the file, not just the folder..

chcon -R -t httpd_sys_content_t /usr/local/nagios/var/rw/nagios.cmd

thanks..


On Mon, Sep 15, 2008 at 12:51 PM, Julie <islandjewel at gmail.com> wrote:

> all what I would expect:
>
> nagios_group=nagios
> command_check_interval=-1
> command_file=/usr/local/nagios/var/rw/nagios.cmd
>
> On Mon, Sep 15, 2008 at 12:46 PM, Terry Davis <terrybdavis at gmail.com>wrote:
>
>> On Mon, Sep 15, 2008 at 12:24 PM, Julie <islandjewel at gmail.com> wrote:
>>
>>> Everyone here has been great about helping me on my previous problem -
>>> and now I have a new one.
>>>
>>> I have read the FAQ and recreated the file and check permissions several
>>> times, but no matter what I do I can't get past:
>>>
>>> *Error: Could not stat() command file
>>> '/usr/local/nagios/var/rw/nagios.cmd'!*
>>> *The external command file may be missing, Nagios may not be running,
>>> and/or Nagios may not be checking external commands. *
>>> *An error occurred while attempting to commit your command for
>>> processing.*
>>>
>>> I should explain - I rebuilt nagios on a new system and then rsync'ed key
>>> config files. I was moving from 32 bit to 64 bit and wanted to recompile
>>> everything with 64 bit libraries.
>>>
>>> At first I thought the rsync caused some problems. So following the FAQ -
>>> I deleted /usr/local/nagios/var/rw and recreated.
>>>
>>> drwxrwsr-x 2 nagios nagios   4096 Sep 14 08:44 rw
>>> prw-rw---- 1 nagios nagios 0 Sep 14 08:44 nagios.cmd
>>>
>>>
>>> and both the user and group that runs nagios is nagios. I added apache to
>>> the nagios group. Bust still the error occurs. I have restarted and
>>> rebooted. I do have selinux running, but even tried "permissive" to see if
>>> that was the problem. I also ran
>>>
>>> chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
>>> chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
>>> chcon -R -t httpd_sys_content_t /usr/local/nagios/var
>>>
>>> and still no luck.
>>>
>>> Help?!
>>> ~J~
>>>
>>
>> What are the following values set to in nagios.cfg:
>>
>> check_external_commands
>> command_check_interval
>> command_file
>>
>> Thanks,
>> Terry
>> *
>> *
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080915/d0a2c51d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
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