From fec798e9e2124afa6d3d4bfff4f630de07ca607c Mon Sep 17 00:00:00 2001 From: heuzef Date: Mon, 22 Feb 2021 16:15:38 +0100 Subject: [PATCH] Deploy function for get total of backups (incr + full) --- Check.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index c118d3a..5b7d87c 100644 --- a/Check.pm +++ b/Check.pm @@ -130,7 +130,7 @@ sub action } # Get result, if we don't have enough backup (< 4) we can't calcul a realist average - if ( not $idBackup > 4) { + if ( not $nbBackups > 4) { $sizeConsistencyColor = "Gray"; $sizeConsistency = "Not enough backups"; } @@ -145,7 +145,7 @@ sub action # Show summary $str .= < - $host ($idBackup) TOTAL = $nbBackups + $host ($idBackup) $lastAge (Freq: $frequency) $lastXferErrors $ifErrors $sizeConsistency