我有以下配置 -
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 不检查证书?
最佳答案
您需要包含 certificate valid
指令:
if failed
...
certificate valid > 10 days
then alert
请参阅此处的文档:https://mmonit.com/monit/documentation/monit.html#CONNECTION-TESTING
关于ssl - 如何在 monit 中检查具有有效 HTTPS 证书的 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31333950/