X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fplugins%2Fcheck_redis_replication;h=6dbe4c4e7b6795bbaae50bbc37bef6276d3e43e7;hb=a97118c489a59d723538292214efaa10dfcb96df;hp=7a884e1100631f1d741859aa241b56df0c023c88;hpb=6015a3b52c3b155ac444aeb39950c38a5e653101;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/plugins/check_redis_replication b/modules/private/monitoring/plugins/check_redis_replication index 7a884e1..6dbe4c4 100755 --- a/modules/private/monitoring/plugins/check_redis_replication +++ b/modules/private/monitoring/plugins/check_redis_replication @@ -26,13 +26,13 @@ else LC_ALL=C lag=$(printf "%.*f" 0 $lag) if [[ $lag -lt 5 && $offset -lt 5 ]]; then - echo "OK - $output" + echo "OK - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" exit $STATE_OK elif [[ $lag -lt 10 && $offset -lt 10 ]]; then - echo "WARNING - $output" + echo "WARNING - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" exit $STATE_WARNING else - echo "CRITICAL - $output" + echo "CRITICAL - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" exit $STATE_CRITICAL fi fi