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
This commit is contained in:
ramonn 2010-06-30 15:51:45 +00:00
parent 88e8c34c0a
commit 95c8d22745
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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}\''