[hobbit] Vmstat graph on redhat as 2.1 & 3
thomas.seglard.enata at cnp.fr
thomas.seglard.enata at cnp.fr
Wed Mar 22 17:19:45 CET 2006
Thanks for your quick answer !
I'm sorry to ask this question but where could I find the vmstat-larrd.pl file ?
Sincerly,
Thomas
"Johann Eggers" <johann.eggers at teleatlas.com> a écrit sur 22/03/2006
16:48:27 :
> thomas.seglard.enata at cnp.fr wrote:
>
> >
> > Hi,
> >
> > I see strange vmstat graphs on these 2 Oses : Redhat AS 2.1 (ia32) and
> > Redhat AS 3 (ia32 and ia64). It seems that some columns were inverted > > or shifted, here is the output of vmstat on a redhat 2.1 :
> >
> > procs memory swap io system
> > cpu
> > r b w swpd free buff cache si so bi bo in cs
> > us sy id
> > 10 0 0 4828 12240 74940 36412 0 0 0 0 0 0
> > 0 0 0
> > 1 0 0 4828 13000 74940 36424 0 0 0 90 141 189
> > 15 21 65
> > 0 0 0 4828 13000 74940 36424 0 0 0 0 129 27
> > 0 0 100
> > 0 0 0 4828 13100 74940 36420 0 0 0 12 138 31
> > 1 0 99
> > 0 0 0 4828 13100 74940 36420 0 0 0 0 129 21
> > 0 0 100
> >
> > and another one from a redhat 3 :
> >
> > procs memory swap io system
> > cpu
> > r b swpd free buff cache si so bi bo in cs us > > sy wa id
> > 91 0 4791520 31616 466384 1412464 10 27 58 89 552 7022
> > 36 9 7 48
> > 1 0 4791520 34576 466384 1412832 0 0 0 266 5473 19909
> > 25 23 0 52
> > 1 0 4791520 31792 466384 1412816 0 0 0 8 5716 18403
> > 23 5 0 72
> > 2 0 4792560 32512 466384 1411840 0 347 0 540 5496 18243
> > 33 9 0 58
> > 3 0 4792560 32512 466384 1411936 0 0 0 132 5139 17295
> > 18 5 0 77
> > 0 0 4792560 32608 466400 1412032 0 0 0 13 5106 17191
> > 19 7 0 74
> >
> > It seems graphs don't care about the idle column. I put the output
> > from a redhat as 4 (update 2) :
> >
> > procs -----------memory---------- ---swap-- -----io---- --system--
> > ----cpu----
> > r b swpd free buff cache si so bi bo in cs us > > sy id wa
> > 0 0 96 44128 217952 3371248 0 0 1 17 0 0 1
> > 0 98 0
> > 0 0 96 44064 217952 3371248 0 0 0 12 2080 55 0
> > 0 100 0
> > 0 0 96 44064 217952 3371248 0 0 0 24 2076 48 0
> > 0 100 0
> > 0 0 96 44128 217952 3371248 0 0 0 12 2080 54 0
> > 0 100 0
> > 0 0 96 54240 217952 3371248 0 0 0 17 2073 54 0
> > 0 100 0
> >
> > On this particular os, vmstat graphs are ok. On a Debian 3.1 system,
> > graphs look good too.
> > So, what can I do ? Is there a file to modify, a package to install ? > > Remove Redhat and install a Debian...
> >
> > Regards,
> >
> > Thomas Seglard
> >
> Hi,
>
> in the past I had the same problem. This is how I have adapt the
> vmstat-larrd.pl:
>
> It makes the correlation between the columns of vmstat output depending > on the OS / kernel version (2.4 / 2.6)
>
> # Define some host vmstat hash column translation
>
> %htovm = (solaris => { cpu_r => 0,
> cpu_b => 1,
> cpu_w => 2,
> mem_swap => 3,
> mem_free => 4,
> mem_re => 5,
> mem_mf => 6,
> mem_pi => 7,
> mem_po => 8,
> sr => 11,
> cpu_int => 16,
> cpu_syc => 17,
> cpu_csw => 18,
> cpu_usr => 19,
> cpu_sys => 20,
> cpu_idl => 21,
> },
> redhat => { cpu_r => 0,
> cpu_b => 1,
> cpu_w => 2,
> mem_swpd => 3,
> mem_free => 4,
> mem_buff => 5,
> mem_cach => 6,
> mem_si => 7,
> mem_so => 8,
> dsk_bi => 9,
> dsk_bo => 10,
> cpu_int => 11,
> cpu_csw => 12,
> cpu_usr => 13,
> cpu_sys => 14,
> cpu_idl => 15,
> },
> redhat_2_4 => { cpu_r => 0,
> cpu_b => 1,
> cpu_w => 2,
> mem_swpd => 3,
> mem_free => 4,
> mem_buff => 5,
> mem_cach => 6,
> mem_si => 7,
> mem_so => 8,
> dsk_bi => 9,
> dsk_bo => 10,
> cpu_int => 11,
> cpu_csw => 12,
> cpu_usr => 13,
> cpu_sys => 14,
> cpu_idl => 15,
> },
> redhat_2_6 => { cpu_r => 0,
> cpu_b => 1,
> mem_swpd => 2,
> mem_free => 3,
> mem_buff => 4,
> mem_cach => 5,
> mem_si => 6,
> mem_so => 7,
> dsk_bi => 8,
> dsk_bo => 9,
> cpu_int => 10,
> cpu_csw => 11,
> cpu_usr => 12,
> cpu_sys => 13,
> cpu_idl => 14,
> cpu_wait => 15,
> },
> suse => { cpu_r => 0,
> cpu_b => 1,
> cpu_w => 2,
> mem_swpd => 3,
> mem_free => 4,
> mem_buff => 5,
> mem_cach => 6,
> mem_si => 7,
> mem_so => 8,
> dsk_bi => 9,
> dsk_bo => 10,
> cpu_int => 11,
> cpu_csw => 12,
> cpu_usr => 13,
> cpu_sys => 14,
> cpu_idl => 15,
> },
>
> suse_2_4 => { cpu_r => 0,
> cpu_b => 1,
> cpu_w => 2,
> mem_swpd => 3,
> mem_free => 4,
> mem_buff => 5,
> mem_cach => 6,
> mem_si => 7,
> mem_so => 8,
> dsk_bi => 9,
> dsk_bo => 10,
> cpu_int => 11,
> cpu_csw => 12,
> cpu_usr => 13,
> cpu_sys => 14,
> cpu_idl => 15,
> },
>
> suse_2_6 => { cpu_r => 0,
> cpu_b => 1,
> mem_swpd => 2,
> mem_free => 3,
> mem_buff => 4,
> mem_cach => 5,
> mem_si => 6,
> mem_so => 7,
> dsk_bi => 8,
> dsk_bo => 9,
> cpu_int => 10,
> cpu_csw => 11,
> cpu_usr => 12,
> cpu_sys => 13,
> cpu_idl => 14,
> cpu_wait => 15,
> },
>
> );
>
> Johann
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.
*****
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060322/96f9897b/attachment.html>
More information about the Xymon
mailing list