louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
59.53k stars 5.32k forks source link

Filter which event (`UP`/`DOWN`/`CERT-EXPIRY`/...) triggers alerts #508

Open fatflyingpigs opened 3 years ago

fatflyingpigs commented 3 years ago

Is it a duplicate question? Nope

Is your feature request related to a problem? Please describe. Currently the notifications send on both service up and service down - but not only up, or only down.

Describe the solution you'd like It would be nice if we could specify we only wanted the notification to send when the service went down (or when it comes back online) (or both).

Describe alternatives you've considered -NA-

Additional context I'm using this program to monitor (among other things) a minecraft server, and notify the server owner when his server is down. He's mentioned it's a bit annoying to get the 'server up' notification since he's literally the person who restarted the server.

BloodBlight commented 3 years ago

You could use a webhook to node-red (or something else) to do this kind of logic.

michalterbert commented 3 years ago

You could use a webhook to node-red (or something else) to do this kind of logic.

Yes, we can. But better will be implement mentioned function to uptime-kuma.

Genc commented 10 months ago

This is no longer necessary. Can we close issue? @louislam

CommanderStorm commented 10 months ago

This is no longer necessary. Can we close issue?

Why is this no longer necessary? @Genc

Genc commented 10 months ago

This is no longer necessary. Can we close issue?

Why is this no longer necessary? @Genc

I thought the "upside down mode" feature met this request. @CommanderStorm image

CommanderStorm commented 10 months ago

No, this FR is speciically to filter which event (UP/DOWN/CERT-EXPIRY/...) triggers alerts. Upside-down mode does not allow filtering => issue won't be closed ^^

OneNerdyDad commented 8 months ago

I would love to see this a possibility for webhooks. I have a few Alexa routines I can trigger via webhook but would need the ability to send a webhook based on up or down status vs trying to filter through another service first to filter that out.

Even if we could have a custom section for creating a trigger mechanism ourselves to tie in globally would be great. E.g. a custom_trigger.js where we can say if status is up do x, if down do y.