summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_jabber.t
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-01-08 11:35:06 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-01-08 11:35:06 (GMT)
commit2e0da16fad96241dc6bde04daecc7ced840e9c9a (patch)
tree00a5af556c83d0cfad29fc7b54005a9673787816 /plugins/t/check_jabber.t
parent9693226cebc9408b6c8f66de25aa38bff98169e4 (diff)
downloadmonitoring-plugins-2e0da16fad96241dc6bde04daecc7ced840e9c9a.tar.gz
more r1879 fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1899 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_jabber.t')
-rw-r--r--plugins/t/check_jabber.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_jabber.t b/plugins/t/check_jabber.t
index 6a3d4ef..b619321 100644
--- a/plugins/t/check_jabber.t
+++ b/plugins/t/check_jabber.t
@@ -34,7 +34,7 @@ my $jabberOK = '/JABBER OK\s-\s\d+\.\d+\ssecond response time on port 5222/';
34 34
35my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/'; 35my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/';
36 36
37my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/'; 37my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/';
38 38
39my $r; 39my $r;
40 40
@@ -60,6 +60,6 @@ is( $r->return_code, 2, "Unresponsive host gives critical" );
60like( $r->output, $jabberUnresponsive ); 60like( $r->output, $jabberUnresponsive );
61 61
62$r = NPTest->testCmd( "./check_jabber $hostname_invalid" ); 62$r = NPTest->testCmd( "./check_jabber $hostname_invalid" );
63is( $r->return_code, 2, "Invalid hostname gives critical" ); 63is( $r->return_code, 3, "Invalid hostname gives critical" );
64like( $r->output, $jabberInvalid ); 64like( $r->output, $jabberInvalid );
65 65