[hobbit] File and dir size's wrong

Sødal Olav (Geomatikk) olav.sodal at geomatikk.no
Mon Jan 12 10:40:16 CET 2009


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






More information about the Xymon mailing list