LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-28-2011, 04:15 AM   #1
MFranco
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Question Start Page: /nagios is forbidden


I don't have permission to access http://servername/nagios.
I can access https://servername only local.
I configured local and network access in /etc/httpd/conf.d/nagios.conf.
My access_log: "GET /nagios HTTP/1.1" 403 334 "-" "Mozilla/5.0 (X11;U;Linux i686; en-US; en -US; rv:1.9.1.9) Gecko/2010100330 Fedora/3.5.9-1 fc11 Firefox/3.5.9"
"GET /vavicon.ico HTTP/1.1" 404 335 "-" "Mozilla/5.0 X11;U;Linux i686; en-US; en -US; rv:1.9.1.9) Gecko/2010100330 Fedora/3.5.9-1 fc11 Firefox/3.5.9"
My error_log: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Digest: genarating secret for digest authentication
done
mod_python: Creating 4 session mutexes based o 150 max processes and 0 max threads
mod_python: using mutex_directory /tmp
Apache/2.2.15 (Unix) DAV/2 PHP/5.2.13 mod_python/3.3.1 Python/2.6 mod_ssl/2.2.15 OpenSSL/0.9.8n-fips mod_perl/2.0.4 Perl/v5.10.0 configured --
resuming normal operations
Permission denied: access to /nagios denied
File does not exist: /var/www/html/favicon.ico
Directory index forbidden by Option directive: /var/www/html
Thank you in advance
Marcia
 
Old 02-28-2011, 09:58 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Post the content of /etc/httpd/conf.d/nagios.conf here?

Quote:
Directory index forbidden by Option directive: /var/www/html
Go to Apache documentation to find out what this means.

Last edited by quanta; 02-28-2011 at 10:00 PM.
 
Old 03-01-2011, 06:38 AM   #3
MFranco
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Quanta,
thank you for your response.
Here my nagios.conf:
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
Allow from 172.16.0.0
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
Allow from 172.16.0.0
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
 
Old 03-15-2011, 12:52 PM   #4
WayneA1975
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Hello I am new to this forum and I am having the same problem I cannot access from the machine I have installed Nagios onto or from a remote machine...Please help I need this running....Thankyou in advance!
 
Old 03-15-2011, 12:56 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by WayneA1975 View Post
Hello I am new to this forum and I am having the same problem I cannot access from the machine I have installed Nagios onto or from a remote machine...Please help I need this running....Thankyou in advance!
Is it running? Is your firewall blocking it? Are there any errors to help with troubleshooting?
 
Old 03-15-2011, 12:57 PM   #6
WayneA1975
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
This is the output from my nagios.conf :-

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/"

<Directory "/usr/lib/nagios/cgi-bin/">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>

Alias /nagios "/usr/share/nagios/html"

<Directory "/usr/share/nagios/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>
 
Old 03-15-2011, 01:02 PM   #7
WayneA1975
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
I have turned the firewall off completely and set SElinux administration to permissive.
I get a logon come up when I connect to http://servername/nagios, I have set a password for nagios but it just comes back with a 403 forbiden on the web page.
 
Old 03-15-2011, 01:04 PM   #8
WayneA1975
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
should have read:-
Hello I am new to this forum and I am having the same problem I cannot access from the machine I have installed Nagios onto. I have the same problem when trying to access from a remote machine...Please help I need this running....Thankyou in advance!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set nagios to apache start/home page drsketch1 Linux - Server 3 01-19-2011 10:34 PM
Nagios 403 Forbidden error in monitoring localhost mtimbro Linux - Software 4 06-12-2008 01:42 PM
Apache, nagios and 403 forbidden gfem Fedora 1 10-04-2007 02:43 PM
transcode home page forbidden wkuballa Linux - Software 1 02-15-2005 06:43 PM
page forbidden when checking https://localhost/ .....please help! poncenby_smythe Linux - Security 1 08-27-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration