diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-12 08:52:20 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-12 08:52:20 +0200 |
commit | b94d29d098d959707d139b514c5071e5d99e4626 (patch) | |
tree | 96b09b188872a5d48385da467ea4a5990aeb90b0 /modules/profile/files/monitoring/check_last_file_date | |
parent | 625907f0177d335c05c05ae66ae49e20287d14b0 (diff) | |
parent | de68b72374231be37df7c171596672a21a218958 (diff) | |
download | Puppet-b94d29d098d959707d139b514c5071e5d99e4626.tar.gz Puppet-b94d29d098d959707d139b514c5071e5d99e4626.tar.zst Puppet-b94d29d098d959707d139b514c5071e5d99e4626.zip |
Merge branch 'dev'
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 |