How to get nagios to re-authenticate

Moshe Sharon moshesharon at gmail.com
Tue Jul 12 10:10:32 CEST 2005


Hello

this is not nagios issue. its apache related to basic authentication method ( 
if you are using standard htpasswd ). there are few ways to do it but it 
involves little programming. you can do it by creating a link logout and then 
in the new page ( php or perl ) changing the header to:
Header("WWW-Authenticate: Basic realm='NAGIOS REALM'"); 
Header("HTTP/1.0 401 Unauthorized"); 

this will reask your password. put the web page in the same dir and refresh 
after it to the nagios files.

you can find more examples on using mod_perl to do it. and some examples with 
php do a web search "apache basic authentication logout".

Hope it helped

Moshe Sharon




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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