]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/plugins/check_redis_replication
Add status engine website
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_redis_replication
index 7a884e1100631f1d741859aa241b56df0c023c88..6dbe4c4e7b6795bbaae50bbc37bef6276d3e43e7 100755 (executable)
@@ -26,13 +26,13 @@ else
   LC_ALL=C lag=$(printf "%.*f" 0 $lag)
 
   if [[ $lag -lt 5 && $offset -lt 5 ]]; then
-    echo "OK - $output"
+    echo "OK - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;"
     exit $STATE_OK
   elif [[ $lag -lt 10 && $offset -lt 10 ]]; then
-    echo "WARNING - $output"
+    echo "WARNING - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;"
     exit $STATE_WARNING
   else
-    echo "CRITICAL - $output"
+    echo "CRITICAL - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;"
     exit $STATE_CRITICAL
   fi
 fi