"Logged in as ?" -- http auth not working ?

Rodrigo Maceno rodrigo.maceno at gmail.com
Tue Sep 12 19:19:57 CEST 2006


Did you put the follow lines at your httpd file??


Alias /nagios "/usr/local/nagios/share"
 AuthType Basic
 AuthUserFile /usr/local/nagios/etc/htpasswd.users
           Require valid-user
</Directory>



2006/9/12, Rob Ristroph <rgr at sdf.lonestar.org>:
>
>
> This is not the problem, I already had the htpasswd user be a valid
> contact, and the default_user_name was already commented out.
>
> I am not sure what it is, except that I suspect it is something in my
> apache configs.
>
> --Rob
>
> >>>>> "Rodrigo" == Rodrigo Maceno <rodrigo.maceno at gmail.com> writes:
> Rodrigo>
> Rodrigo> Ok, I had this same problem some time ago...
> Rodrigo> First, you must to retire the default_user_name at the cgi.cfgarchive. You
> Rodrigo> must define a valid contact at the minimal.cfg (or another
> archive that you
> Rodrigo> have your contacts). This contact must be in htpasswd archive...
> Rodrigo>
> Rodrigo> Try to do it...
> Rodrigo>
> Rodrigo> []'s
> Rodrigo>
> Rodrigo> 2006/9/8, Marc Powell <marc at ena.com>:
> >>
> >>
> >>
> >> > -----Original Message-----
> >> > From: nagios-users-bounces at lists.sourceforge.net [mailto:
> nagios-users-
> >> > bounces at lists.sourceforge.net] On Behalf Of Rob Ristroph
> >> > Sent: Thursday, September 07, 2006 8:11 PM
> >> > To: Nagios Users Mailinglist
> >> > Subject: [Nagios-users] "Logged in as ?" -- http auth not working ?
> >> >
> >> >
> >> > Hi,
> >> >         When I visit my nagios from the web, it asks me for the
> >> >         user/pass and I log in successfully, except when I do "show
> >> >         host details" it says:
> >> >
> >> > "It appears as though you do not have permission to view information
> >> > for any of the hosts you requested...
> >> >
> >> > If you believe this is an error, check the HTTP server authentication
> >> > requirements for accessing this CGI and check the authorization
> >> > options in your CGI configuration file."
> >> >
> >> >         It also says "Logged in as ?" near the top of the page.
> >>
> >>
> >> >
> >> >         It prints to standard out a correct html page that says
> >> >         "Logged in as nagiosadmin".
> >> >
> >> >         I can't find any useful information in the apache or nagios
> >> >         logs.
> >> >
> >> >         Any suggestions on how this can be debugged ?  I realize that
> >>
> >> Make sure that you have the correct htaccess information for the _sbin_
> >> directory, not (just) the share directory. Depending on how you
> >> configured it it's either in httpd.conf or an .htaccess file in
> >> ~nagios/sbin. It's the configuration for the sbin directory that's
> >> important.
> >>
> >> http://nagios.sourceforge.net/docs/2_0/installweb.html
> >>
> >> If you made the changes to httpd.conf, be sure you restarted apache
> >> after doing so.
> >>
> >> --
> >> Marc
> >>
> >>
> -------------------------------------------------------------------------
> >> Using Tomcat but need to do more? Need to support web services,
> security?
> >> Get stuff done quickly with pre-integrated technology to make your job
> >> easier
> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> >>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> _______________________________________________
> >> 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
> >>
> Rodrigo>
> -------------------------------------------------------------------------
> Rodrigo> Using Tomcat but need to do more? Need to support web services,
> security?
> Rodrigo> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Rodrigo> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> Rodrigo>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
> Rodrigo> Nagios-users mailing list
> Rodrigo> Nagios-users at lists.sourceforge.net
> Rodrigo> https://lists.sourceforge.net/lists/listinfo/nagios-users
> Rodrigo> ::: Please include Nagios version, plugin version (-v) and OS
> when reporting any issue.
> Rodrigo> ::: Messages without supporting info will risk being sent to
> /dev/null
>
> --
> http://rgr.freeshell.org/
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060912/8a60c283/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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