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
Expected Behavior
I use Hard quota on my QTrees,
When quota is about to be full I need an alert,
I expect something like this: ERROR: volume_name/qtree_name - HARD Quota at 87%
Actual Behavior
The code do this:
if (used >= hard-quota) {
alert
}
This will not work due to the fact that the used space/files will never exceed the hard-quota
So the result is always: OK - No problems found (77 checked)
if ($hrefQuotaInfo->{$strQuota}->{'space-hard-limit'} ne"-") {
# Fixing bug - The test that space-used is > then space-hard-limit is wrong - spaced-used can never be bigger!my$quotaPrecentage = $hrefQuotaInfo->{$strQuota}->{'space-used'} / $hrefQuotaInfo->{$strQuota}->{'space-hard-limit'};
#if ($hrefQuotaInfo->{$strQuota}->{'space-used'} >= $hrefQuotaInfo->{$strQuota}->{'space-hard-limit'}) {if ($quotaPrecentage >= $QUOTA_HARD_LIMIT_ERROR_THRESHOLD) {
and These lines:
if ($hrefQuotaInfo->{$strQuota}->{'files-hard-limit'} ne"-") {
# Fixing bug - the test that files-used is > then files-hard-limit is wrong - files-used can never be bigger!#if ($hrefQuotaInfo->{$strQuota}->{'files-used'} >= $hrefQuotaInfo->{$strQuota}->{'files-hard-limit'}) {my$quotaPrecentage = $hrefQuotaInfo->{$strQuota}->{'files-used'} / $hrefQuotaInfo->{$strQuota}->{'files-hard-limit'};
if ($quotaPrecentage >= $QUOTA_HARD_LIMIT_ERROR_THRESHOLD) {
Result is something like this: virtual_storage_node/volume/qtree - 146.37GB/170.00GB SPACE USED
With exit code of 2.
This should resolve the issue (but still missing the ability to set CRITICAL or ERROR thresholds)
The text was updated successfully, but these errors were encountered:
Broken Feature - Quota Hard Limit
Bug report
Issue Detail
Expected Behavior
I use Hard quota on my QTrees,
When quota is about to be full I need an alert,
I expect something like this:
ERROR: volume_name/qtree_name - HARD Quota at 87%
Actual Behavior
The code do this:
This will not work due to the fact that the used space/files will never exceed the hard-quota
So the result is always:
OK - No problems found (77 checked)
Suggested Solution
I've done the following:
virtual_storage_node/volume/qtree - 146.37GB/170.00GB SPACE USED
With exit code of 2.
This should resolve the issue (but still missing the ability to set CRITICAL or ERROR thresholds)
The text was updated successfully, but these errors were encountered: