aboutsummaryrefslogtreecommitdiff
path: root/plugins/t/check_disk.t
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-11-03 15:13:13 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-11-03 15:13:13 +0000
commit595b2571a417fd2216071e80979fbe20e5cf1d4f (patch)
tree3202cbfb46415984abfa3b701fc495e6bd96b0cf /plugins/t/check_disk.t
parentf278c817e584ac7ccd3bdfee3daefdbc483398b7 (diff)
downloadmonitoring-plugins-595b2571a417fd2216071e80979fbe20e5cf1d4f.tar.gz
Invalid mount point doesn't make sense because most df implementations
would work out the actual mount point. And fixed typo in check_procs.t git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1271 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_disk.t')
-rw-r--r--plugins/t/check_disk.t6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t
index f2427fbe..df6e1495 100644
--- a/plugins/t/check_disk.t
+++ b/plugins/t/check_disk.t
@@ -10,7 +10,7 @@ use Test;
use NPTest;
use vars qw($tests);
-BEGIN {$tests = 10; plan tests => $tests}
+BEGIN {$tests = 8; plan tests => $tests}
my $successOutput = '/^DISK OK - /';
my $failureOutput = '/^DISK CRITICAL - /';
@@ -18,16 +18,12 @@ my $failureOutput = '/^DISK CRITICAL - /';
my $mountpoint_valid = getTestParameter( "mountpoint_valid", "NP_MOUNTPOINT_VALID", "/",
"The path to a valid mountpoint" );
-my $mountpoint_invalid = getTestParameter( "mountpoint_invalid", "NP_MOUNTPOINT_INVALID", "/missing",
- "The path to a invalid (non-existent) mountpoint" );
-
my $t;
$t += checkCmd( "./check_disk 100 100 ${mountpoint_valid}", 0, $successOutput );
$t += checkCmd( "./check_disk -w 0 -c 0 ${mountpoint_valid}", 0, $successOutput );
$t += checkCmd( "./check_disk -w 1\% -c 1\% ${mountpoint_valid}", 0, $successOutput );
$t += checkCmd( "./check_disk 0 0 ${mountpoint_valid}", 2, $failureOutput );
-$t += checkCmd( "./check_disk 100 100 ${mountpoint_invalid}", 2, '/not found/' );
exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);