On 08/29/2014 09:32 AM, Frank Bulk wrote: > But there is! Try with a typical webbrowser or wget! > > root@nagios:/tmp# wget -6 www.timewarnercable.com > --2014-08-29 08:31:57-- http://www.timewarnercable.com/ > Resolving www.timewarnercable.com... 2001:1998:840:b001::7 > Connecting to www.timewarnercable.com|2001:1998:840:b001::7|:80... > connected. > HTTP request sent, awaiting response... 301 Moved Permanently ---------------------------------------------------^^^^^^^^^^^^^^^ > Location: http://www.timewarnercable.com/en/residential.html > [following] > --2014-08-29 08:31:57-- > http://www.timewarnercable.com/en/residential.html > Reusing existing connection to www.timewarnercable.com:80. > HTTP request sent, awaiting response... 200 OK > Length: 101218 (99K) [text/html] > Saving to: âindex.htmlâ >
I think you may have answered your own question. it would seem to me that check_http only considers http response codes in the 200 range to be successful and valid, whereas a redirect to a different server isn't thought to be a successful test/connection. I'd have to play with some web servers to confirm that notion