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_redis_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_redis_replication')
-rwxr-xr-x | modules/private/monitoring/plugins/check_redis_replication | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/monitoring/plugins/check_redis_replication b/modules/private/monitoring/plugins/check_redis_replication index 7a884e1..6dbe4c4 100755 --- a/modules/private/monitoring/plugins/check_redis_replication +++ b/modules/private/monitoring/plugins/check_redis_replication | |||
@@ -26,13 +26,13 @@ else | |||
26 | LC_ALL=C lag=$(printf "%.*f" 0 $lag) | 26 | LC_ALL=C lag=$(printf "%.*f" 0 $lag) |
27 | 27 | ||
28 | if [[ $lag -lt 5 && $offset -lt 5 ]]; then | 28 | if [[ $lag -lt 5 && $offset -lt 5 ]]; then |
29 | echo "OK - $output" | 29 | echo "OK - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" |
30 | exit $STATE_OK | 30 | exit $STATE_OK |
31 | elif [[ $lag -lt 10 && $offset -lt 10 ]]; then | 31 | elif [[ $lag -lt 10 && $offset -lt 10 ]]; then |
32 | echo "WARNING - $output" | 32 | echo "WARNING - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" |
33 | exit $STATE_WARNING | 33 | exit $STATE_WARNING |
34 | else | 34 | else |
35 | echo "CRITICAL - $output" | 35 | echo "CRITICAL - $output | time=${lag}s;5;10;0; offset=${offset};5;10;0;" |
36 | exit $STATE_CRITICAL | 36 | exit $STATE_CRITICAL |
37 | fi | 37 | fi |
38 | fi | 38 | fi |