<div>Ok, I know this is probably a problem with my configuration so I need new eyes to look at this. <br>I have nagios configured and working WITHOUT AUTHENTICATION (use_authentication=0 in cgi.cfg). If I turn on authentication I don't even get a login prompt on the page for nagios.
<br><br>Here is my script alias stuff in httpd.conf with the auth parameters: <br><br><font color="#009900">ScriptAlias /nagios/cgi-bin /opt/nagios/sbin <br> <Directory /opt/nagios/sbin> <br> AllowOverride None
<br> Options +ExecCGI <br> Order allow,deny <br> Allow from all <br> AuthName "Nagios Access" <br> AuthType Basic <br> AuthUserFile /opt/nagios/etc/htpasswd.users <br> Require valid-user
<br> </Directory> <br><br> Alias /nagios /opt/nagios/share <br> <Directory /opt/nagios/share> <br> Options None <br> AllowOverride None <br> Order allow,deny <br> Allow from all
<br> </Directory> <br></font><br><br>The htpasswd.users file was created using the following command syntax: <br><br><font color="#009900">htpasswd -c /opt/nagios/etc/htpasswd.users myusername<br></font><br>I made sure the correct user/groups could read the
htpasswd.users file: <br><br><font color="#009900">chown root.apache /opt/nagios/etc/htpasswd.users <br>chmod 640 /opt/nagios/etc/htpasswd.users<br></font><br>In my cgi.cfg I have <font color="#009900">use authentication=1
</font> and all commands below it I have the username I added (ie: <font color="#009900">authorized_for_system_information=myusername</font>). <br><br>At any rate, I get to my nagios main page without any request for login. So at the top of the Tactical overview page I have this:
<br> <font color="#009900">Tactical Monitoring Overview <br>Last Updated: Tue May 30 13:25:34 EDT 2006 <br>Updated every 90 seconds <br>Nagios® - <a href="http://www.nagios.org">www.nagios.org</a> <br>Logged in as ?<br></font>
<br>Now, Once I click on one of the cgi pages like Service Details, I get the following message: <br><br><font color="#009900">It appears as though you do not have permission to view information for any of the services you requested...
<br>If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI <br>and check the authorization options in your CGI configuration file.<br></font><br> </div>
<div><span class="postbody">I checked the apache error.log and there's nothing in there recently except the apache restart notices when I restart apache.</span></div>
<div><span class="postbody"><font color="#009900">[Tue May 30 12:50:40 2006] [notice] SIGHUP received. Attempting to restart <br>[Tue May 30 12:50:40 2006] [notice] Apache/1.3.33 (Debian GNU/Linux) mod_python/2.7.10 Python/2.3.4 PHP/4.3.10-16 mod_perl/1.29 configured -- resuming normal operations
</font></span></div>
<div><span class="postbody"></span> </div>
<div>Any idea's as to why it never prompted me to log in? Also, this is on Apache 1.3 and Nagios 2.3. </div>
<div> </div>
<div>-Thanks</div>