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

Implement threshold ranges #101

Open
MarcusCaepio opened this issue Oct 26, 2020 · 2 comments
Open

Implement threshold ranges #101

MarcusCaepio opened this issue Oct 26, 2020 · 2 comments
Assignees
Labels
area/check/device enhancement New feature or request needs-feedback Needs further information
Milestone

Comments

@MarcusCaepio
Copy link

Hi,
I noticed, that thresholds are not supported in the uptime checks. Imho, I should be able to get an alert, when -c < -w < value.
E.g. critical when uptime < 10m ; warning when uptime < 15m

Cheers,
Marcus

@mcktr mcktr self-assigned this Oct 26, 2020
@mcktr mcktr added this to the 1.3.0 milestone Oct 26, 2020
@mcktr mcktr added area/check/device enhancement New feature or request labels Oct 26, 2020
@mcktr
Copy link
Owner

mcktr commented Oct 26, 2020

Hi,

thanks for the feature request, this is a good idea for an enhancement. 👍

Are you sure about the comparison "direction" i.e. warning/critical when value is bigger? Shouldn't it be the other way around, so someone gets notified when the box restarts unexpectedly?

Best regards
Michael

@mcktr mcktr added the needs-feedback Needs further information label Oct 26, 2020
@MarcusCaepio
Copy link
Author

Indeed, you are right ^^ But on the other side, using ranges would make sense, too. Using ranges like defined in https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT, a given tresh like X:Y could check if the uptime is < X (suddenly reboot) and uptime > Y (running for a long time without reboot)

@mcktr mcktr changed the title uptime checks should work with thresholds Implement threshold ranges Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/check/device enhancement New feature or request needs-feedback Needs further information
Projects
None yet
Development

No branches or pull requests

2 participants