diff --git a/check_size_consistency.pl b/check_size_consistency.pl index 2f33e26..fa8d82c 100644 --- a/check_size_consistency.pl +++ b/check_size_consistency.pl @@ -156,24 +156,25 @@ Usage: $0 --host= or --entity= EOF } -print("\n----------------\n"); -print("new_size_median : $json->{new_size_median}"); -print("\n"); -print("new_size_avg : $json->{new_size_avg}"); -print("\n"); -print("new_size_q3 : $json->{new_size_q3}"); -print("\n"); -print("new_size : $json->{new_size}"); -print("\n"); -print("new_size_q1 : $json->{new_size_q1}"); -print("\n"); -print("full_size : $json->{full_size}"); -print("\n----------------\n"); - -print("\n----------------\n"); +# VERBOSE +# print("\n----------------\n"); +# print("new_size_median : $json->{new_size_median}"); +# print("\n"); +# print("new_size_avg : $json->{new_size_avg}"); +# print("\n"); +# print("new_size_q3 : $json->{new_size_q3}"); +# print("\n"); +# print("new_size : $json->{new_size}"); +# print("\n"); +# print("new_size_q1 : $json->{new_size_q1}"); +# print("\n"); +# print("full_size : $json->{full_size}"); +# print("\n----------------\n"); +# print("\n----------------\n"); + # TOO SMALL ? my $toosmall = "true"; -if ( 1 > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} > $json->{new_size_avg} * 6 ) { +if ( $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} > $json->{new_size_avg} * 6 ) { $toosmall = "false"; } else { @@ -181,7 +182,7 @@ else { } # TOO BIG ? my $toobig = "true"; -if ( 99999999999999 < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} < $json->{new_size_avg} / 3 ) { +if ( $json->{new_size} < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} < $json->{new_size_avg} / 3 ) { $toobig = "false"; } else { @@ -195,5 +196,4 @@ if ( $toosmall == "false" && $toobig == "false" ) { else { print("ANOMALOUS"); } -print("\n----------------\n"); exit(0);