CGI auth: nagios not getting user from Apache

Antone, Nick NAntone at ESNCC.com
Wed Sep 10 20:30:02 CEST 2003


I'm in the same boat. Problem description is almost EXACTLY the same  But with Apache 2.x.

Had things running fine on an old Mandrake Box.  Loaded new RH9 machines, compiled Nagios and plugins with all defaults, moved the old config files over (with necessary mods) and Nagios itself is chugging away nicely.  Just can't use web interface without the problems that Matt lists below.

I'm still working on it, and if I find anything I'll share of course.   If you fix yours, PLEASE share your findings!

Yes, I'm Apache-configuration challenged, so for all I know it's Apache.  I lived in the Windows world for so long that it's taking a while to "unlearn" all my bad habits!


-Nick

Nick Antone, Jr.
Senior Network Engineer
Engineering Services Network, Inc.
nantone at esncc.com



-----Original Message-----
From: Matt Pounsett [mailto:matt.pounsett at cira.ca]
Sent: Wednesday, September 10, 2003 10:51 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] CGI auth: nagios not getting user from Apache



I seem to be having a problem with authentication that I can't work out.  I've
done some searching of the list archives, but can't find any previous emails
that depict quite this problem.

Apache seems to be authenticating me properly.  I'm presented with an HTTP
Auth login, and Apache lets me see my nagios files once I've entered my
password.. however, nagios doesn't seem to recognize me.

At first, the Tactical Monitoring Overview reported me logged in as "?".  Once
I turned on default_user_name it started reporting me logged in as guest.
Whatever I do, I can't seem to get nagios to see the username I actually
logged in with ("mattp").  

Anyone have any ideas what I'm missing?

Here are the relevant config details:

Nagios 1.1
Apache/1.3.27

use_authentication=1
default_user_name=guest
authorized_for_system_information=*
authorized_for_configuration_information=mattp
authorized_for_system_commands=mattp
authorized_for_all_services=mattp
authorized_for_all_hosts=mattp
authorized_for_all_service_commands=mattp
authorized_for_all_host_commands=mattp

.htaccess file (in 'bin' and 'share' directories)
----
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
----

There is only the user 'msttp' in htpasswd.users


-- 
Matt Pounsett                 CIRA - Canadian Internet Registration Authority
Technical Support Programmer                    350 Sparks Street, Suite 1110
matt.pounsett at cira.ca                                 Ottawa, Ontario, Canada
613.237.5335 ext. 231                                      http://www.cira.ca



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list