aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-08-08 15:57:53 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-08-08 15:57:53 +0200
commit546864bc7d2d452803baafcb5d30438924e1d223 (patch)
tree60bdfa1be249c383a697ecd00567f8dc4f0deb38 /modules/private/monitoring
parentf831eb7e4b04fe788883c5f630c70020895ce7fe (diff)
downloadNix-546864bc7d2d452803baafcb5d30438924e1d223.tar.gz
Nix-546864bc7d2d452803baafcb5d30438924e1d223.tar.zst
Nix-546864bc7d2d452803baafcb5d30438924e1d223.zip
Add other backup profiles to ovh backend
Diffstat (limited to 'modules/private/monitoring')
-rwxr-xr-xmodules/private/monitoring/plugins/check_backup_age4
1 files changed, 2 insertions, 2 deletions
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
17 17
18output=$(echo "$output" | grep -v "^\.") 18output=$(echo "$output" | grep -v "^\.")
19 19
20last_full=$(parse_date $(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)) 20last_full=$(parse_date "$(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)")
21last_bkp=$(parse_date $(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)) 21last_bkp=$(parse_date "$(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)")
22orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) 22orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2)
23incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) 23incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2)
24 24