check_http return 401 UNAUTHORIZED basic auth
Posted: Tue Aug 11, 2015 2:37 pm
Hello,
I'm using the standard check_http plugin on Nagiox XI 2014R2.7 against a site with SSL. I've have tried many different variations of parameters from the command line (wasting lots of time) using the plugin with no luck, and could certainly welcome any suggestions.
The site uses TLS (--ssl=1), and searches for specific text with basic authentication (-a). Note, when I don't use the search it still returns 401. I have used 'openssl s_client connect' and successfully connect but when I use 'GET /url' i get 401. Question, have you encountered an issue with this plugin when passing meta characters that exist in the passwd? We have ipMonitor (Solarwinds) running the check just fine but can't figure out how to make this plugin succeed.
I'm using the standard check_http plugin on Nagiox XI 2014R2.7 against a site with SSL. I've have tried many different variations of parameters from the command line (wasting lots of time) using the plugin with no luck, and could certainly welcome any suggestions.
The site uses TLS (--ssl=1), and searches for specific text with basic authentication (-a). Note, when I don't use the search it still returns 401. I have used 'openssl s_client connect' and successfully connect but when I use 'GET /url' i get 401. Question, have you encountered an issue with this plugin when passing meta characters that exist in the passwd? We have ipMonitor (Solarwinds) running the check just fine but can't figure out how to make this plugin succeed.
Code: Select all
# ./check_http -H x.x.x.x -u /url -f ok -p 443 --ssl=1 -a user:passwd -s "SEARCH TEXT" -v
GET /ipMonitor/Home.aspx HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: x.x.x.x=
Accept: */*
Authorization: Basic dixkeyhafdfdfilm/
https:/x.x.x.x:443/url is 551 characters
STATUS: HTTP/1.1 401 Unauthorized
**** HEADER ****
Content-Type: text/plain; charset=utf-8
Server: Microsoft-IIS/7.5
SPRequestGuid: 0e03239d-f32e-40c7-ad10-7fdddddd4b9b
request-id: 0e03239d-f32e-40c7-ad10-7sdsddsfdf4b9b
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 2
SPIisLatency: 0
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 15.0.0.4569
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Tue, 11 Aug 2015 18:27:05 GMT
Connection: close
Content-Length: 16
**** CONTENT ****
401 UNAUTHORIZED
HTTP CRITICAL: HTTP/1.1 401 Unauthorized - string 'SEARCH TEXT' not found on 'https://x.x.x.x/url' - 551 bytes in 0.012 second response time |time=0.012349s;;;0.000000 size=551B;;;0