Nagios Help - TechRepublic
Question
February 12, 2009 at 04:17 AM
kumarjyoti2478

Nagios Help

by kumarjyoti2478 . Updated 17 years, 5 months ago

Hi Friends,
I am not able to apply CGI Authentication in our Nagios. Without CGI it is working fine. Here is my nagios entry in httpd.conf ..

# BEGIN FOR NAGIOS

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


Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
# AuthName “Nagios Access”
# AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
# Require nagiosadmin

Alias /nagios /usr/local/nagios/share


Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
# AuthName “Nagios Access”
# AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
# Require nagiosadmin

###############################################

############################################### Here is the entry in ..\nagios\share and …\nagios\sbin .htaccess file

AuthName “Nagios Access”
AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user ======================================
The Error_Log details are:- tail /var/log/httpd/error_log [Wed Feb 11 08:48:05 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:01 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:01 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:02 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:02 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:02 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:03 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:03 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Wed Feb 11 09:14:03 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share [Thu Feb 12 07:47:41 2009] [error] [client 10.1.7.111] Directory index forbidden by rule: /usr/local/nagios/share
===============

Plz someone let me know the problem. Waiting for your positive & quick response.

Thanks & Regards,
Kumar

This discussion is locked

All Comments