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

Min-Warn operator #278

Open
lippserd opened this issue May 11, 2020 · 3 comments
Open

Min-Warn operator #278

lippserd opened this issue May 11, 2020 · 3 comments
Labels
enhancement New feature or improvement queue/wishlist Probable candidate for a future release

Comments

@lippserd
Copy link
Member

Users may operate redundancy systems. If system A fails, system B takes over. In the event of an error, however, the overall status of both systems should be displayed as a warning, since a redundancy system is still running. If both systems are no longer there, it must be shown as critical. This is only possible to a very limited extent in the business process, since the best or worst available state is signaled. However, the status warning would be expected for ok and one or more warning/criticals.

I would have the following suggestion to switch business processes to warning status. We are implementing a new operator Min-Warn which is an extension of the Min operator.
Just a quick reminder of how the min operator works:

n of: a + b + c

The worst status from the best n states is used, e.g.

2 of: OK + OK + OK = OK
2 of: OK + OK + WARN = OK
2 of: OK + OK + CRIT = OK
2 of: OK + WARN + WARN = WARN
2 of: OK + WARN + CRIT = WARN
2 of OK + CRIT + CRIT = CRIT

Min operator (states, n): = worst state off (
  Best states from (states, n)
)

The extension looks like this:

n: m of: a + b + c

To put it simply, it specifies how many m states must be in Warning or Critical in order to switch the process to Warning status.

2: 1 of: OK + OK + OK = OK
2: 1 of: OK + OK + WARN = WARN
2: 1 of: OK + OK + CRIT = WARN
2: 1 of: OK + WARN + WARN = WARN
2: 1 of: OK + WARN + CRIT = WARN
2: 1 of OK + CRIT + CRIT = CRIT

Min warning operator (states, n, m): = worst state off (
  Min operator (states, n),
  Min operator (critical to warning (states), m)
)

@wp-perc
Copy link

wp-perc commented Feb 4, 2021

Good! Several of my customers have a kind of scenario where this behavior can be applied.
+1 push

@giudig
Copy link

giudig commented Feb 4, 2021

+1 Our customers needs this feature!

@gallowsky
Copy link

+1 we really need this feature

@nilmerg nilmerg added enhancement New feature or improvement queue/wishlist Probable candidate for a future release labels Jul 20, 2022
@nilmerg nilmerg removed the queue/wishlist Probable candidate for a future release label Jul 25, 2023
@nilmerg nilmerg added this to the 2.5.0 milestone Jul 25, 2023
@nilmerg nilmerg removed this from the 2.5.0 milestone Aug 4, 2023
@nilmerg nilmerg added the queue/wishlist Probable candidate for a future release label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement queue/wishlist Probable candidate for a future release
Projects
None yet
Development

No branches or pull requests

6 participants