diff options
author | Sven Nierlein <sven@nierlein.org> | 2017-03-13 11:47:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 11:47:52 +0100 |
commit | c810dd0dfc9c42035c514af6606f8d6471c4e7d4 (patch) | |
tree | 535867da963dd4faad93b0448d15e086f1906612 /plugins/t/check_disk.t | |
parent | 9daeceaed39b04e79ba364e311e0532e4fdf711f (diff) | |
parent | 77aa6d4ebf1bd3567395c92b9e5cc9daa74e9838 (diff) | |
download | monitoring-plugins-c810dd0dfc9c42035c514af6606f8d6471c4e7d4.tar.gz |
Merge pull request #1469 from sni/master
make tests more reliable
Diffstat (limited to 'plugins/t/check_disk.t')
-rw-r--r-- | plugins/t/check_disk.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 7e0f74b7..fdd8769b 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t | |||
@@ -248,11 +248,11 @@ $result = NPTest->testCmd( "./check_disk -w 100% -c 100% ".${mountpoint_valid} ) | |||
248 | cmp_ok( $result->return_code, "==", 2, "100% empty" ); | 248 | cmp_ok( $result->return_code, "==", 2, "100% empty" ); |
249 | like( $result->output, $failureOutput, "Right output" ); | 249 | like( $result->output, $failureOutput, "Right output" ); |
250 | 250 | ||
251 | $result = NPTest->testCmd( "./check_disk -w 100000 -c 100000 $mountpoint_valid" ); | 251 | $result = NPTest->testCmd( "./check_disk -w 100000000 -c 100000000 $mountpoint_valid" ); |
252 | cmp_ok( $result->return_code, '==', 2, "Check for 100GB free" ); | 252 | cmp_ok( $result->return_code, '==', 2, "Check for 100TB free" ); |
253 | 253 | ||
254 | $result = NPTest->testCmd( "./check_disk -w 100 -c 100 -u GB ".${mountpoint_valid} ); # 100 GB empty | 254 | $result = NPTest->testCmd( "./check_disk -w 100 -c 100 -u TB ".${mountpoint_valid} ); # 100 TB empty |
255 | cmp_ok( $result->return_code, "==", 2, "100 GB empty" ); | 255 | cmp_ok( $result->return_code, "==", 2, "100 TB empty" ); |
256 | 256 | ||
257 | 257 | ||
258 | # Checking old syntax of check_disk warn crit [fs], with warn/crit at USED% thresholds | 258 | # Checking old syntax of check_disk warn crit [fs], with warn/crit at USED% thresholds |