]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/plugins/check_postgres_replication
Add status engine website
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_postgres_replication
index 009b4d580b30de7810d7cf02cba139445a87bb45..ff257a353e23eddb59aa4e59721b6a695e09fadb 100755 (executable)
@@ -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