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