From 5e6bc435716a00b2e164f413952ce9eb4237a4b5 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 27 Sep 2019 15:08:35 +0200 Subject: [PATCH] Add color for size consistency --- Check.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Check.pm b/Check.pm index e65a954..3d50ffc 100644 --- a/Check.pm +++ b/Check.pm @@ -211,9 +211,11 @@ my $sizeConsistency = "ANOMALOUS"; # Get result if ( $toobig or $toosmall ) { $sizeConsistency = "ANOMALOUS"; + $sizeConsistencyColor = "Tomato"; } else { $sizeConsistency = "Normal"; + $sizeConsistencyColor = "MediumSeaGreen"; } # Show summary @@ -221,7 +223,7 @@ else { ${HostLink($host)} $lastAge $lastXferErrors - $sizeConsistency + $sizeConsistency random-file.txt EOF