This way of getting base mount point is not useful to monitor disk partitions by default

Modified to get 6th column, which is mount point.
This commit is contained in:
Sancho Lerena 2015-01-19 17:45:34 +01:00
parent 5fd75ba5b6
commit 2ecf0422dc
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ if ($#df < 0) {
foreach my $row (@df) {
my @columns = split (' ', $row);
exit 1 if ($#columns < 4);
if (defined ($filesystems{$columns[0]}) || ($all_filesystems == 1 && !defined ($excluded_filesystems{$columns[0]}))) {
$filesystems{$columns[0]} = $columns[4] ;
if (defined ($filesystems{$columns[5]}) || ($all_filesystems == 1 && !defined ($excluded_filesystems{$columns[5]}))) {
$filesystems{$columns[5]} = $columns[4] ;
}
}