Monit: поиск текста по URL-адресу с протоколом https

По какой-то причине конфигурация 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]

Я не понимаю, почему мы проваливаем тесты протокола.

Есть ли другой способ установить порт 443, протокол https при поиске текста в URL-адресе?


person Creative Arc    schedule 21.02.2018    source источник


Ответы (1)


Не удается разрешить [www.Example.com]

Monit не может разрешить IP-адрес удаленной службы. Пожалуйста, проверьте разрешение имен на уровне хоста (DNS и т. д.)

person TheCodeKiller    schedule 22.03.2018