[Nagios-users] nagios.cmd permission issue

Ilan Berkner iberkner at gmail.com
Sun Oct 3 23:05:27 UTC 2010


Hi All,

Turns out that the FCGI wrapper process was running under a different user
than both the web server and nagios and although CGI scripts were running,
that may have contributed to the problem.

I also noticed that there were other nagios processes running at the same
time that should have been previously killed but were not so that may also
have been a contributing factor.

I've now normalized all of the web processes with the same user:

1. Nginx
2. PHP
3. FCGIWrapper
4. Nagios service

and the problem seems to be resolved.

Thanks to everyone for their support, suggestions and help.



On Sun, Oct 3, 2010 at 4:30 PM, Rutger Blom <rutger at blokje.net> wrote:

> Have you verified that the user you log in with into the Nagios CGI has
> permission to execute commands?
>
> Rutger
>
> On 3 okt 2010, at 21.25, Robert Wolfe <robert.wolfe at robertwolfe.org>
> wrote:
>
> Unfortunately, I did the same and am still getting the same error.
>
>
>
> *From:* Ilan Berkner [mailto:iberkner at gmail.com]
> *Sent:* Sunday, October 03, 2010 1:35 PM
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] nagios.cmd permission issue
>
>
>
> I've reconfigured nagios to run as the same user and group as that of the
> web server.  Still getting this command file issue.
>
>
>
> Any other suggestions?
>
>
>
> Many thanks...
>
> On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner < <iberkner at gmail.com>
> iberkner at gmail.com> wrote:
>
> Yep, there's no question that's what it is, but I've set it up so that the
> webserver user is part of the group that owns the rw directory with the
> sticky bit set, but no luck (yet)
>
>
>
> On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell < <lists at xodus.org>
> lists at xodus.org> wrote:
>
>
> On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:
>
> > Did not work, probably b/c I'm restarting the service as root?
> >
> > Is there a way to tell under which user nagios is trying to access the
> nagios.cmd file?
>
> Your web server is trying to write to the pipe so it's whatever user your
> web server is configured to run as.
>
> --
> Marc
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
>  <http://p.sf.net/sfu/novell-sfdev2dev>
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagios-users mailing list
>  <Nagios-users at lists.sourceforge.net>Nagios-users at lists.sourceforge.net
> <https://lists.sourceforge.net/lists/listinfo/nagios-users>
> 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
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
>
> _______________________________________________
> 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
>
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nagios.com/pipermail/nagios-users/attachments/20101003/25b36d63/attachment.html>


More information about the Nagios-users mailing list