can't access nagios.cmd from the interface

Tim Dunphy bluethundr at gmail.com
Tue Mar 19 00:09:29 CET 2013


The user and group for apache is 'apache'

grep -i user httpd.conf

User apache

grep -i group  httpd.conf

Group apache

On Mon, Mar 18, 2013 at 7:00 PM, Tech Support <support at voipbusiness.us>wrote:

> What user is Apache running under?****
>
> ** **
>
> *From:* Tim Dunphy [mailto:bluethundr at gmail.com]
> *Sent:* Monday, March 18, 2013 6:17 PM
> *To:* nagios-users at lists.sourceforge.net
>
> *Subject:* [Nagios-users] can't access nagios.cmd from the interface****
>
> ** **
>
> Hello,
>
>
>  I'm running nagios 3.2 under centos 5.9 and I notice if I try to issue
> any command such as rescheduling a check I see the message:
>
>
> ****
>
> "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.
>
> Return from whence you came"
>
> These are the permissions and ownership on this file:
>
> prw-rw---- 1 nagios nagios 0 Mar 16 08:01
> /usr/local/nagios/var/rw/nagios.cmd
>
> Since this file gets recreated I tried applying the following commands:
>
> [root at cloud:~] #chown nagios.nagios /usr/local/nagios/var/rw
> [root at cloud:~] #chmod g+rwx /usr/local/nagios/var/rw
> [root at cloud:~] #chmod g+s /usr/local/nagios/var/rw
>
> This seems to have no effect. I notice if I try to reschedule the command
> again I get the same error message telling me to 'return from whence I
> came'.
>
> The only thing I can do to make this temporarily work from the interface
> is to change mode on that command file to world which is obviously not what
> you want to do.
>
> Can someone please point me in the right direction here as to where I may
> be going wrong?
>
> Thanks!
> Tim
>
>
> ****
>
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B****
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> 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
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130318/f0b12747/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
-------------- 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