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

how to model a "at least one" check #11

Open
dberardo opened this issue Mar 3, 2021 · 1 comment
Open

how to model a "at least one" check #11

dberardo opened this issue Mar 3, 2021 · 1 comment

Comments

@dberardo
Copy link

dberardo commented Mar 3, 2021

Hi,

the script works fine to monitor that all servers behind a backend are UP. but what if i want only to check that AT LEAST one server is UP?

HAproxy provides already this check, since the backend status is UP if at least on of the server in its group is UP, and becomes DOWN if this is not the case.

How can this perl script be adapted / configured to achieve this check?

is it also possible to whitelist / blacklist certain backends only in/from the check?

@jonathanio
Copy link
Owner

I think this would require additional logic and a configuration option, either to query the check and report 1/0 based on the overall state of the backend (and hence discard everything else), or it would need, for allowing or blocking certain hosts, additional configuration options to enable and set that list for the appropriate backend, and then have that list be queried and the Up/Down value determined based on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants