No username login

Jamie Baddeley jamie.baddeley at vpc.co.nz
Sat Jan 24 09:39:30 CET 2004


Hi,

I have tested this and can confirm this works well. Make sure you change
cgi.cfg appropriately.

Thanks Marc, was using this idea elsewhere, but the thread inspired me
to apply to nagios stuff. 

Chez

Jamie

(following is a debian specific config, but you get the idea.)

root at noc:~# cat /etc/nagios/apache.conf

# BEGIN FOR NAGIOS
# Bug 160681 and 162986 say that the ScriptAlias should be
#       /cgi-bin/nagios
# but some reports, 164925, (and the default config) say
# that it should be
#       /nagios/cgi-bin
# Anyone having problems with this, PLEASE dig deeper in WHY
# it won't work for you...
#
# I'm enabling BOTH, just to be sure!
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios/
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios/
<DirectoryMatch /usr/lib/cgi-bin/nagios/>
        Options ExecCGI

        AllowOverride AuthConfig
        order deny,allow
        deny from all
        allow from a.b.c.d.
        satisfy any
        AuthName "NOC Access"
        AuthType Basic
        AuthUserFile /etc/nagios/htpasswd.users
        require valid-user
</DirectoryMatch>

Alias /netsaint /usr/share/nagios/htdocs/
Alias /nagios /usr/share/nagios/htdocs/
<DirectoryMatch /usr/share/nagios/htdocs/>
        Options FollowSymLinks

        AllowOverride AuthConfig
        order deny,allow
        deny from all
        allow from a.b.c.d
        satisfy any
        AuthName "NOC Access"
        AuthType Basic
        AuthUserFile /etc/nagios/htpasswd.users
        require valid-user
</DirectoryMatch>
# END FOR NAGIOS

On Sat, 2004-01-24 at 09:18, Marc Powell wrote:
> On Friday, January 23, 2004 1:52 PM, TIM MOORE shared with us:
> 
> > I have a need to allow a "guest" user who could just click on a
> > hyper-link and pull up the host status page.  I created a default
> > user guest and I can put a link straight to the host status page. 
> > However, it still asks for username and password.  Does anyone know
> > how to get rid of this login for a "trusted" user.  This would sort
> > of be like a "help desk" user.     
> 
> http://username:password@your.nagioshost.com will work.
> 
> There is also the possiblity that you could get creative with your
> .htaccess file and allow based on IP, domain, browser version or
> whatever but a user allowed by those rules would pick up the identity of
> the default_user_name configured in cgi.cfg. I haven't specifically
> tested it but I don't have any reason to think that it wouldn't work.
> There are lots of pages out there with .htaccess tutorials (hint: look
> for 'satisfy any') to get you started if you decide to go this route.
> 
> --
> Marc
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> 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
> 




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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