You should try to sort the output by defining DFSORT="-k+4"
Complete command would be df -k | sort -k+4
Worth trying.
-----Opprinnelig melding-----
Fra: Sødal Olav (Geomatikk) [mailto:user-2140f001066b@xymon.invalid]
Sendt: 12. januar 2009 10:12
Til: user-ae9b8668bcde@xymon.invalid
Emne: RE: [hobbit] File and dir size's wrong
Complete command would be "du -k+4". I should have said that. Sorry.
-----Opprinnelig melding-----
Fra: Paul Ward [mailto:user-0f18dc2f935b@xymon.invalid]
Sendt: 12. januar 2009 04:07
Til: user-ae9b8668bcde@xymon.invalid
Emne: Re: [hobbit] File and dir size's wrong
I tested what you said but it failed.
I had never heard of using +4 on du anyway, does this actually work??
[dir:/home/xymon]
/usr/bin/du: invalid option -- +
/usr/bin/du: invalid option -- 4
Try `/usr/bin/du --help' for more information.
2009/1/9 Sødal Olav (Geomatikk) <user-2140f001066b@xymon.invalid>:
Try "-k+4"
-----Opprinnelig melding-----
Fra: Paul Ward [mailto:user-0f18dc2f935b@xymon.invalid]
Sendt: 9. januar 2009 01:41
Til: user-ae9b8668bcde@xymon.invalid
Emne: [hobbit] File and dir size's wrong
Hi,
I have installed xymon on centos5 from source.
For some reason the files and dirs are incorrect.
My /home/xymon folder is 40MB but is only reported as 40k
I put DU="du -k" into the hobbitserver.cfg hoping to report the folder
in the same measurements but it is not working.
Any ideas?
Thanks
--
email: user-0f18dc2f935b@xymon.invalid
website: http://www.pward.co.uk
MSN: user-a51fe8e4fa06@xymon.invalid
Skype: paul.n.ward
--
email: user-0f18dc2f935b@xymon.invalid
website: http://www.pward.co.uk
MSN: user-a51fe8e4fa06@xymon.invalid
Skype: paul.n.ward
--
email: user-0f18dc2f935b@xymon.invalid
website: http://www.pward.co.uk
MSN: user-a51fe8e4fa06@xymon.invalid
Skype: paul.n.ward