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