mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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:
parent
5fd75ba5b6
commit
2ecf0422dc
@ -63,8 +63,8 @@ if ($#df < 0) {
|
|||||||
foreach my $row (@df) {
|
foreach my $row (@df) {
|
||||||
my @columns = split (' ', $row);
|
my @columns = split (' ', $row);
|
||||||
exit 1 if ($#columns < 4);
|
exit 1 if ($#columns < 4);
|
||||||
if (defined ($filesystems{$columns[0]}) || ($all_filesystems == 1 && !defined ($excluded_filesystems{$columns[0]}))) {
|
if (defined ($filesystems{$columns[5]}) || ($all_filesystems == 1 && !defined ($excluded_filesystems{$columns[5]}))) {
|
||||||
$filesystems{$columns[0]} = $columns[4] ;
|
$filesystems{$columns[5]} = $columns[4] ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user