Repository: louislam/uptime-kuma

Issue #3387: [groups] Boolean OR operand to get notification for total failure of redundant systems
Created: 2023-07-08T16:50:03Z
⚠️ Please verify that this feature request has NOT been suggested before.

 I checked and didn't find similar feature request

🏷️ Feature Request Type
New Monitor
🔖 Feature description
This feature would allow notification of total failure of redundant systems.
Many networking protocols (eg. NTP, DNS, RADIUS, TACACS+, SNMP, etc...) allow for use of multiple redundant server IP addresses with a goal of offering resiliency.  A use case for this new feature would be to Group monitor all redundant IP addresses for a given protocol or system, and be notified in case of simultaneous failure of all redundant servers in that Group.
For example, a Primary NTP server IP address and a Secondary NTP server IP address could be added to a Group, which notifies Down only while both the primary and secondary IPs are simultaneously down to inform that NTP service is totally down.
Currently in version 1.22.1 the Group functionality monitors Group members using the AND operand, meaning if Group members (a) AND (b) AND (c) are up, the Group reports as UP.  If one of the redundant IPs are down, the Group undesirably reports as down, even thought the service overall still works because of the redundant IPs that are still up...
This feature request is to allow Groups to be monitored using the OR operand, meaning if Group members (a) OR (b) OR (c) are up, the Group reports as UP.  If Uptime-Kuma followed the OR operand rather than the AND operand while group monitoring, it would enable notifications for total failure of redundant systems.
Initially I raised this as a configuration help question, and it was suggested to add as a feature request #3382
Many thanks for this awesome software.  If any questions, or ideas please ask.
✔️ Solution
An implementation idea that maybe would be easy? is to split the single "Group" option here:

into 2 options: "Group (using Boolean AND)" and "Group (using Boolean OR)".
"Group (using Boolean AND)" would match the current functionality which appears to follow the AND operator.
"Group (using Boolean OR)" would match the desired functionality of using the OR operator.
Again, many thanks for your help, and I really appreciate this cool software.
❓ Alternatives
To my knowledge, work-arounds to achieve this do not exist.
📝 Additional Context
If any questions, please ask.  I really appreciate this software.

Duplicate issue #4779: Send ONE alert when many or all fail. or set one alert if many or all fail
Created: 2024-05-22T00:35:32Z
📑 I have found these related issues/pull requests
this part is good
🏷️ Feature Request Type
Settings
🔖 Feature description
Example, I have hundreds of monitors. Most are set to send an SMS / Text on failure to multiple people. So, if say the internet goes down, most all the monitors will fail and want to send SMS alerts to 10 or more people. So, 2800 monitors out of 3230 end up sending SMS alerts to 10 people. So that is 28,000 SMS messages being sent at a cost of 2cents ea. It's not just the cost, its the " Cry wolf" issue I want to avoid. If someone gets 2800 SMS alerts all at once, they'll ignore or " its just crying wolf"
✔️ Solution
The ability to set a limit on notifications or a way to "group" monitors so that if XX fail at same time to only send ONE notification.
And check internet ( maybe ping a public ), if the internet is down, only monitors with " internet " enabled will send notifications. So, if 2800 monitors all fail AND internet connection is also = FAIL, then those notifications will be sent as one alert or none.
Or maybe you all already have a solution on the way?
❓ Alternatives
No response
📝 Additional Context
Basically, when XX or more monitors of a specific group fail within XX seconds of each-other, set to only one notification.  ( XX = a user defined )

Closing comment (2024-05-22T09:08:35Z): " Cry wolf" issue

Does not localise well. What do you mean here?

Send alert if ANY fail

Please use a group and only notify if the group goes down.

Send alert if MANY/ALL fail

Tracked in #3387 and related issues
Requires #4395 to be merged first