From 546864bc7d2d452803baafcb5d30438924e1d223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 8 Aug 2020 15:57:53 +0200 Subject: Add other backup profiles to ovh backend --- modules/private/monitoring/plugins/check_backup_age | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/private/monitoring') diff --git a/modules/private/monitoring/plugins/check_backup_age b/modules/private/monitoring/plugins/check_backup_age index 4d03b82..d873bdc 100755 --- a/modules/private/monitoring/plugins/check_backup_age +++ b/modules/private/monitoring/plugins/check_backup_age @@ -17,8 +17,8 @@ output=$(duplicity collection-status --log-fd 2 "$BASE_URL$folder" 2>&1 > /dev/n output=$(echo "$output" | grep -v "^\.") -last_full=$(parse_date $(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)) -last_bkp=$(parse_date $(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)) +last_full=$(parse_date "$(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)") +last_bkp=$(parse_date "$(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)") orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) -- cgit v1.2.3