nagios check produces below eror some of web sites (not all) for example google. what others parameters is necessary to work it?
$ check_http -w 5 -c 10 --ssl -H www.google.com -v
CRITICAL - Cannot make SSL connection
140484382566048:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:749:
GET / HTTP/1.1
User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)
Connection: close
Host: www.google.com
HTTP CRITICAL - Error on receive
Best Answer
The
-H
option tocheck_http
and ssl based virtual hosts don't interact well. Try using-I
rather than-H
. ( You can use a dns name with the-I
option. )