Patch: 2 extra counters CPU counter for AIX
Hi,
I have some patches that I apply when a new xymon version comes out. Maybe some of them are handy and can be included by default.
All new IBM Power CPU's has 2 extra counters for CPU: Physical CPU used and entitled capacity used (in %). This patch will add them to the vmstat.rrd. BUT this will change the rrd and add 2 data sources. So this means that rrdtool tune must be used to manually add the 2 new data sources to the rrd!
Relevant graph definitions: [vmstat-ec] TITLE Used Entitled CPU Capacity YAXIS ec % -b 1000 DEF:ect=vmstat.rrd:cpu_ec:AVERAGE CDEF:ec=ect,10,/ LINE2:ec#00CC00 GPRINT:ec:LAST:ec \: %5.1lf%s%% (cur) GPRINT:ec:MAX: \: %5.1lf%s%% (max) GPRINT:ec:MIN: \: %5.1lf%s%% (min) GPRINT:ec:AVERAGE: \: %5.1lf%s%% (avg)\n
[vmstat-ec-multi] FNPATTERN vmstat.rrd TITLE Used Entitled CPU Capacity YAXIS ec % -b 1000 DEF:ect at RRDIDX@=@RRDFN@:cpu_ec:AVERAGE CDEF:ec at RRDIDX@=ect at RRDIDX@,10,/ LINE1:ec at RRDIDX@#@COLOR@:@RRDPARAM@ GPRINT:ec at RRDIDX@:LAST:ec \: %5.1lf%s (cur) GPRINT:ec at RRDIDX@:MAX: \: %5.1lf%s (max) GPRINT:ec at RRDIDX@:MIN: \: %5.1lf%s (min) GPRINT:ec at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
[vmstat-pc] TITLE Used Physical CPU YAXIS pc (100 = 1 CPU) -b 1000 DEF:pc=vmstat.rrd:cpu_pc:AVERAGE LINE2:pc#00CC00 GPRINT:pc:LAST:pc \: %5.1lf%s (cur) GPRINT:pc:MAX: \: %5.1lf%s (max) GPRINT:pc:MIN: \: %5.1lf%s (min) GPRINT:pc:AVERAGE: \: %5.1lf%s (avg)\n
[vmstat-pc-multi] FNPATTERN vmstat.rrd TITLE Used Physical CPU (Stacked) YAXIS pc (100 = 1 CPU) -b 1000 DEF:pc at RRDIDX@=@RRDFN@:cpu_pc:AVERAGE LINE1:pc at RRDIDX@#@COLOR@:@RRDPARAM@:STACK GPRINT:pc at RRDIDX@:LAST:pc \: %5.1lf%s (cur) GPRINT:pc at RRDIDX@:MAX: \: %5.1lf%s (max) GPRINT:pc at RRDIDX@:MIN: \: %5.1lf%s (min) GPRINT:pc at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
Stef
participants (1)
-
stef.coene@docum.org