Check_http with authentication failing
Posted: Fri Sep 01, 2017 7:03 am
Hello,
I've got an old AudioCode box that I'd like to get proper http monitoring on through Nagio but I'm running into one hell of a time getting the basic authentication to work. The username and password are correct and I'm pretty positive from the response that this server is using basic auth. I'm not familiar with the inner workings of RomPager webservers though. I'd appreciate any help in getting this functional. Here is the check and its verbose results:
[[email protected] ~]$ /usr/local/nagios/libexec/check_http -v -H 192.168.10.123 -a User:User
GET / HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: 192.168.10.123
Accept: */*
Authorization: Basic VXNlcjpVc2Vy
http://192.168.10.123:80/ is 539 characters
STATUS: HTTP/1.1 401 Unauthorized
**** HEADER ****
WWW-Authenticate: Digest realm="Realm1", nonce="2763da3aa78d8c65faa3ae450d5249bc", qop=auth
Content-Type: text/html
Transfer-Encoding: chunked
Server: Allegro-Software-RomPager/3.10
Connection: close
**** CONTENT ****
125
<HTML>
<HEAD>
<TITLE>Protected Object</TITLE>
</HEAD>
<BODY>
<H1>Unauthorized</H1>
Correct authorization is required for this area. Either your browser does not perform authorization, or your authorization has failed. RomPager server.<P>
Return to <A HREF="">last page</A><P>
</BODY>
</HTML>
0
HTTP WARNING: HTTP/1.1 401 Unauthorized - 539 bytes in 0.085 second response time |time=0.085088s;;;0.000000 size=539B;;;0
I've got an old AudioCode box that I'd like to get proper http monitoring on through Nagio but I'm running into one hell of a time getting the basic authentication to work. The username and password are correct and I'm pretty positive from the response that this server is using basic auth. I'm not familiar with the inner workings of RomPager webservers though. I'd appreciate any help in getting this functional. Here is the check and its verbose results:
[[email protected] ~]$ /usr/local/nagios/libexec/check_http -v -H 192.168.10.123 -a User:User
GET / HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: 192.168.10.123
Accept: */*
Authorization: Basic VXNlcjpVc2Vy
http://192.168.10.123:80/ is 539 characters
STATUS: HTTP/1.1 401 Unauthorized
**** HEADER ****
WWW-Authenticate: Digest realm="Realm1", nonce="2763da3aa78d8c65faa3ae450d5249bc", qop=auth
Content-Type: text/html
Transfer-Encoding: chunked
Server: Allegro-Software-RomPager/3.10
Connection: close
**** CONTENT ****
125
<HTML>
<HEAD>
<TITLE>Protected Object</TITLE>
</HEAD>
<BODY>
<H1>Unauthorized</H1>
Correct authorization is required for this area. Either your browser does not perform authorization, or your authorization has failed. RomPager server.<P>
Return to <A HREF="">last page</A><P>
</BODY>
</HTML>
0
HTTP WARNING: HTTP/1.1 401 Unauthorized - 539 bytes in 0.085 second response time |time=0.085088s;;;0.000000 size=539B;;;0