summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d6f48d)
raw | patch | inline | side by side (parent: 9d6f48d)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 4 Nov 2005 09:38:24 +0000 (09:38 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 4 Nov 2005 09:38:24 +0000 (09:38 +0000) |
(Rick Fey - 1339134)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1273 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1273 f882894a-f735-0410-b71e-b25c423dba1c
THANKS.in | patch | blob | history | |
plugins/check_tcp.c | patch | blob | history | |
plugins/t/check_imap.t | patch | blob | history |
diff --git a/THANKS.in b/THANKS.in
index fb73b141858a1d56e56e30ad9cb0fe4630217781..66e728c44c37d4bb687049c42681710160e85fe7 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Pascal Larisch
David Sullivan
Bob Ingraham
+Hans Engelen
+Rick Frey
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index cb7a869d071d35d011852865e155066e13a4d4c1..08ec85650042d9fc470308a9ed69b27ab5e7f53b 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
/* did we get the response we hoped? */
if(match == -2 && result != STATE_CRITICAL)
- result = STATE_WARNING;
+ result = expect_mismatch_state;
/* reset the alarm */
alarm (0);
diff --git a/plugins/t/check_imap.t b/plugins/t/check_imap.t
index f86faa4c2392cd22217ff538b35137d8ece921ce..32b4136a28d2dce80e177a059457700ea02ffca3 100644 (file)
--- a/plugins/t/check_imap.t
+++ b/plugins/t/check_imap.t
use NPTest;
use vars qw($tests);
-BEGIN {$tests = 5; plan tests => $tests}
+BEGIN {$tests = 7; plan tests => $tests}
my $host_tcp_smtp = getTestParameter( "host_tcp_smtp", "NP_HOST_TCP_SMTP", "mailhost",
"A host providing an STMP Service (a mail server)");
$t += checkCmd( "./check_imap $host_tcp_imap -p 143 -wt 9 -ct 9 -to 10 -e '* OK'", 0, undef, %exceptions );
$t += checkCmd( "./check_imap $host_nonresponsive", 2 );
$t += checkCmd( "./check_imap $hostname_invalid", 2 );
+$t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string", 1);
+$t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string -M crit", 2);
exit(0) if defined($Test::Harness::VERSION);