summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-03-06 17:26:43 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2007-03-06 17:26:43 +0000
commita483e079daa8fae0ff61d5f236c8040b14087d2b (patch)
treec118271d9704e9e59455bcca7069a75eccf82d09
parent184348053332cf256d3dd8e661ad756949c2b9b2 (diff)
downloadmonitoring-plugins-a483e079daa8fae0ff61d5f236c8040b14087d2b.tar.gz
Test failure if a filesystem which is a subset of another fails the inode
check (Matthias Elbe - 1660953) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1628 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/t/check_disk.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t
index dd13ce58..2c0802cc 100644
--- a/plugins/t/check_disk.t
+++ b/plugins/t/check_disk.t
@@ -198,7 +198,7 @@ $all_disks = $result->output;
198$result = NPTest->testCmd( "./check_disk -e -W $avg_inode_free% -K 0% -p $less_inode_free -W $avg_inode_free% -K $avg_inode_free% -p $more_inode_free" ); 198$result = NPTest->testCmd( "./check_disk -e -W $avg_inode_free% -K 0% -p $less_inode_free -W $avg_inode_free% -K $avg_inode_free% -p $more_inode_free" );
199isnt( $result->output, $all_disks, "-e gives different output"); 199isnt( $result->output, $all_disks, "-e gives different output");
200like( $result->output, qr/$less_inode_free/, "Found problem $less_inode_free"); 200like( $result->output, qr/$less_inode_free/, "Found problem $less_inode_free");
201unlike( $result->only_output, qr/$more_inode_free/, "Has ignored $more_inode_free as not a problem"); 201unlike( $result->only_output, qr/$more_inode_free\s/, "Has ignored $more_inode_free as not a problem");
202like( $result->perf_output, qr/$more_inode_free/, "But $more_inode_free is still in perf data"); 202like( $result->perf_output, qr/$more_inode_free/, "But $more_inode_free is still in perf data");
203 203
204$result = NPTest->testCmd( "./check_disk -W $avg_inode_free% -K 0% -p $more_inode_free" ); 204$result = NPTest->testCmd( "./check_disk -W $avg_inode_free% -K 0% -p $more_inode_free" );