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

Cachet Status not updated if check fails #130

Open
schroedt opened this issue Oct 23, 2021 · 2 comments
Open

Cachet Status not updated if check fails #130

schroedt opened this issue Oct 23, 2021 · 2 comments

Comments

@schroedt
Copy link

schroedt commented Oct 23, 2021

Hi there,

I noticed my cachet status not being updates, when check fails. When creating new items and setting them to "unhealthy", they are automatically shifted to "healthy" (I guess by cachet-monitor). Afterwards it notes unhealthy states, but does not update the status at cachet:

     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Unexpected HTTP status (404)
  WARNING [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Failure #1 with threshold set to 3
     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - No changes to component status.

     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Unexpected HTTP status (404)
  WARNING [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Failure #2with threshold set to 3
     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - No changes to component status.

     INFO [2021-10-23 19:45:18,026] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Unexpected HTTP status (404)
  WARNING [2021-10-23 19:45:18,050] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Failure #3 with threshold set to 3
     INFO [2021-10-23 19:45:18,050] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - No changes to component status.

     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Unexpected HTTP status (404)
  WARNING [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - Failure #4 with threshold set to 3
     INFO [2021-10-23 19:49:57,357] cachet_url_monitor.configuration.Configuration.wordpress-docker-service - No changes to component status.

Cachet Monitor is configured as illustrated below:

    endpoints:
      - name: wordpress-docker-service
        url: https://www.my-wordpress-example.de/
        method: GET
        timeout: 2 # seconds
        expectation:
          - type: HTTP_STATUS
            status_range: 200-300
            incident: MAJOR
        allowed_fails: 3
        component_id: 29
        action:
          - UPDATE_STATUS
        public_incidents: true
        latency_unit: ms
        frequency: 30
    cachet:
      api_url: https://status.example.de/api/v1
      token:
        - type: TOKEN
          value: ***
    messages:
      incident_outage: "{name} is unavailable"
      incident_operational: "{name} is operational"
      incident_performance: "{name} has degraded performance"

Do I check incorrectly or do something wrong?
I am using cachet:latest and cachet-monitor:latest.

BTW: Is there any setting for logging WARNING, only? These Info notifications are nice, but flooding.

@osancus
Copy link

osancus commented Jul 16, 2024

@schroedt its old, not sure if you remember about it; but did you find any solution?

@sebfie
Copy link

sebfie commented Dec 20, 2024

I am also facing this issue

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