LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2008, 10:40 AM   #1
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Rep: Reputation: 15
Question Nagios 403 Forbidden error in monitoring localhost


Hi all,

I've read all over to get this to work...I've already fixed it in the past but don't remember how I did it :-(...

Anyways, In the Service Detail pane of Nagios I get a 403 error when monitoring the local httpd server.

Here is the output of error_log for apache:

[Thu Jun 12 08:01:48 2008] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/

These are the permissions on the directory:

drwxr-xr-x 2 root root 4096 Aug 7 2007 html

Please advise.

M
 
Old 06-12-2008, 10:49 AM   #2
mahalingam
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
hi mtimbro ,I imagine you have a linux OS. Perhaps your problem is due a SELinux security policy.

post here the out put of commands "sestate -v" an ls -ldZ of the html directory.


cheers
 
Old 06-12-2008, 11:43 AM   #3
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the prompt reply. SELinux is disabled on the machine.

It's a RH ES 4 i386 by the way :-). I'm think it has something to do with permissions...
 
Old 06-12-2008, 12:34 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Search LQ? Like http://www.linuxquestions.org/questi...ltdocs-627084/?
 
Old 06-12-2008, 01:42 PM   #5
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Original Poster
Rep: Reputation: 15
Obviously, I had read that post beforehand.

Found it on my own.

I needed to touch an empty index.html file in the /var/www/html directory.

Cheers,

Last edited by mtimbro; 06-12-2008 at 01:43 PM.
 
  


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
Forbidden 403 error with my apache entz Linux - Software 2 12-17-2007 05:33 PM
Apache, nagios and 403 forbidden gfem Fedora 1 10-04-2007 02:43 PM
403 Forbidden error was encountered pilot11 Linux - Newbie 7 10-18-2006 11:28 AM
HTTP 403 (Forbidden) error lothario Fedora 6 02-08-2005 04:43 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:33 PM.

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