From 96f8d0f037f8b8e93315e864bdaf661f45e3c472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 12 Jul 2018 08:21:21 +0200 Subject: Add monitoring for cryptoportfolio --- modules/profile/files/monitoring/check_last_file_date | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/profile/files/monitoring/check_last_file_date') 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 -- cgit v1.2.3