From 2ecf0422dc27a95c1d983a0bbede84d3f4d79456 Mon Sep 17 00:00:00 2001 From: Sancho Lerena Date: Mon, 19 Jan 2015 17:45:34 +0100 Subject: [PATCH] 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. --- pandora_agents/unix/plugins/pandora_df | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_agents/unix/plugins/pandora_df b/pandora_agents/unix/plugins/pandora_df index 59e04719cc..8ba6fedf17 100755 --- a/pandora_agents/unix/plugins/pandora_df +++ b/pandora_agents/unix/plugins/pandora_df @@ -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] ; } }