[hobbit] vmstat graphing with CPU io wait

Henrik Stoerner henrik at hswn.dk
Wed Jan 26 11:10:03 CET 2005


On Wed, Jan 26, 2005 at 09:29:31AM -0000, Morris, Chris (Shared Services) wrote:
> AIX also reports i/o wait in its vmstat output in column 16 under wa of cpu
> which it would be nice to have in the graphs.
> 
> kthr     memory             page              faults        cpu
> ----- ----------- ------------------------ ------------ -----------
>  r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
>  0  2 238300 239351   0   0   0  60  108   0 110   79  83  8 30 30 32
>  0  2 238803 238827   0   0   0   0    0   0 498 3066 334  1  2 97 1

Yes, I noticed that when I worked on the vmstat graphs yesterday.
This was already being collected for AIX, so I made sure the names
matched, so that the graph-definitions will work for both Linux and
AIX.

You can try it with the AIX data you have. Add this to
hobbitgraph.cfg - it's the definition for "vmstat1" I wrote
yesterday. It gives you a graph with the CPU usage split into
system, I/O wait, user and idle:

[vmstat1]
        TITLE CPU Utilization
        YAXIS % Load
        -u 100
        -r
        DEF:cpu_idl=vmstat.rrd:cpu_idl:AVERAGE
        DEF:cpu_usr=vmstat.rrd:cpu_usr:AVERAGE
        DEF:cpu_sys=vmstat.rrd:cpu_sys:AVERAGE
        DEF:cpu_wait=vmstat.rrd:cpu_wait:AVERAGE
        AREA:cpu_sys#FF0000:System
        STACK:cpu_wait#774400:I/O wait
        STACK:cpu_usr#FFFF00:User
        STACK:cpu_idl#00FF00:Idle
        COMMENT:\n
        GPRINT:cpu_sys:LAST:System  \: %5.1lf (cur)
        GPRINT:cpu_sys:MAX: \: %5.1lf (max)
        GPRINT:cpu_sys:MIN: \: %5.1lf (min)
        GPRINT:cpu_sys:AVERAGE: \: %5.1lf (avg)\n
        GPRINT:cpu_wait:LAST:I/O Wait\: %5.1lf (cur)
        GPRINT:cpu_wait:MAX: \: %5.1lf (max)
        GPRINT:cpu_wait:MIN: \: %5.1lf (min)
        GPRINT:cpu_wait:AVERAGE: \: %5.1lf (avg)\n
        GPRINT:cpu_usr:LAST:User    \: %5.1lf (cur)
        GPRINT:cpu_usr:MAX: \: %5.1lf (max)
        GPRINT:cpu_usr:MIN: \: %5.1lf (min)
        GPRINT:cpu_usr:AVERAGE: \: %5.1lf (avg)\n
        GPRINT:cpu_idl:LAST:Idle    \: %5.1lf (cur)
        GPRINT:cpu_idl:MAX: \: %5.1lf (max)
        GPRINT:cpu_idl:MIN: \: %5.1lf (min)
        GPRINT:cpu_idl:AVERAGE: \: %5.1lf (avg)\n

Now find one of your AIX boxes on the Hobbit webpages and look at the
vmstat graphs. Then, in the browser change the part of the URL that
says "service=vmstat" to "service=vmstat1". You should then see the
new graph.

Or put "LARRD:*,vmstat:vmstat1" in the AIX-hosts' entry in bb-hosts
and wait for bb-larrdcolumn to update the set of graphs shown by
default.


Henrik



More information about the Xymon mailing list