I am trying to setup a site in Nagios XI for a Business Unit and keep running into issues. I am testing all these checks by running them on the Nagios XI server.
./check_http -H <site_name> -f ok -I <IP addresss of site>
HTTP OK: HTTP/1.1 302 Found - 534 bytes in 0.002 second response time |time=0.001964s;;;0.000000 size=534B;;;0
I know there is a redirect somewhere so I was going to use the follow as I have in previous site checks but this is the first I've encountered Cannot make SSL connection. I looked for other solutions in this forum but everything I thought was relevant and tried still didn't work.
-4, --use-ipv4
-S, --ssl=VERSION
Connect via SSL. Port defaults to 443. VERSION is optional, and prevents
auto-negotiation (1 = TLSv1, 2 = SSLv2, 3 = SSLv3).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Also, can you tell us a bit about the route from Nagios to the remote host? It looks like in addition to SSL you might have some SSO portal in the way that could be affecting results.
http://<sitename> redirects to
https://<adfs_server>/adfs/ls/?SAMLRequest=jZJPU4MwEMW%2FCpN7CVBbaaYwg%2B3BzlTtCHrw4gRYSsaQYDZY%2FfZC8U%2B9dLzsZd%2B%2B9%2FKbLJE3smVJZ2t1D68doHXeG6mQHRcR6YximqNApngDyGzB0uRmywLXY63RVhdaEidBBGOFViutsGvApGDeRAEP99uI1Na2yChtuHkB20pegMvb1j1gtTetq8DStBZ5riXY2kXUdEgI6O4uzYiz7isJxQfzXytRDuenDryskEqkxNmsI%2FKch0Ewy4MSymoR5OUlFPNy0Y%2BFP63meRj2MsQONgotVzYigefPJl448aaZf8H8GfODJ%2BLsvh54JVQp1P48jXwUIbvOst1kLP8IBo%2FFewGJlwNTdgw2J5TP2%2FJvtCT%2BB0j8AbmkJ2ljdMtue%2FvNeqelKD6cREp9WBngFiLiExqPJ39%2FQ%2FwJ&RelayState=ss%3Amem%3Abb88cd7f1063107a3613910cd13fd42124de000028d815887bc3663675c0410e
which then produces the page I am trying to monitor.
When you say it produces the page, do you mean it generates the page itself? Or it displays it in an iframe or otherwise grabs the content? I am thinking there might also be a mismatch between the SSL cert that is expected and what might be given by the SSO portal.
Also, can you try using -I instead of -H in your check?
tmcdonald wrote:When you say it produces the page, do you mean it generates the page itself? Or it displays it in an iframe or otherwise grabs the content? I am thinking there might also be a mismatch between the SSL cert that is expected and what might be given by the SSO portal.
Also, can you try using -I instead of -H in your check?
It produces the page which once I figure out how to get Nagios to return a 200 I'll search for specific content on the page.