]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/plugins/check_mysql_replication
Add status engine website
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_mysql_replication
index 89239281b3da089fb6128a0fd4615de8baaa5c62..4027f63f0ec57f45fd5df19caacf7b57b9496e74 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;;"
     exit $STATE_OK
   elif [[ $lag -lt 10 ]]; then
-    echo "WARNING - $output"
+    echo "WARNING - $output | time=${lag}s;5;10;;"
     exit $STATE_WARNING
   else
-    echo "CRITICAL - $output"
+    echo "CRITICAL - $output | time=${lag}s;5;10;;"
     exit $STATE_CRITICAL
   fi
 fi