LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nagios on Fedora (http://www.linuxquestions.org/questions/linux-server-73/nagios-on-fedora-763726/)

penguin09 10-22-2009 09:42 AM

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

centosboy 10-22-2009 10:11 AM

Quote:

Originally Posted by penguin09 (Post 3728587)
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

penguin09 10-22-2009 11:29 AM

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.

your_shadow03 10-22-2009 11:32 AM

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.

penguin09 10-22-2009 11:44 AM

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?

thegeek 10-22-2009 12:22 PM

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

penguin09 10-22-2009 12:50 PM

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.....

dguitar 10-22-2009 03:28 PM

Quote:

Originally Posted by penguin09 (Post 3728812)
Is the Nsclient++ the most reliable one out there?

Yes


All times are GMT -5. The time now is 10:53 PM.