X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fplugins%2Fcheck_openldap_replication;h=7136ad5b5025f7318e098e3a9d804bb5089a82d1;hp=b511ff203b1d42af641aa04df6fdb5e7eee1ec20;hb=a97118c489a59d723538292214efaa10dfcb96df;hpb=16b80abd57bb215d0e72f3983f997a007743b8fb 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