permissions on nagios.cmd

Terry Davis terrybdavis at gmail.com
Mon Sep 15 19:46:48 CEST 2008


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/3a277102/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