BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Resend: Larrd, Redhat Enterprise 3.0, and vmstat--graph broken.
In <40041A44.8070009@utsouthwestern.edu> Peter Smith <peter.smith@utsouthwestern.edu> writes:
>The 'vmstat' graphs from Larrd v0.43c are incorrect when using
>'bf-vmstat.sh' on a Redhat Enterprise Linux v3.0 client.
[snip sample]
>The problem is, the columns are not consistent and this will break the
>vmstat graphs. Anyone else encounter this problem?
Yeah - it's not just RHEL that does it, it is a problem with vmstat
from the procps 3.1.x, which Red Hat introduced recently.
The solution is to edit the vmstat-larrd.pl script to pick up
the right columns. I did that on a box with larrd 0.42, but the
change should be simple to use on the 0.43 version also.
The attached diff should fix it. Just save this mail to a file, then
cd /usr/local/larrd-0.42
patch vmstat-larrd.pl </tmp/file_you_saved
Henrik
--- /usr/local/larrd-0.42/vmstat-larrd.pl.orig 2003-03-13 18:06:47.000000000 +0100
+++ /usr/local/larrd-0.42/vmstat-larrd.pl 2003-12-30 17:54:16.000000000 +0100
@@ -41,20 +41,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,
+# cpu_w => 2,
+ 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,
},
osf => { cpu_r => 0,
cpu_b => 1,
@@ -107,23 +108,6 @@
cpu_usr => 17,
cpu_idl => 18,
},
- hpux => { cpu_r => 0,
- cpu_b => 1,
- cpu_w => 2,
- mem_avm => 3,
- mem_free => 4,
- mem_re => 5,
- mem_flt => 6,
- mem_pi => 7,
- mem_po => 8,
- mem_fr => 9,
- sr => 11,
- cpu_int => 12,
- cpu_csw => 14,
- cpu_usr => 15,
- cpu_sys => 16,
- cpu_idl => 17,
- },
);
# Aliases
--
Henrik Storner
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index