aboutsummaryrefslogtreecommitdiff
path: root/plugins/t/check_jabber.t
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2008-01-08 11:57:24 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2008-01-08 11:57:24 +0000
commit3120fe3806ac2df69be10097b71ec84974bbcea7 (patch)
tree9aa83ae3c9f079c6a8f8ef8c3392c7cbf0322faa /plugins/t/check_jabber.t
parent31a58a1535235b6d9ea5761e36c06aaf478864ce (diff)
downloadmonitoring-plugins-3120fe3806ac2df69be10097b71ec84974bbcea7.tar.gz
Reverted commits 1898 and 1899 due to reversion of 1879
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1901 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 b6193214..6a3d4ef7 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/';
my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/';
-my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/';
+my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/';
my $r;
@@ -60,6 +60,6 @@ is( $r->return_code, 2, "Unresponsive host gives critical" );
like( $r->output, $jabberUnresponsive );
$r = NPTest->testCmd( "./check_jabber $hostname_invalid" );
-is( $r->return_code, 3, "Invalid hostname gives critical" );
+is( $r->return_code, 2, "Invalid hostname gives critical" );
like( $r->output, $jabberInvalid );