Comments (2)
Just changed config to double check:
expectation:
- type: HTTP_STATUS
status_range: 200-300
incident: MAJOR
And this is what is prints now:
cachet-url-monitor | INFO [2020-02-05 22:59:45,251] cachet_url_monitor.configuration.Configuration.example backend - Component current status: ComponentStatus.MAJOR_OUTAGE
cachet-url-monitor | INFO [2020-02-05 22:59:45,251] cachet_url_monitor.configuration.Configuration.example backend - Monitoring URL: GET https://example.com
cachet-url-monitor | INFO [2020-02-05 22:59:45,251] cachet_url_monitor.configuration.Configuration.example backend - Registered expectation: 'HTTP status range: [200, 300['
cachet-url-monitor | INFO [2020-02-05 22:59:45,251] cachet_url_monitor.scheduler - Registering action CREATE_INCIDENT
cachet-url-monitor | INFO [2020-02-05 22:59:45,251] cachet_url_monitor.scheduler - Registering action UPDATE_STATUS
cachet-url-monitor | INFO [2020-02-05 22:59:45,252] cachet_url_monitor.scheduler.Scheduler - Starting monitor agent...
...
cachet-url-monitor | INFO [2020-02-05 23:00:15,479] cachet_url_monitor.configuration.Configuration.example backend - Unexpected HTTP status (200)
cachet-url-monitor | INFO [2020-02-05 23:00:15,626] cachet_url_monitor.configuration.Configuration.example backend - Component update: status [ComponentStatus.MAJOR_OUTAGE]
cachet-url-monitor | INFO [2020-02-05 23:00:45,783] cachet_url_monitor.configuration.Configuration.example backend - Unexpected HTTP status (200)
cachet-url-monitor | INFO [2020-02-05 23:00:45,783] cachet_url_monitor.configuration.Configuration.example backend - No changes to component status.
from cachet-url-monitor.
Thanks for reporting this, @jonathon2nd. This should be fixed now. Please, feel free to re-open if you find it's still happening to you.
from cachet-url-monitor.
Related Issues (20)
- Url unreachable issue - question HOT 2
- Allowed_fails behaviour
- Add JSON body and verify option to webhook POST request
- Documentation needed?
- Component with id [1] does not exist. HOT 4
- Is there a way to customize the message set? HOT 5
- Url not reacheable and component status HOT 3
- ARM version of Docker image?
- Reset Status After Incident Resolved HOT 3
- scheduler.py issue HOT 2
- No Errorcode for wrong IP:Port
- Wrong api to push metric points HOT 1
- Allowed_fails does not work
- AttributeError: 'list' object has no attribute 'lower' HOT 1
- Failure #1 with threshold set to 0 HOT 1
- Cachet Status not updated if check fails HOT 1
- Supervising Database Status
- Sorting the endpoints based on status
- Regex doesn't match text on checked site page
- Issue with latency metric
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachet-url-monitor.