From 1d6b4d9315fd97c304e3c6d2a04e29315928e26d Mon Sep 17 00:00:00 2001 From: n Date: Tue, 6 Mar 2018 21:46:43 +0100 Subject: [PATCH] warning when 10 < >= 20 --- monitoring/check_ntppool_score | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/monitoring/check_ntppool_score b/monitoring/check_ntppool_score index 4ce5777..4cbf0fe 100755 --- a/monitoring/check_ntppool_score +++ b/monitoring/check_ntppool_score @@ -9,11 +9,17 @@ then exit 3 fi -result=`echo "$score > 10" | bc` +result=`echo "$score >= 20" | bc` if [ $result == 1 ] then echo "OK: score=$score|score=$score;;;;" exit 0 +fi +result=`echo "$score > 10" | bc` +if [ $result == 1 ] +then + echo "WARNING: score=$score|score=$score;;;;" + exit 1 else echo "CRITICAL: score=$score|score=$score;;;;" exit 2