Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error al actualizar un incidente #108

Open
steel2k2 opened this issue Jul 20, 2020 · 4 comments
Open

Error al actualizar un incidente #108

steel2k2 opened this issue Jul 20, 2020 · 4 comments
Assignees

Comments

@steel2k2
Copy link

steel2k2 commented Jul 20, 2020

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:

  • name: Gorm,io
    url: https://testurl
    method: GET
    header:
    SOME-HEADER: SOME-VALUE
    timeout: 2 # seconds
    expectation:
    • type: HTTP_STATUS
      status_range: 200-205
    • type: LATENCY
      threshold: 2
    • type: REGEX
      regex: ".."
      allowed_fails: 0
      component_id: 1
      metric_id: 1
      action:
    • CREATE_INCIDENT
    • UPDATE_STATUS
      public_incidents: true
      latency_unit: ms
      frequency: 2
      cachet:
      api_url: http://cachetserver/api/v1
      token:
    • type: ENVIRONMENT_VARIABLE
      value: CACHET_TOKEN
    • type: TOKEN
      value: Hl5ibgnXVuGPB42NPwQ0
@mtakaki mtakaki self-assigned this Jul 20, 2020
@mtakaki
Copy link
Owner

mtakaki commented Jul 20, 2020

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
Copy link
Author

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
Copy link
Owner

mtakaki commented Nov 26, 2020

Can you confirm if the component id exists?

@NiTRoeSE
Copy link

NiTRoeSE commented Jan 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants