RE: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-01 Thread Mike Koponick
Bob,

This appears to be a permissions problem. It sounds as if you have nagios as a 
member of the apache group, but are you running nagios as "nagios" (user/group) 
Is Apache running as "apache".

You may also want to check the directories/files to ensure they are a part of 
correct group/ownership. I know this may sound simple, but it has bitten me 
more than once.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob DeBolt
Sent: Wednesday, February 01, 2006 9:34 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on 
this server

Greets

CentOS 4.2 up to date.
SELinux is disabled
2GHz -512MB P4

Nagios installed from RPM Dag Wieers site,

nagios-2.0-0.rc2.2.el4.test.i386.rpm  
nagios-plugins-1.4.1-1.2.el4.rf.i386.rpm     

Web pages work fine, docs are all good. Web Interface login works fine.

Now the problem.

"You don't have permission to access /nagios/cgi-bin/ on this server"

I have googled for  few hours, lots of hits but no success, reread docs, tried 
numerous permission combos on the cgi directory which is /usr/lib/nagios/cgi 
in the RPM install. Made sure apache user is part of the nagios group and on 
and on.

Here is a tail of my web server error_log after wildly clicking the refresh 
button. Of course the log is the same using the CLI GET

Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico

Ideas?

Bob


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
___
Nagios-users mailing list
Nagios-users@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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-01 Thread Bob DeBolt
On Wednesday 01 February 2006 11:30, Mike Koponick wrote:

Hi Mike

Thanks for the response

> This appears to be a permissions problem. It sounds as if you have nagios
> as a member of the apache group, 

Actually apache is running in the nagios group 

> but are you running nagios as "nagios" 
Yes

> Is Apache running as "apache".
Yes

> You may also want to check the directories/files to ensure they are a part
> of correct group/ownership. 

Some of the files in the /usr/lib/nagios/cgi directory

-rwxrwxr-x  1 nagios nagios 135496 Jan 31 11:45 histogram.cgi
-rwxrwxr-x  1 nagios nagios 115176 Jan 31 11:45 history.cgi
-rwxr--r--  1 nagios nagios 99 Jan 31 16:11 .htaccess


Bob


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-02 Thread Bob DeBolt
Mike

I have discovered why the permission issue has happened.

Following (not) the docs, after the Web Interface login is setup I was still 
using the http://yourmachine/nagios/cgi-bin/ to verify the functioning of the 
login. The login works but then attempts to read the cgi-bin directory.

I should have been using http://yourmachine/nagios/ which works correctly

I certainly became reacquainted with setting up apache.

Bob



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@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