attn Henrik -- do_vmstat.c and AIX 5.3 DLPAR fix
Kauffman, Tom
KauffmanT at nibco.com
Mon Nov 5 20:40:35 CET 2007
I beat on this a while Friday and got nowhere - and then I decided I was
trying to fix the wrong spot.
Since AIX seems to be the only OS that includes decimal fractions in the
vmstat output, I fixed the hobbitclient-aix.sh script. The attached
patch makes two changes.
1) reduce the vmstat count to 1; AIX 5.3 (and 5.2, I think) no longer
dump an immediate overview and then an accumulation for the time
specified. Vmstat provides the two values requested at the time delay
specified, so vmstat 300 2 gives two five-minute accumulations for a
total of ten minutes of run time.
2) use sed to copy the vmstat temporary output to the final output,
stripping all periods out as it goes.
The graph definitions need to be updated to do a divide by 10 for cpu_ec
and a divide by 100 for cpu_pc to offset the default multiplication that
occurs by stripping the decimal.
(I *think* I got the syntax correct for making the patch - never done it
before).
Tom Kauffman
NIBCO, Inc
CONFIDENTIALITY NOTICE: This email and any attachments are for the
exclusive and confidential use of the intended recipient. If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20071105/5981fb07/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hobbitclient-aix.sh-patch
Type: application/octet-stream
Size: 419 bytes
Desc: hobbitclient-aix.sh-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20071105/5981fb07/attachment.obj>
More information about the Xymon
mailing list