nagios external command error

Guillermo Padilla gpadilla at cbct.com
Mon Jul 11 22:33:17 CEST 2005


Yes I have SELINUX enabled but no errors in /var/log/messages.  I'll
check the policy.  I've previously restarted apache after nobody was
added to nagiocmd with no luck.


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Monday, July 11, 2005 3:47 PM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nagios external command error



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla
> Sent: Monday, July 11, 2005 11:43 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] nagios external command error
> 
> I've gotten 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've done the suggested
> http://nagios.sourceforge.net/docs/1_0/commandfile.html
> 
> Instructions to fix this issue with no luck.
> 
> 
> 
> The only way I can run external commands via the nagios interface is
by
> manually chmoddin nagios.cmd to 777.
> 
> 
> 
> Currently the user/group for this process is nagios:nagiocmd
> 
> 
> 
> I'm running RH AS 4.0 with apache 2.0.54 and nagios 1.2


Mmmmm. AS 4.0. Do you have SELINUX enabled? Do you see SELINUX errors in
/var/log/messages? Make sure your policy allows apache to write to that
file/directory.

Another common problem is that apache is not a member of the nagiocmd
group _or_ wasn't restarted after adding it to that group. Your apache
error logs might be informative in that regard as well.

--
Marc

p.s. Please try to send to the list in text/plain as a matter of
courtesy. The digests don't handle HTML mail well.


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by
HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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