diff options
Diffstat (limited to 'plugins/t/check_jabber.t')
-rw-r--r-- | plugins/t/check_jabber.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_jabber.t b/plugins/t/check_jabber.t index b619321..6a3d4ef 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 | ||
35 | my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/'; | 35 | my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/'; |
36 | 36 | ||
37 | my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/'; | 37 | my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/'; |
38 | 38 | ||
39 | my $r; | 39 | my $r; |
40 | 40 | ||
@@ -60,6 +60,6 @@ is( $r->return_code, 2, "Unresponsive host gives critical" ); | |||
60 | like( $r->output, $jabberUnresponsive ); | 60 | like( $r->output, $jabberUnresponsive ); |
61 | 61 | ||
62 | $r = NPTest->testCmd( "./check_jabber $hostname_invalid" ); | 62 | $r = NPTest->testCmd( "./check_jabber $hostname_invalid" ); |
63 | is( $r->return_code, 3, "Invalid hostname gives critical" ); | 63 | is( $r->return_code, 2, "Invalid hostname gives critical" ); |
64 | like( $r->output, $jabberInvalid ); | 64 | like( $r->output, $jabberInvalid ); |
65 | 65 | ||