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