LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2009, 09:42 AM   #1
penguin09
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Rep: Reputation: 0
Nagios on Fedora


Hi all,

I am new to linux and nagios. However, i have a need for a monitoring solution and i have heard good things about Nagios. So, I installed Fedora 11 and setup Nagios as per the article at the following link.

http://nagios.sourceforge.net/docs/3...rt-fedora.html

However, when attempting to access the webinterface i receive the following error.

Forbidden
You don't have permission to access /nagios/ on this server.

Any and all asisstance is appreciated.

Thanks
 
Old 10-22-2009, 10:11 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by penguin09 View Post
Hi all,

I am new to linux and nagios. However, i have a need for a monitoring solution and i have heard good things about Nagios. So, I installed Fedora 11 and setup Nagios as per the article at the following link.

http://nagios.sourceforge.net/docs/3...rt-fedora.html

However, when attempting to access the webinterface i receive the following error.

Forbidden
You don't have permission to access /nagios/ on this server.

Any and all asisstance is appreciated.

Thanks

check the httpd logs. they will tell you. sounds like permissions problem to me.

check /var/log/httpd/access.log & /var/log/httpd/error.log.

Also check in here :- /etc/httpd/conf.d/nagios.conf and make sure the htaccess directives are allowing you access from your host and wherever else you access from.

Let me know how you get on or if you need further help
 
Old 10-22-2009, 11:29 AM   #3
penguin09
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Here is the last line from the access.log

nagiosadmin [22/Oct/2009:12:26:23 -0400] "GET /nagios/ HTTP/1.1" 403 288 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"


Here is the error.log

Directory index forbidden by Options directive: /usr/local/nagios/share/


Thanks.
 
Old 10-22-2009, 11:32 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,429
Blog Entries: 6

Rep: Reputation: 51
I setup Nagios last week and if you really want to check if everything you did the correct follow line by line:

http://linuxhunt.blogspot.com/2009/1...n-rhel-53.html

In case you face any issue at any step let me know.
 
Old 10-22-2009, 11:44 AM   #5
penguin09
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Here is my nagios.conf file...

# 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
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/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
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>


Should these be placed in the httpd.conf file?
 
Old 10-22-2009, 12:22 PM   #6
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Expand the : Allow from 127.0.0.1

to include your network address or range , e.g. add a line like:

Allow from 192.168.1.24

or

Allow from 192.168.0.0 for the whole network B class
 
Old 10-22-2009, 12:50 PM   #7
penguin09
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
GUYS,
Thanks for all your responses. I was able to get it to work! After posting my nagios.conf file i went to check the physical path and found that the sbin directory did not exist! So, I ran through the install again and Eureka the page appeared as if by magic. So, now onto the real work of configuring it to monitor linux and windows boxes as well as cisco devices. Any suggestions as to what plugins or clients work best on the windows side? Is the Nsclient++ the most reliable one out there?

Thanks again for letting me bounce questions of you guys....trust me it won't be the last.....
 
Old 10-22-2009, 03:28 PM   #8
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Quote:
Originally Posted by penguin09 View Post
Is the Nsclient++ the most reliable one out there?
Yes
 
  


Reply

Tags
nagios


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 9 + Nagios 3.0.6 + Nagiosgraph 1.2.1 - how to get the perl modules JonXP Linux - Newbie 3 03-05-2009 09:39 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 0 07-18-2006 08:33 PM
Nagios cgis not working in fedora core 3? Jamesk5 Linux - Software 9 04-29-2005 06:26 AM
Nagios and Fedora 3 laltopi Linux - Software 0 04-05-2005 08:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration