2019年11月5日 星期二

Icinga2 http check failure

莫名奇妙搞了很久的設定

object Host Dev {
import "generic-host"
address = "dev.examplexxx.com"
vars.http_vhosts["http"] = {
+ http_vhost = "dev.examplexxx.com"
http_verbose = true
http_port = 443
http_uri = "/login"
http_sni = true
http_ssl_force_tlsv1_2_or_higher = true
}
- check_command = "hostalive"
+ check_command = "hostalive4"
}
  1. 可能是我 server 有經過 cloudfront 的關係
    不加 http_vhost 會出問題
    Error message
CRITICAL - Cannot make SSL connection.
23112094376384:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../ssl/record/rec_layer_s3.c:1528:SSL alert number 40
SSL initialized
  1. 沒有 ipv6 要改用 hostalive4
    Error message
CRITICAL - Network Unreachable (dev.examplexxx.com)