]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/files/monitoring/check_last_file_date
Add monitoring for cryptoportfolio
[perso/Immae/Projets/Puppet.git] / modules / profile / files / monitoring / check_last_file_date
index 8eabb57455175d6e99493a5fa1aef9755d9ed5a8..d520a84c75e9bf8c50dd6e212dc5ff788e7d2568 100644 (file)
@@ -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