Shouldn't the following command return an HTTPS/SSL status code?
$ check_http --ssl google.de
HTTP OK: HTTP/1.0 302 Found - 984 bytes in 0,099 second response time |time=0,099305s;;;0,000000 size=984B;;;0
It's a simple example, but I can fairly reproduce the malfunction for websites that only respond to HTTPS and have a 302 Redirect. They would be returning the following although they should access on port 443 instead of 80:
HTTP OK: HTTP/1.1 302 Moved Temporarily - 585 bytes in 0,079 second response time |time=0,078830s;;;0,000000 size=585B;;;0
My version information:
$ check_http -V
check_http v1.4.16 (nagios-plugins 1.4.16)
OpenSSL version 1.0.0-25.el6_3.1, latest version from CentOS updates repository
running on CentOS 6 x86_64
Best Answer
Try running it like this (remove
-vvv
for regular usage):Where
hostname
is what is in theHost:
HTTP Header andIP-Address
is the IP-Address whereon apache is listening on port 443.