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_imap_connection | |
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_imap_connection')
-rwxr-xr-x | modules/private/monitoring/plugins/check_imap_connection | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/monitoring/plugins/check_imap_connection b/modules/private/monitoring/plugins/check_imap_connection index 304eae6..c1ab0dd 100755 --- a/modules/private/monitoring/plugins/check_imap_connection +++ b/modules/private/monitoring/plugins/check_imap_connection | |||
@@ -26,10 +26,10 @@ my $expected_result = "a OK Logged in"; | |||
26 | 26 | ||
27 | chomp($cmd_result); | 27 | chomp($cmd_result); |
28 | if ($cmd_result !~ /$expected_result/) { | 28 | if ($cmd_result !~ /$expected_result/) { |
29 | print "IMAP CRITICAL - Unable to connect via imaps\n"; | 29 | print "IMAP CRITICAL - Unable to connect via imaps | imap=0;;;;\n"; |
30 | exit($STATE_CRITICAL); | 30 | exit($STATE_CRITICAL); |
31 | } else { | 31 | } else { |
32 | print "IMAP OK - imaps connected successfully\n"; | 32 | print "IMAP OK - imaps connected successfully | imap=1;;;;\n"; |
33 | exit($STATE_OK); | 33 | exit($STATE_OK); |
34 | } | 34 | } |
35 | 35 | ||