External Command File Error
Marc Powell
marc at ena.com
Thu Jul 9 00:03:19 CEST 2009
On Jul 8, 2009, at 3:56 PM, Kaplan, Andrew H. wrote:
> Hi there -
>
> I completed the installation of the Nagios 3.1.2 application onto
> our CentOS 5.3 server. Everything appears
> to be working fine with one noticeable exception: If I go to the
> host information page of any host, and select
> Schedule a check of all services on the host, and subsequently click
> on commit, I get the following error:
>
> 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.
>
> I went through and verified the following:
>
> 1. The nagios user account has the bash shell.
> 2. The permissions on the nagios directory, and its subdirectories
> are as follows:
> user:group ownership = nagios:nagios
> permissions = rwxrwxrwx
>
> What did I miss here, and what can I do to correct it? Thanks.
>
Does /usr/local/nagios/var/rw exist? If not run 'make install-
commandmode' if you installed from source code.
Does /usr/local/nagios/var/rw/nagios.cmd exist after starting nagios?
If not, verify that you've set check_external_commands and related
options in nagios.cfg.
Is the ownership of /usr/local/nagios/var/rw nagios:nagios? If so,
review the Fedora Quickstart Guide, specifically Step 1, Create
Account Information; you've missed setting the ownership of the files
and apache group membership correctly. Apache will need to be
restarted after making those changes.
Do you have SELinux enabled and in enforcing mode? If so, is your
policy preventing access to that directory and named pipe?
--
Marc
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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