Revert "let monitor-health check the capacity too"

This reverts commit 1f64c9c35a.
This commit is contained in:
Christoph Klaffl 2018-02-27 17:53:32 +01:00
parent 6f29bed441
commit 01398789f6
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 0 additions and 11 deletions

11
sanoid
View File

@ -798,17 +798,6 @@ sub check_zpool() {
## determine health of zpool and subsequent error status
if ($health eq "ONLINE" ) {
$state = "OK";
# check capacity
my $capn = $cap;
$capn =~ s/\D//g;
if ($capn >= 80) {
$state = "WARNING";
}
if ($capn >= 95) {
$state = "CRITICAL";
}
} else {
if ($health eq "DEGRADED") {
$state = "WARNING";