mtakaki / cachet-url-monitor

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

Error al actualizar un incidente #108

Open steel2k2 opened 4 years ago

steel2k2 commented 4 years ago

Me sale el error siguiente:

================================================================================== WARNING [2020-07-19 20:15:46,620] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:46,620] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status. WARNING [2020-07-19 20:15:50,193] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:50,193] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status. WARNING [2020-07-19 20:15:53,855] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:53,855] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status.

La configuracion del yaml es la siguiente:

mtakaki commented 4 years ago

Es que puedes escribir tu configuracion en un code block? Creo que el problema es en tu component_id, quizas tienes un otro id? Also, can we switch to English for the sake of keeping it helpful for other folks?

steel2k2 commented 4 years ago

mtakaki, esta es la configuración

endpoints:
  - name: swagger
    url: https://prairial.run.goorm.io/
    method: GET
    header:
      SOME-HEADER: SOME-VALUE
    timeout: 2.01
    expectation:
      - type: HTTP_STATUS
        status_range: 200-300
        incident: MAJOR
      - type: LATENCY
        threshold: 4
      - type: REGEX
        regex: '.*(<body).*'
    allowed_fails: 1
    frequency: 3
    component_id: 1
    metric_id: 1
    action:
      - CREATE_INCIDENT
      - UPDATE_STATUS
      - PUSH_METRICS
    public_incidents: true
    latency_unit: ms
cachet:
  api_url: http://192.168.0.20/api/v1
  token:
    - type: ENVIRONMENT_VARIABLE
      value: CACHET_TOKEN
    - type: TOKEN
      value: Hl5ibgnXVuGPB4sNPwQ0
mtakaki commented 3 years ago

Can you confirm if the component id exists?

NiTRoeSE commented 3 years ago

Hi, i have the same problem, url-monitor changes the state of incident fine from "Healthy" to " Error", but the change back from "Error" to "Healthy" doesnt work, i get excactly the same error message like in initial post.

Running Cachet-Url-Monitor and Cachet 2.3.15 in docker. I can confirm that my "component_id`s" exists. Any chance to get this running ?

Thanks in advanced