diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-16 15:23:20 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-16 16:16:00 +0200 |
commit | a97118c489a59d723538292214efaa10dfcb96df (patch) | |
tree | 853ec20d2af94dc8d3325fa3b781dd535cd72c86 /modules/private/monitoring/plugins/check_openldap_replication | |
parent | b1b8a5623d22a7ee4301afe4e7b9d368ef7ded8f (diff) | |
download | Nix-a97118c489a59d723538292214efaa10dfcb96df.tar.gz Nix-a97118c489a59d723538292214efaa10dfcb96df.tar.zst Nix-a97118c489a59d723538292214efaa10dfcb96df.zip |
Add status engine website
Diffstat (limited to 'modules/private/monitoring/plugins/check_openldap_replication')
-rwxr-xr-x | modules/private/monitoring/plugins/check_openldap_replication | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/monitoring/plugins/check_openldap_replication b/modules/private/monitoring/plugins/check_openldap_replication index b511ff2..7136ad5 100755 --- a/modules/private/monitoring/plugins/check_openldap_replication +++ b/modules/private/monitoring/plugins/check_openldap_replication | |||
@@ -42,13 +42,13 @@ else | |||
42 | LC_ALL=C lag=$(printf "%.*f" 0 $lag) | 42 | LC_ALL=C lag=$(printf "%.*f" 0 $lag) |
43 | 43 | ||
44 | if [[ $offset -lt 5 ]]; then | 44 | if [[ $offset -lt 5 ]]; then |
45 | echo "OK - $output" | 45 | echo "OK - $output | time=${offset}s;5;10;;" |
46 | exit $STATE_OK | 46 | exit $STATE_OK |
47 | elif [[ $offset -lt 10 ]]; then | 47 | elif [[ $offset -lt 10 ]]; then |
48 | echo "WARNING - $output" | 48 | echo "WARNING - $output | time=${offset}s;5;10;;" |
49 | exit $STATE_WARNING | 49 | exit $STATE_WARNING |
50 | else | 50 | else |
51 | echo "CRITICAL - $output" | 51 | echo "CRITICAL - $output | time=${offset}s;5;10;;" |
52 | exit $STATE_CRITICAL | 52 | exit $STATE_CRITICAL |
53 | fi | 53 | fi |
54 | fi | 54 | fi |