You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When free memory passes critical threshold, status and output should change to CRITICAL.
Current Behavior
If a warning threshold is given, the check never changes to a crtitical status.
Possible Solution
As far as I understand the code in master, one should check for critical threshold first. At the moment, warning threshold is checked first and if the condition is met, the check for critical threshold is never reached. The same conditions are used in check_swap, so it is affected too, probably.
Steps to Reproduce (for bugs)
Set a warning threshold that is above free memory to get a critical status:
Expected Behavior
When free memory passes critical threshold, status and output should change to CRITICAL.
Current Behavior
If a warning threshold is given, the check never changes to a crtitical status.
Possible Solution
As far as I understand the code in master, one should check for critical threshold first. At the moment, warning threshold is checked first and if the condition is met, the check for critical threshold is never reached. The same conditions are used in check_swap, so it is affected too, probably.
Steps to Reproduce (for bugs)
Status changes from critical to warning instead of staying critical.
The text was updated successfully, but these errors were encountered: