X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPuppet.git;a=blobdiff_plain;f=modules%2Fprofile%2Ffiles%2Fmonitoring%2Fcheck_last_file_date;h=d520a84c75e9bf8c50dd6e212dc5ff788e7d2568;hp=8eabb57455175d6e99493a5fa1aef9755d9ed5a8;hb=96f8d0f037f8b8e93315e864bdaf661f45e3c472;hpb=21d531ee2e4a5952673d694342ff01822581a1f8 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 LC_ALL=C last_date=$(printf "%.*f" 0 $last_date) min_date=$(date -d "$hours hours ago" "+%s") if [ "$min_date" -lt "$last_date" ]; then - echo "OK: Last backup $(date -d @$last_date)" + echo "OK: Last file $(date -d @$last_date)" exit $STATE_OK else - echo "CRITICAL: Last backup $(date -d @$last_date)" + echo "CRITICAL: Last file $(date -d @$last_date)" exit $STATE_CRITICAL fi fi