nagios.cmd permissions
Richard Muir (Ham)
Richard.Muir at stortext.com
Tue Jun 17 15:36:45 CEST 2003
Apache runs as the user wwwrun and its in the group
nagiocmd:x:503:nagios,nobody,nagiosadmin,wwwrun
Permissions after a restart of nagios are as follows
drwxrwsr-x 2 nagios nagiocmd 4096 Jun 16 15:46 rw
-rw-rw-r-- 1 nagios users 3520 Jun 17 13:35 status.log
-rw-r--r-- 1 nagios nagios 2473 Jun 17 12:46 status.sav
hrg-netmon1 nagios/var# cd rw
Directory: /usr/local/nagios/var/rw
hrg-netmon1 var/rw# ll
total 8
drwxrwsr-x 2 nagios nagiocmd 4096 Jun 16 15:46 .
drwxrwxr-x 4 nagios nagios 4096 Jun 17 13:35 ..
prw-rw---- 1 nagios nagiocmd 0 Jun 16 15:46 nagios.cmd
-----Original Message-----
From: Mikel Bauer [mailto:mikel at bridgeband.net]
Sent: 16 June 2003 18:27
To: Aleksey Domorad
Cc: 'Richard Muir (Ham)'; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] nagios.cmd permissions
I would suggest against doing this, but instead, verify that the httpd
user (ie apache or nobody) is in the nagioscmd group. Also, have you
restarted apache since you updated the cgi scripts? I'd give that a shot.
Aleksey Domorad wrote:
> I had very same issue.
> Change your nagios.cfg to reflect following
>
> # NAGIOS GROUP
> # This determines the effective group that Nagios should run as.
> # You can either supply a group name or a GID.
>
> nagios_group=apache
>
>
> Basically start nagios with apache group.
>
> Make sure that your apache config matches that group.
>
>
>
> -----Original Message-----
> *From:* Richard Muir (Ham) [mailto:Richard.Muir at stortext.com]
> *Sent:* Monday, June 16, 2003 11:35 AM
> *To:* nagios-users at lists.sourceforge.net
> *Subject:* [Nagios-users] nagios.cmd permissions
>
> Installed Nagios v 1.0 and had everything working no problem
>
>
>
> Installed v1.1 last week and now cannot execute commands from the
> web interface due to permission problems.
>
>
>
> Have checked and have the following
>
> drwxrwsr-x 2 nagios nagiocmd 4096 Jun 16 15:31 .
>
> drwxrwxr-x 4 nagios nagios 4096 Jun 16 15:31 ..
>
> prw-rw---- 1 nagios nagiocmd 0 Jun 16 15:31 nagios.cmd
>
>
>
> Doing a chmod works BUT every time I restart nagios it resets the
> permissions back to whats above.
>
>
>
> Have restarted the web server, checked the groups all seem ok.
>
>
>
> Anyone else have this issue ?
>
> Richard Muir
> Systems Manager
> Stortext(UK) Limited phone: +44 (0) 1698 455 821 (reception)
> Caird Centre, phone: +44 (0) 1698 455 812 (direct)
> Caird Park, fax: +44 (0) 1698 455 858
> Hamilton, ML3 0EU email: richard.muir at stortext.com
> Scotland www:_ <http://www.stortext.com>_
> -----------------------------------------------
> This e-mail message is confidential and for use by the addressee
> only. If the message is received by anyone other than the addressee,
> please return the message to the sender by replying to it and then
> delete the message from your computer. Internet e-mails are not
> necessarily secure. The Stortext Group * does not accept
> responsibility for changes made to this message after it was sent.
>
> Whilst all reasonable care has been taken to avoid the transmission
> of viruses, it is the responsibility of the recipient to ensure that
> the onward transmission, opening or use of this message and any
> attachments will not adversely affect its systems or data. No
> responsibility is accepted by The Stortext Group * in this regard
> and the recipient should carry out such virus and other checks as it
> considers appropriate.
>
> * The Stortext Group of companies consists of Stortext Group
> Limited, Stortext UK Limited and Stortext Document Solutions Limited.
>
> -----------------------------------------------
>
>
>
--
Mikel Bauer
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
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