Monit:使用https协议在URL上搜索文本

时间:2018-02-21 18:24:19

标签: monit

出于某种原因,用于监控URL上文本存在的监控配置在过去48小时内一直在失败。以下是相关的配置数据:

if failed (url https://www.Example.com.com/where-to-buy/ and content == 'Online Retail Partners' and timeout 40 seconds)

     then alert

if failed (url https://www.Example.com.com/products/high-absorption and content == 'You May Also Like' and timeout 20 seconds)

     then alert

if failed (url https://www.Example.com.com/health-interests/bone-health and content == 'Refine' and timeout 20 seconds)

     then alert

if failed (url https://www.Example.com.com/search?keywords=vitamin+d and content == 'Vegan D3' and timeout 20 seconds)

        then alert

这几个月/年都很有效。

我们被monit警报淹没如下:

Date:        21 Feb 12:11:32 -0600
Host:        Example.com.
Service:     httpd
Action:      Alert
Description: connection succeeded to [www.Example.com]:443/health-interests/bone-health [TCP/IP TLS]

Date:        21 Feb 12:11:33 -0600
Host:        Example.com
Service:     httpd
Action:      Alert
Description: failed protocol test [HTTP] at [www.Example.com]:443/products/high-absorption [TCP/IP TLS] -- Cannot resolve [www.Example.com]:443


Your faithful employee,
M/Monit
Date:        21 Feb 12:14:00 -0600
Host:        Example.com
Service:     httpd
Action:      Alert
Description: connection succeeded to [www.Example.com]:443/products/high-absorption [TCP/IP TLS]

我不是为什么我们没有通过协议测试。

在URL中搜索文本时是否有不同的方法来设置端口443,https协议?

1 个答案:

答案 0 :(得分:0)

  

无法解析[www.Example.com]

Monit无法解析远程服务的IP。请调查主机级别的名称解析(DNS等...)