Hi I am currently trying to do a check with the check_http or <a href="http://check_http.pl">check_http.pl</a> plugins.  Both are very similar but for some reason I cant get either to work.  I am running the checks like this:<div>
<br></div><div>check_http -H -S <a href="http://www.example.com">www.example.com</a> -u /somestring - gives result: HTTP OK HTTP/1.1 200 OK - 1752 bytes in 0.175 seconds |time=0.175032s;;;0.000000 size=1752B;;;0</div><div>
<a href="http://check_http.pl">check_http.pl</a> -H <a href="http://www.example.com">www.example.com</a> -s -u /somestring - gives result: Status: CRITICAL HTTP/1.1 400 On Server  MESSAGE:</div><div><br></div><div>if I add -p 443 to the first check it gives this result: HTTP WARNING: HTTP/1.1 400 Bad Request</div>
<div><br></div><div>also if I remove the -s option from the second check it works fine.  I know the page works fine because it comes up however it still does not work with the check?  Here is a port check:</div><div><br></div>
<div><div>nc -zv <a href="http://www.example.com">www.example.com</a> 443</div><div>Connection to <a href="http://tags.mediaforge.com">tags.mediaforge.com</a> 443 port [tcp/https] succeeded!</div></div><div><br></div><div>
I removed the domain due to company security sorry, anyway it comes back just fine.  Also in case you are wondering if I am checking against the -u /somestring I tried the ssl on just the standard site and it gives forbidden which is what I would expect since the top sits is blocked:</div>
<div><br></div><div><br></div><div><br></div><div><div><a href="http://check_http.pl">check_http.pl</a> -H <a href="http://www.example.com">www.example.com</a> -s</div><div>Status: CRITICAL HTTP/1.1 400 On Server  MESSAGE: </div>
<div>check_http -H -S <a href="http://www.example.com">www.example.com</a></div><div>HTTP WARNING: HTTP/1.1 403 Forbidden</div></div><div><br></div><div>And the page shows this:</div><div><center style="font-family:'Times New Roman';background-color:rgb(255,255,255);font-size:medium">
<h1>403 Forbidden</h1></center><hr style="font-family:'Times New Roman';background-color:rgb(255,255,255);font-size:medium"><center style="font-family:'Times New Roman';background-color:rgb(255,255,255);font-size:medium">
nginx/1.0.8</center></div><div><br></div><div>which is normal!  Any ideas on what I may be doing wrong would be of great help thanks guys.</div><div><br></div><div><br></div><div>Jason Clint</div><div><br></div>