<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
I posted this question to the nagiosplugins-help list last Wednesday but received no answers. I hope I receive some insight from this list!<BR>
<BR>
-------------------------------------------------------------------------------------------<BR>
<BR>
I'm running nagios 3.0.6 with plugins 1.4.13 both compiled from source on a debian machine. We recently added dataprobe iboot remote power switches to my network. They have basic web authentication, but the authentication only uses a password, not a username. I tried several different things with the -a modifier to check_http, and all failed to get an OK result from the plugin. Among the tests were - <BR>
<BR>
-a \n:PASS<BR>
-a \r:PASS<BR>
-a *:PASS<BR>
-a :PASS<BR>
-a garbage:PASS<BR>
<BR>
All of the tests lead to a 401 error, as shown in this verbose output - <BR>
<BR>
/usr/local/nagios/libexec/check_http -I 192.168.1.254 -a \n:PASS -v<BR>
GET / HTTP/1.0<BR>
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)<BR>
Connection: close<BR>
Authorization: Basic bjpyZWJvb3Q=<BR>
<BR>
<BR>
http://192.168.1.254:80/ is 97 characters<BR>
STATUS: HTTP/1.0 401 Not Authorized<BR>
**** HEADER ****<BR>
WWW-Authenticate: Basic realm="iBoot"<BR>
**** CONTENT ****<BR>
<html><h2>Error</h2></html><BR>
HTTP WARNING: HTTP/1.0 401 Not Authorized<BR>
<BR>
Is there some way to pass an empty or null username to this device? When authenticating as a human through a browser, leaving the username empty and the default password of PASS lets you in. Thanks for any suggestions!<BR>
<BR>
<BR>
</BODY>
</HTML>