./check_http -H <adfs-servername> -f follow -I <server-ip> -u '/adfs/ls/IdpInitiatedSignon.aspx' -S --sni -a <userid>:<pwd> -s "Sign Out" -p 443
HTTP OK: HTTP/1.1 200 OK - 12182 bytes in 0.145 second response time |time=0.144998s;;;0.000000 size=12182B;;;0
If I gave the wrong credentials, I’m getting the same output. Then I have checked the access logs on the ADFS server, which showed the check actually doing the HTTP GET, not parsing the userid:pwd
Does this page use ntlm to authenticate instead of basic auth? If so, check_http will not work presently, as it does not have support for ntlm authentication.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Sorry I’m wrong. AD FS is using the standards based WS-Federation protocol and Security Assertion Markup Language (SAML). Is there any plugin supports that?
One thing I noticed that when I do the simple URL check of the web server using check_http, I need to use “—sni” switch to make it work.
./check_http -H <adfs-servername> -f follow -I <server-ip> -u '/adfs/ls/IdpInitiatedSignon.aspx' -S –sni
If I don’t use it, I’m getting “CRITICAL - Cannot make SSL connection.”
Could it be check_from.pl is lacking with "--sni" support?
It is certainly possible, but really depends on if that plugin uses internal perl functions or leverages something like curl or wget as those both support aspx pages. As for other plugins that support these authentication schemes, honestly I am unsure, but we can definitely take a look and get back to you!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
westernuniv wrote:Could it be check_from.pl is lacking with "--sni" support?
I believe so.
westernuniv wrote:Any luck on finding something that works?
Not as of yet, though I will try to bring Spenser into this tomorrow.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.