Deborah Martin wrote:
can you forward the contents of the .htaccess
file that resides in the cgi-bin directory ? and a listing of the rest
of the directory including the permissions
i'm logged in as nagiosadmin and i have that username in all
my cgi's. I have the sameissue, can't schedule downtime or issue
external commands with the same error. I'm running nagios 2.4
On 8/1/06, Deborah Martin <[EMAIL PROTECTED]>
wrote:
look at
your /usr/local/nagios/sbin directory and check a) file permissions are
correct and also whether your .htaccess authrization file is present.
This error
is generally caused by not correctly using .htaccess and also not
configuring apache properly - check your httpd.conf is correctly
configured
-----Original
Message-----
From: Hari Sekhon [mailto:
[EMAIL PROTECTED]]
Sent: 01 August 2006 14:14
To: Martin J. Green
Cc: [email protected]
Subject: Re: [Nagios-users] Externals Commands
Martin J. Green wrote:
I can't get
external commands to work either (appears it can't write to the file
for some reason), but its so low on my list of priorities I haven't
gotten to it yet.
I am
having real difficulty getting external commands to work and don't full
understand what's going wrong, despite having RTFMing several times.
As an example, I log in to the web interface as nagiosadmin via basic
apache auth successfully as usual. I go to "comments" in the left hand
pane and enter one for a host but when I click submit, I get the error:
"Sorry, but you are not authorized to commit
the specified command.
Read
the section of the documentation that deals with authentication and
authorization in the CGIs for more information.
Return from whence you came"
As far as I can tell, I have all the perms set right according to the
docs:
cgi.cfg
use_authentication=1
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
nagios.cfg
command_file=/var/nagios/rw/nagios.cmd
check_external_commands=1
# NOTE: Setting this value to -1 causes Nagios to check the external
# command file as often as possible.
command_check_interval=-1
ll /var/nagios/ | grep rw/
drwxrws--- 2 nagios apache 4096 Aug 1 13:28 rw/
ll /var/nagios/rw/nagios.cmd
prw-rw---- 1 nagios apache 0 Aug 1 13:28 /var/nagios/rw/nagios.cmd|
The apache process is run by the apache user, a member of the apache
group, so has full perms to the directory and the pipe file nagios.cmd.
Nagios is run by nagios who is also a member of the apache group.
This all looks as it should be according to the docs as far as I can
see.
What am
I missing?
Hari
I think quite a lot of people have trouble with this but a lot give up
or are satisfied that the main bit is working and don't bother with
this...
does anybody have this working and if so could you post your configs so
I can see anything you have different to me?
are external commands generally broken or is there something missing in
the docs/our configs/our brains?
I'm using Version 1.4.1
Hari
************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly
prohibited. Whilst Kognitio Limited takes steps to prevent the
transmission of viruses via e-mail, we can not guarantee that any email
or attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions. Kognitio grants
no warranties regarding performance, use or quality of any e-mail or
attachment and undertakes no liability for loss or damage, howsoever
caused.
***********************************************************************
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn
cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
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
--
- Justin
forgot to show my .htaccess which is:
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
AuthGroupFile /etc/nagios/htpasswd.group
require group nagios
and the perms for the dir are:
ll /usr/nagios/sbin/
total 2128
-rwxrwxr-x 1 nagios nagios 151388 Jul 3 09:12 avail.cgi*
-rwxrwxr-x 1 nagios nagios 153044 Jul 3 09:12 cmd.cgi*
-rwxrwxr-x 1 nagios nagios 119228 Jul 3 09:12 config.cgi*
-rwxr-xr-x 1 nagios nagios 11100 Jul 3 09:12 daemonchk.cgi*
-rwxrwxr-x 1 nagios nagios 165584 Jul 3 09:12 extinfo.cgi*
-rwxrwxr-x 1 nagios nagios 130364 Jul 3 09:12 histogram.cgi*
-rwxrwxr-x 1 nagios nagios 112216 Jul 3 09:12 history.cgi*
-rwxrwxr-x 1 nagios nagios 107960 Jul 3 09:12 notifications.cgi*
-rwxrwxr-x 1 nagios nagios 106232 Jul 3 09:12 outages.cgi*
-rwxrwxr-x 1 nagios nagios 108344 Jul 3 09:12 showlog.cgi*
-rwxrwxr-x 1 nagios nagios 153780 Jul 3 09:12 status.cgi*
-rwxrwxr-x 1 nagios nagios 134584 Jul 3 09:12 statusmap.cgi*
-rwxrwxr-x 1 nagios nagios 122044 Jul 3 09:12 statuswml.cgi*
-rwxrwxr-x 1 nagios nagios 115800 Jul 3 09:12 statuswrl.cgi*
-rwxrwxr-x 1 nagios nagios 126140 Jul 3 09:12 summary.cgi*
-rwxrwxr-x 1 nagios nagios 130964 Jul 3 09:12 tac.cgi*
-rwxr-xr-x 1 nagios nagios 1480 Jul 3 09:12 traceroute.cgi*
-rwxrwxr-x 1 nagios nagios 132764 Jul 3 09:12 trends.cgi*
-h
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
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