I am getting "request timed out" message even though the URL works fine when accessed directly. Even if I up the threshold to 15 seconds (much longer than the page response time) it still fails. Also the log (below) says "Failure #1 with threshold set to 0" even with the threshold set to 15 seconds.
Any advice?
INFO [2018-05-22 13:05:58,896] cachet_url_monitor.configuration.Configuration - Current configuration:
cachet:
action:
- CREATE_INCIDENT
- UPDATE_STATUS
api_url: https://status.workinconfidence.com/api/v1
component_id: 1
metric_id: 1
public_incidents: true
endpoint:
allowed_fails: 0
expectation:
- status_range: 200-300
type: HTTP_STATUS
- threshold: 15
type: LATENCY
- regex: .*(<body).*
type: REGEX
method: GET
timeout: 0.01
url: https://secure.speakinconfidence.com/company/en
frequency: 30
latency_unit: ms
INFO [2018-05-22 13:05:59,243] cachet_url_monitor.configuration.Configuration - Monitoring URL: GET https://secure.speakinconfidence.com/company/en
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.configuration.Configuration - Registered expectation: 'HTTP status range: (200, 300)'
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.configuration.Configuration - Registered expectation: 'Latency threshold: 15.0000 seconds'
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.configuration.Configuration - Registered expectation: 'Regex: .*(<body).*'
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.scheduler.Scheduler - Registering action CREATE_INCIDENT
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.scheduler.Scheduler - Registering action UPDATE_STATUS
INFO [2018-05-22 13:05:59,244] cachet_url_monitor.scheduler.Scheduler - Starting monitor agent...
WARNING [2018-05-22 13:06:29,421] cachet_url_monitor.configuration.Configuration - Request timed out
INFO [2018-05-22 13:06:29,421] cachet_url_monitor.configuration.Configuration - Failure #1 with threshold set to 0
INFO [2018-05-22 13:06:29,601] cachet_url_monitor.configuration.Configuration - Incident uploaded, API unhealthy: component status [2], message: "Request timed out"
Hi
I am getting "request timed out" message even though the URL works fine when accessed directly. Even if I up the threshold to 15 seconds (much longer than the page response time) it still fails. Also the log (below) says "Failure #1 with threshold set to 0" even with the threshold set to 15 seconds.
Any advice?
This is the relevant bit from the config file: