diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2013-09-16 11:39:47 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2013-09-16 11:49:44 (GMT) |
commit | adc9d71b4b2c622b26e6403b16f8299a280dab54 (patch) | |
tree | 6d619241bd3dff2792b5d9785c727cc4f64f84fb /plugins/t | |
parent | c001fb98ffb162d6cd148047a3737c78aa737eca (diff) | |
download | monitoring-plugins-adc9d71b4b2c622b26e6403b16f8299a280dab54.tar.gz |
check_procs: fix test with sleeping processes
at least on freebsd, there are a processes with state 'S', they always
use two character status.
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_procs.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_procs.t b/plugins/t/check_procs.t index a1a2883..1dea564 100644 --- a/plugins/t/check_procs.t +++ b/plugins/t/check_procs.t | |||
@@ -34,7 +34,7 @@ $result = NPTest->testCmd( "./check_procs -w 0 -c 0" ); | |||
34 | is( $result->return_code, 2, "Checking critical if processes > 0" ); | 34 | is( $result->return_code, 2, "Checking critical if processes > 0" ); |
35 | like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? | procs=[0-9]+;0;0;0;$/', "Output correct" ); | 35 | like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? | procs=[0-9]+;0;0;0;$/', "Output correct" ); |
36 | 36 | ||
37 | $result = NPTest->testCmd( "./check_procs -w 0 -c 0 -s S" ); | 37 | $result = NPTest->testCmd( "./check_procs -w 0 -c 0 -s Ss" ); |
38 | is( $result->return_code, 2, "Checking critical if sleeping processes" ); | 38 | is( $result->return_code, 2, "Checking critical if sleeping processes" ); |
39 | like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? with /', "Output correct" ); | 39 | like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? with /', "Output correct" ); |
40 | 40 | ||