【问题标题】:How to check a URL with valid HTTPS certificate in monit?如何在监视器中检查具有有效 HTTPS 证书的 URL?
【发布时间】:2015-07-10 06:30:39
【问题描述】:

我有以下配置——

check host qbox_logstash_1
  with address blah.mysite.com
  group qbox
  if failed
    host blah.mysite.com
    port 443
    type TCPSSL
    protocol https
    http headers [ Authorization: Basic dXJiYW5sYWiYW5sBlaHToHideThisAuthMjM= ]
  then alert

它只是连接,从不检查域是否有错误的证书。为什么monit不检查证书?

【问题讨论】:

标签: ssl ssl-certificate monit


【解决方案1】:

您需要包含certificate valid 指令:

if failed
  ...
  certificate valid > 10 days
then alert

在此处查看文档:https://mmonit.com/monit/documentation/monit.html#CONNECTION-TESTING

【讨论】:

    猜你喜欢
    • 2020-06-21
    • 2017-12-10
    • 1970-01-01
    • 2019-07-02
    • 1970-01-01
    • 2020-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多