diff options
Diffstat (limited to 'modules/profile/files/monitoring/check_last_file_date')
-rw-r--r-- | modules/profile/files/monitoring/check_last_file_date | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/files/monitoring/check_last_file_date b/modules/profile/files/monitoring/check_last_file_date index 8eabb57..d520a84 100644 --- a/modules/profile/files/monitoring/check_last_file_date +++ b/modules/profile/files/monitoring/check_last_file_date | |||
@@ -22,10 +22,10 @@ else | |||
22 | LC_ALL=C last_date=$(printf "%.*f" 0 $last_date) | 22 | LC_ALL=C last_date=$(printf "%.*f" 0 $last_date) |
23 | min_date=$(date -d "$hours hours ago" "+%s") | 23 | min_date=$(date -d "$hours hours ago" "+%s") |
24 | if [ "$min_date" -lt "$last_date" ]; then | 24 | if [ "$min_date" -lt "$last_date" ]; then |
25 | echo "OK: Last backup $(date -d @$last_date)" | 25 | echo "OK: Last file $(date -d @$last_date)" |
26 | exit $STATE_OK | 26 | exit $STATE_OK |
27 | else | 27 | else |
28 | echo "CRITICAL: Last backup $(date -d @$last_date)" | 28 | echo "CRITICAL: Last file $(date -d @$last_date)" |
29 | exit $STATE_CRITICAL | 29 | exit $STATE_CRITICAL |
30 | fi | 30 | fi |
31 | fi | 31 | fi |