diff options
Diffstat (limited to 'modules/private/monitoring')
-rwxr-xr-x | modules/private/monitoring/plugins/check_backup_age | 4 |
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 | ||
18 | output=$(echo "$output" | grep -v "^\.") | 18 | output=$(echo "$output" | grep -v "^\.") |
19 | 19 | ||
20 | last_full=$(parse_date $(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)) | 20 | last_full=$(parse_date "$(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)") |
21 | last_bkp=$(parse_date $(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)) | 21 | last_bkp=$(parse_date "$(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)") |
22 | orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) | 22 | orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) |
23 | incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) | 23 | incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) |
24 | 24 | ||