Quota thresholds
Posted: Mon Aug 31, 2020 12:00 pm
Hi Team,
We are using a power shell script to monitor the quota of windows drives.
When the thresholds are given as warning 10 and critical 5 the alert comes up as critical.
However, when thresholds are given as warning 20 and critical 10 the alert comes up as warning.
Can you please suggest what needs to be modified so that we get the correct output?
PS C:\scripts> .\check_quota.ps1 -Path "F:\Shared Folders\Actuarial" -Warn 10 -Crit 5
CRITICAL: 1,298.95 GB of 1,331.20 GB used, 97.58% used.|usage=1394739931136B;10;5;0; limit=1429365116108B;;;;
PS C:\scripts> .\check_quota.ps1 -Path "F:\Shared Folders\Actuarial" -Warn 20 -Crit 10
WARNING: 1,298.95 GB of 1,331.20 GB used, 97.58% used.|usage=1394739931136B;20;10;0; limit=1429365116108B;;;;
We are using a power shell script to monitor the quota of windows drives.
When the thresholds are given as warning 10 and critical 5 the alert comes up as critical.
However, when thresholds are given as warning 20 and critical 10 the alert comes up as warning.
Can you please suggest what needs to be modified so that we get the correct output?
PS C:\scripts> .\check_quota.ps1 -Path "F:\Shared Folders\Actuarial" -Warn 10 -Crit 5
CRITICAL: 1,298.95 GB of 1,331.20 GB used, 97.58% used.|usage=1394739931136B;10;5;0; limit=1429365116108B;;;;
PS C:\scripts> .\check_quota.ps1 -Path "F:\Shared Folders\Actuarial" -Warn 20 -Crit 10
WARNING: 1,298.95 GB of 1,331.20 GB used, 97.58% used.|usage=1394739931136B;20;10;0; limit=1429365116108B;;;;