diff options
author | Sven Nierlein <sven@nierlein.de> | 2017-03-12 19:41:04 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2017-03-12 22:55:52 +0100 |
commit | e90c63712e428a34b58d1e10c322af4d45f5b2a1 (patch) | |
tree | d3d90cd09893c600e8e818e81a5a9649c031a07f | |
parent | 0cff5f2d93b1359ab10949aa119527a1e4e6eb35 (diff) | |
download | monitoring-plugins-e90c637.tar.gz |
check_disk test: increase assumed thresholds
The check_disk fails if the build system has more than 100GB of free disk
space. Lets make this 100TB and we are safe for a couple more years.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
-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 |