|
|
@ -156,24 +156,25 @@ Usage: $0 --host=<host> or --entity=<entity> |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
print("\n----------------\n"); |
|
|
|
# VERBOSE |
|
|
|
print("new_size_median : $json->{new_size_median}"); |
|
|
|
# print("\n----------------\n"); |
|
|
|
print("\n"); |
|
|
|
# print("new_size_median : $json->{new_size_median}"); |
|
|
|
print("new_size_avg : $json->{new_size_avg}"); |
|
|
|
# print("\n"); |
|
|
|
print("\n"); |
|
|
|
# print("new_size_avg : $json->{new_size_avg}"); |
|
|
|
print("new_size_q3 : $json->{new_size_q3}"); |
|
|
|
# print("\n"); |
|
|
|
print("\n"); |
|
|
|
# print("new_size_q3 : $json->{new_size_q3}"); |
|
|
|
print("new_size : $json->{new_size}"); |
|
|
|
# print("\n"); |
|
|
|
print("\n"); |
|
|
|
# print("new_size : $json->{new_size}"); |
|
|
|
print("new_size_q1 : $json->{new_size_q1}"); |
|
|
|
# print("\n"); |
|
|
|
print("\n"); |
|
|
|
# print("new_size_q1 : $json->{new_size_q1}"); |
|
|
|
print("full_size : $json->{full_size}"); |
|
|
|
# print("\n"); |
|
|
|
print("\n----------------\n"); |
|
|
|
# print("full_size : $json->{full_size}"); |
|
|
|
|
|
|
|
# print("\n----------------\n"); |
|
|
|
print("\n----------------\n"); |
|
|
|
# print("\n----------------\n"); |
|
|
|
|
|
|
|
|
|
|
|
# TOO SMALL ? |
|
|
|
# TOO SMALL ? |
|
|
|
my $toosmall = "true"; |
|
|
|
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"; |
|
|
|
$toosmall = "false"; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
@ -181,7 +182,7 @@ else { |
|
|
|
} |
|
|
|
} |
|
|
|
# TOO BIG ? |
|
|
|
# TOO BIG ? |
|
|
|
my $toobig = "true"; |
|
|
|
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"; |
|
|
|
$toobig = "false"; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
@ -195,5 +196,4 @@ if ( $toosmall == "false" && $toobig == "false" ) { |
|
|
|
else { |
|
|
|
else { |
|
|
|
print("ANOMALOUS"); |
|
|
|
print("ANOMALOUS"); |
|
|
|
} |
|
|
|
} |
|
|
|
print("\n----------------\n"); |
|
|
|
|
|
|
|
exit(0); |
|
|
|
exit(0); |
|
|
|