mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
124 stars 48 forks source link

Failure #1 with threshold set to 0 #129

Open lediszep opened 2 years ago

lediszep commented 2 years ago

Hi there,

I have most setup correctly except for plex is giving me this error in the logs:

INFO [2021-09-27 16:06:27,286] cachet_url_monitor.configuration.Configuration.Plex - Unexpected HTTP status (401) WARNING [2021-09-27 16:06:27,286] cachet_url_monitor.configuration.Configuration.Plex - Failure #1 with threshold set to 0

 - name: Plex
    url: http://192.168.178.17:32400
    method: GET
    header:
      SOME-HEADER: SOME-VALUE
    timeout: 10 # seconds
    expectation:
      - type: HTTP_STATUS
        status_range: 200-205
        incident: MAJOR
    allowed_fails: 0
    component_id: 2
    metric_id: 1
    action:
      - UPDATE_STATUS
    public_incidents: true
    latency_unit: ms
    frequency: 10

No sure why it's failing only for this component

Thanks, Shaun

mati1214 commented 2 years ago

Hello,

Error 401 is authorization error. Check this link: https://support.plex.tv/articles/201638786-plex-media-server-url-commands/ "In a default setup, all of your requests to the Plex Media Server must be authenticated." Proper token in parameter should help