From 95c8d2274570f91b9e60e75de4544804e114e1ac Mon Sep 17 00:00:00 2001
From: ramonn <noreply@pandorafms.org>
Date: Wed, 30 Jun 2010 15:51:45 +0000
Subject: [PATCH] 2010-06-30  Ramon Novoa  <rnovoa@artica.es>

	* pandora_agent: Call df with -P from the Linux abstraction layer
          to avoid split lines.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_agents/unix/ChangeLog     | 5 +++++
 pandora_agents/unix/pandora_agent | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog
index 29eae9d2cf..593c605335 100644
--- a/pandora_agents/unix/ChangeLog
+++ b/pandora_agents/unix/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-30  Ramon Novoa  <rnovoa@artica.es>
+
+	* pandora_agent: Call df with -P from the Linux abstraction layer
+	  to avoid split lines.
+
 2010-06-25  Ramon Novoa  <rnovoa@artica.es>
 
 	* pandora_agent: Added the module_cron feature to schedule modules
diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent
index 3b67cb905c..bd7abb703b 100755
--- a/pandora_agents/unix/pandora_agent
+++ b/pandora_agents/unix/pandora_agent
@@ -65,7 +65,7 @@ use constant PROC_CMDS => {
 # Commands to retrieve partition information in kB
 use constant PART_CMDS => {
 	# total, available, mount point
-	linux => 'df | awk \'NR > 1 {print $2, $4, $6}\'',
+	linux => 'df -P | awk \'NR > 1 {print $2, $4, $6}\'',
 	solaris => 'df -k | awk \'NR > 1 {print $2, $4, $6}\'',
 	hpux => 'df -P | awk \'NR > 1 {print $2, $4, $6}\'',
 	aix => 'df -kP | awk \'NR > 1 {print $2, $4, $6}\''