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

[Feature Request] check output from command #227

Open
antedebaas opened this issue Sep 22, 2024 · 0 comments
Open

[Feature Request] check output from command #227

antedebaas opened this issue Sep 22, 2024 · 0 comments

Comments

@antedebaas
Copy link

I'd love a action type where i can just call a command and check if a value matches a certain output.
there are 2 use cases i would like to implement:

  1. check logged in users count (eg. get a number and see if its greater than 0 in this case)
  2. check if the command output contains a certain phrase

the first one is a count difference check, maybe a max_good and min_good value would be generic enough to make it into a check.
anything outside that range could be considered bad.

in the second one i would love a sub-string or regex matching so i just have to check if a certain content is present in the output and if not result in a bad state.

both could make use of the invert flag on the alarms inverting the good and bad states making it more usable.
let me know what you think about this.

@antedebaas antedebaas changed the title check output from command [Feature Request] check output from command Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant