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
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
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
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
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
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
In <b5cd8d890901081640t5bd62eddi202652f7a42a68fb at mail.gmail.com> "Paul Ward" <pnward at googlemail.com> writes:
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.
You shouldn't change the DU setting; Xymon assumes that clients report their data in KB (which is also the default on Linux).
I'm not sure there an error in the way Hobbit reports the data. It could be that you're just misreading it. E.g. the files- graph has a Y-axis labeled "KB". So if the graph shows a value of "40k", then that is "40k KB", a.k.a. 40 MB.
If you want the graph to show MB, then you can modify the graph definition in hobbitgraphs.cfg: Change the Y-axis to "MB", and instead of displaying the raw data from the RRD file you display a calculcated value (CDEF) which is the raw value divided by 1024.
Regards, Henrik
Hi,
I have drilled down a little more and understand the graph is shown in KB and admit I was mis reading some of the data.
However when looking at roots mail I see the following:
[logfile:/var/spool/mail/root] type:100000 (file) mode:640 (-rw-r-----) linkcount:1 owner:0 (root) group:501 (xymon) size:99087 clock:1231790856 (2009/01/13-09:07:36) atime:1231790856 (2009/01/13-09:07:36) ctime:1231772532 (2009/01/13-04:02:12) mtime:1231772532 (2009/01/13-04:02:12)
I assume root is 99087 which is 90MB?
however when I perform a ls -lk I get: -rw-r----- 1 root xymon 97 Jan 13 04:02 root or ls -lh -rw-r----- 1 root xymon 97K Jan 13 04:02 root
I am confused why this is happening?
See my link for graph. http://img177.imageshack.us/my.php?image=hobbitgra
Sorry, just noticed my link was not working to the image try this:
http://img177.imageshack.us/my.php?image=hobbitgraphshsn2.png
2009/1/13 Paul Ward <pnward at googlemail.com>:
Hi,
I have drilled down a little more and understand the graph is shown in KB and admit I was mis reading some of the data.
However when looking at roots mail I see the following:
[logfile:/var/spool/mail/root] type:100000 (file) mode:640 (-rw-r-----) linkcount:1 owner:0 (root) group:501 (xymon) size:99087 clock:1231790856 (2009/01/13-09:07:36) atime:1231790856 (2009/01/13-09:07:36) ctime:1231772532 (2009/01/13-04:02:12) mtime:1231772532 (2009/01/13-04:02:12)
I assume root is 99087 which is 90MB?
however when I perform a ls -lk I get: -rw-r----- 1 root xymon 97 Jan 13 04:02 root or ls -lh -rw-r----- 1 root xymon 97K Jan 13 04:02 root
I am confused why this is happening?
See my link for graph. http://img177.imageshack.us/my.php?image=hobbitgra
--
email: pnward at googlemail.com website: http://www.pward.co.uk MSN: pob2000is at hotmail.com Skype: paul.n.ward
Hi all,
Does anybody have any idea why my stats are wrong on file reporting and how I can fix it?
2009/1/13 Paul Ward <pnward at googlemail.com>:
Sorry, just noticed my link was not working to the image try this:
http://img177.imageshack.us/my.php?image=hobbitgraphshsn2.png
2009/1/13 Paul Ward <pnward at googlemail.com>:
Hi,
I have drilled down a little more and understand the graph is shown in KB and admit I was mis reading some of the data.
However when looking at roots mail I see the following:
[logfile:/var/spool/mail/root] type:100000 (file) mode:640 (-rw-r-----) linkcount:1 owner:0 (root) group:501 (xymon) size:99087 clock:1231790856 (2009/01/13-09:07:36) atime:1231790856 (2009/01/13-09:07:36) ctime:1231772532 (2009/01/13-04:02:12) mtime:1231772532 (2009/01/13-04:02:12)
I assume root is 99087 which is 90MB?
however when I perform a ls -lk I get: -rw-r----- 1 root xymon 97 Jan 13 04:02 root or ls -lh -rw-r----- 1 root xymon 97K Jan 13 04:02 root
I am confused why this is happening?
participants (4)
-
henrik@hswn.dk
-
James.Roberts@hants.gov.uk
-
olav.sodal@geomatikk.no
-
pnward@googlemail.com