X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprivate%2Fmonitoring%2Fplugins%2Fcheck_openldap_replication;h=7136ad5b5025f7318e098e3a9d804bb5089a82d1;hb=a97118c489a59d723538292214efaa10dfcb96df;hp=b511ff203b1d42af641aa04df6fdb5e7eee1ec20;hpb=b1b8a5623d22a7ee4301afe4e7b9d368ef7ded8f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/plugins/check_openldap_replication b/modules/private/monitoring/plugins/check_openldap_replication index b511ff2..7136ad5 100755 --- a/modules/private/monitoring/plugins/check_openldap_replication +++ b/modules/private/monitoring/plugins/check_openldap_replication @@ -42,13 +42,13 @@ else LC_ALL=C lag=$(printf "%.*f" 0 $lag) if [[ $offset -lt 5 ]]; then - echo "OK - $output" + echo "OK - $output | time=${offset}s;5;10;;" exit $STATE_OK elif [[ $offset -lt 10 ]]; then - echo "WARNING - $output" + echo "WARNING - $output | time=${offset}s;5;10;;" exit $STATE_WARNING else - echo "CRITICAL - $output" + echo "CRITICAL - $output | time=${offset}s;5;10;;" exit $STATE_CRITICAL fi fi