[hobbit] File and dir size's wrong

Roberts, James James.Roberts at hants.gov.uk
Mon Jan 12 10:51:19 CET 2009


I think there is some confusion here. I think Paul is trying to show the graph in MB not K.  This should not be rocket science?
 

-----Original Message-----
From: Sødal Olav (Geomatikk) [mailto:olav.sodal at geomatikk.no] 
Sent: 12 January 2009 09:40
To: hobbit at hswn.dk
Subject: RE: [hobbit] File and dir size's wrong

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:olav.sodal at geomatikk.no]
Sendt: 12. januar 2009 10:12
Til: hobbit at hswn.dk
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:pnward at googlemail.com]
Sendt: 12. januar 2009 04:07
Til: hobbit at hswn.dk
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) <olav.sodal at geomatikk.no>:
> Try "-k+4"
>
> -----Opprinnelig melding-----
> Fra: Paul Ward [mailto:pnward at googlemail.com]
> Sendt: 9. januar 2009 01:41
> Til: hobbit at hswn.dk
> 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: pnward at googlemail.com
> website: http://www.pward.co.uk
> MSN: pob2000is at hotmail.com
> Skype: paul.n.ward
>
>
>
> --
>
> email: pnward at googlemail.com
> website: http://www.pward.co.uk
> MSN: pob2000is at hotmail.com
> Skype: paul.n.ward
>
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
>
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
>
>
>



-- 

email: pnward at googlemail.com
website: http://www.pward.co.uk
MSN: pob2000is at hotmail.com
Skype: paul.n.ward

To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk




To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk




To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk






More information about the Xymon mailing list