Comments (5)
You can use the 'Accepted Status Codes' option
from uptime-kuma.
Testing against an endpoint with 404/503
from uptime-kuma.
Sorry if I'm being obtuse and not understanding the configuration properly. I've just tested and I get a notification giving me an error of 200, which is what this feature request is about.
I want the status page to accept 200-299 as successful, but I don't want notifications about it being 200-299, or notifications about it not being 200-299 unless it's 503 or 404 specifically being true, but not false. If I tell the monitor I want to accept 503 and 404 as successful, I get a notification about 200. If I tell the monitor I want to accept 200-299, I do get a notification about 503 and 404, but I also get notifications about everything else, where my request is, is that I'd like to be able to get a notification sent when the test case for 404 and 503 are true, but not when they're false.
So in my configuration, I want to test against 200-299 because I want to see the history of that in the interface, but I want a notification when 503 and 404 are specifically true not when they've changed from being true to false, only false to true, so the feature isn't about choosing which status codes to accept as successful, but when a specific status code is observed, notify on that. I hope that makes sense?
from uptime-kuma.
Sorry if I'm being obtuse and not understanding the configuration properly. I've just tested and I get a notification giving me an error of 200, which is what this feature request is about.
I want the status page to accept 200-299 as successful, but I don't want notifications about it being 200-299, or notifications about it not being 200-299 unless it's 503 or 404 specifically being true, but not false. If I tell the monitor I want to accept 503 and 404 as successful, I get a notification about 200. If I tell the monitor I want to accept 200-299, I do get a notification about 503 and 404, but I also get notifications about everything else, where my request is, is that I'd like to be able to get a notification sent when the test case for 404 and 503 are true, but not when they're false.
So in my configuration, I want to test against 200-299 because I want to see the history of that in the interface, but I want a notification when 503 and 404 are specifically true not when they've changed from being true to false, only false to true, so the feature isn't about choosing which status codes to accept as successful, but when a specific status code is observed, notify on that. I hope that makes sense?
Create a group, create several items, one for the positive 200-299 and one negative for hte 404/503 as shown
Setup notification on both for when it changes from beeing good to bad
And will work as expected.
from uptime-kuma.
I see, thank you.
from uptime-kuma.
Related Issues (20)
- Ntfy notification type - button in notification does nothing HOT 1
- [SERVICES] INFO: Failed to start nscd HOT 3
- Do not send notifications for `UP` notifications HOT 3
- monitor in a group if down is reported double HOT 1
- how to add a delay alert for ping HOT 1
- Uptime-Kuma does not respond HOT 3
- Environment Variable To Change Name HOT 1
- `saveStatusPage` socket handler does not use `icon` specified in payload if not base64-encoded HOT 4
- api integration for displaying which monitors do have maintenance and give informations about it HOT 2
- Notifications for Diffrent Events HOT 1
- Can't set timezone Europe/Kyiv HOT 1
- Display Monitor Groups in Mail Subject HOT 2
- Generate Database without launching the server HOT 4
- Some commits are not present in release HOT 1
- Proxy option to notifications channel HOT 1
- Allow expanding error messages/toasts to show the full request/response HOT 1
- Add version info of app to uptime kuma HOT 1
- Cloudflare sites cause ---Timeout of 48000ms exceeded HOT 5
- Incorect message "getaddrinfo ENOTFOUND" on 4xx sites HOT 5
- Clonfigurable Toast notification timeouts to enabling autoclosing `DOWN` toasts HOT 1
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 uptime-kuma.