HTTPS check
Posted: Wed May 14, 2014 3:32 pm
So since the upgrade to 2014 I've had an issue with 2 http checks.
Basically I have 2 services I'm doing a check_http on
$USER1$/check_http -t 60 -H $HOSTADDRESS$ $ARG1$
$ARG1$ -s "UA-1457754-9" -f ok -I 10.1.2.210 -u "/" -p 80
and
-s "UA-1457754-9" -f ok -I 10.1.2.224 -u "/" -p 80
this check results in this:
The issue is we just switched these over to https only, but for some reason before the update it was still working.
Now, I can add the -S option, but it still does not work because I'm checking local IP addresses for the services and not the external domain name.
this results in:
Is there any way I can get this to work using local IP addresses and not the FQDN on the SSL cert?
Thanks.
Basically I have 2 services I'm doing a check_http on
$USER1$/check_http -t 60 -H $HOSTADDRESS$ $ARG1$
$ARG1$ -s "UA-1457754-9" -f ok -I 10.1.2.210 -u "/" -p 80
and
-s "UA-1457754-9" -f ok -I 10.1.2.224 -u "/" -p 80
this check results in this:
Code: Select all
HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string 'UA-1457754-9' not found on 'http://10.1.2.100:80/' - 303 bytes in 0.006 second response timeNow, I can add the -S option, but it still does not work because I'm checking local IP addresses for the services and not the external domain name.
this results in:
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_http -t 60 -H 10.1.2.224 -s "UA-1457754-9" -f ok -I 10.1.2.224 -S -u "/" -p 80
OUTPUT: CRITICAL - Cannot make SSL connection.Thanks.