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 |
Quote:
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 |
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. |
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. |
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? |
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 |
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..... |
Quote:
|
All times are GMT -5. The time now is 10:55 PM. |