I didn't found a other simple way to support other Auth mechanism
Am 24.02.2014 12:46 schrieb "Steve Schnepp" <notifications@github.com>:

> In plugins/cherokee/munin-plugin-for-cherokee:
>
> > @@ -66,14 +73,26 @@ def output_values(response):
> >
> >
> >  def get_data():
> > -	raw_data = urllib.urlopen( "http://%s%s" % (host,about_location)).read()
> > -#	print "DEBUG: " + raw_data
> > -	return eval(raw_data)
> > +	global host
> > +	global about_location
> > +	global http_user
> > +	global http_pass
> > +	url = "http://%s%s" % ( host , about_location )
> > +	request = urllib2.Request(url)
> > +	base64string = base64.standard_b64encode('%s:%s' % (http_user, http_pass))
> > +	if len(http_user) > 0 and len(http_pass) > 0:
> > +		#print "DEBUG: AUTH: " + base64string
> > +		request.add_header("Authorization", "Basic %s" % base64string)
>
> Isn't there a more integrated version of passing user/pass to urllib ?
> As, that one feels NIH, and only supports HTTP Basic [image: :wink:]
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/munin-monitoring/contrib/pull/459/files#r9988237>
> .
>