File and dir size's wrong
list Paul Ward
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
list Olav Sødal
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
list Paul Ward
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
list Olav Sødal
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
list Olav Sødal
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
list James Roberts
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:user-2140f001066b@xymon.invalid]
Sent: 12 January 2009 09:40
To: user-ae9b8668bcde@xymon.invalid
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: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
list Henrik Størner
▸
In <user-ca7ba27f3478@xymon.invalid> "Paul Ward" <user-0f18dc2f935b@xymon.invalid> 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
list Paul Ward
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
list Paul Ward
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 <user-0f18dc2f935b@xymon.invalid>:
▸
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: user-0f18dc2f935b@xymon.invalid website: http://www.pward.co.uk MSN: user-a51fe8e4fa06@xymon.invalid Skype: paul.n.ward
list Paul 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 <user-0f18dc2f935b@xymon.invalid>:
▸
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 <user-0f18dc2f935b@xymon.invalid>: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?