diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-07-10 20:18:55 +0000 |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-07-10 20:18:55 +0000 |
commit | 5e633124e4573c98d5457144e401fb0d22e45ae6 (patch) | |
tree | 4cd3e9085503cdc10719de3d09f0fa12b810e996 /plugins/t | |
parent | 5d11612ecb23c6496d8faaedbcc1b9371628be53 (diff) | |
download | monitoring-plugins-5e633124e4573c98d5457144e401fb0d22e45ae6.tar.gz |
Check_disk now calls stat() for all filesystems to check.
Check_disk prints an strerror() message if the call of stat() fails.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1754 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_disk.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 5c6aa39a..4f5c4bc4 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t | |||
@@ -275,7 +275,7 @@ TODO: { | |||
275 | 275 | ||
276 | $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /bob" ); | 276 | $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /bob" ); |
277 | cmp_ok( $result->return_code, '==', 2, "Checking /bob - return error because /bob does not exist" ); | 277 | cmp_ok( $result->return_code, '==', 2, "Checking /bob - return error because /bob does not exist" ); |
278 | cmp_ok( $result->output, 'eq', 'DISK CRITICAL - /bob does not exist', 'Output OK'); | 278 | like( $result->output, '/^DISK CRITICAL - /bob is not accessible:.*$/', 'Output OK'); |
279 | 279 | ||
280 | $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /" ); | 280 | $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /" ); |
281 | my $root_output = $result->output; | 281 | my $root_output = $result->output; |