diff options
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_disk.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 45c6a61..39b4ca9 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t | |||
@@ -57,6 +57,9 @@ if ($free_on_mp1 > $free_on_mp2) { | |||
57 | } else { | 57 | } else { |
58 | die "Two mountpoints are the same - cannot do rest of test"; | 58 | die "Two mountpoints are the same - cannot do rest of test"; |
59 | } | 59 | } |
60 | if($free_on_mp1 == $avg_free || $free_on_mp2 == $avg_free) { | ||
61 | die "One mountpoints has average space free - cannot do rest of test"; | ||
62 | } | ||
60 | 63 | ||
61 | 64 | ||
62 | # Do same for inodes | 65 | # Do same for inodes |
@@ -74,6 +77,9 @@ if ($free_inode_on_mp1 > $free_inode_on_mp2) { | |||
74 | } else { | 77 | } else { |
75 | die "Two mountpoints with same inodes free - cannot do rest of test"; | 78 | die "Two mountpoints with same inodes free - cannot do rest of test"; |
76 | } | 79 | } |
80 | if($free_inode_on_mp1 == $avg_inode_free || $free_inode_on_mp2 == $avg_inode_free) { | ||
81 | die "One mountpoints has average inodes free - cannot do rest of test"; | ||
82 | } | ||
77 | 83 | ||
78 | # Verify performance data | 84 | # Verify performance data |
79 | # First check absolute thresholds... | 85 | # First check absolute thresholds... |