[mrtg] HPUX cpu usage always 0!

Craig Humphrey Craig.Humphrey at chapmantripp.com
Thu Oct 21 04:09:53 MEST 2004


Hi People,

I've recently started monitoring a couple of HPUX (v11.0) boxes and I've
been trying to get the CPU usage to come up right, but it always seems
to be 0 in MRTG.

I'm using the MIB for computerSystemIdleCPU, subtracting it from 100 and
using that as the % busy.
Snmpget returns correct results, but MRTG/rateup just seems to get zero.

See below for snmpget example and mrtg.cfg file.

HELP! :)

Soon'ish
Craig

[root at craiglinux bin]# snmpget -v 2c -c XXXXXX aklkey02
1.3.6.1.4.1.11.2.3.1.1.15.0; sleep 300; snmpget -v 2c -c XXXXXX aklkey02
1.3.6.1.4.1.11.2.3.1.1.15.0
SNMPv2-SMI::enterprises.11.2.3.1.1.15.0 = Counter32: 1192852433
SNMPv2-SMI::enterprises.11.2.3.1.1.15.0 = Counter32: 1192869042

mrtg.cfg
Options[aklkey01_0]: growright, withzeroes, nopercent, nobanner,
integer, noi
Unscaled[aklkey01_0]: dwmy
WithPeak[aklkey01_0]: wmy
MaxBytes[aklkey01_0]: 100
YTics[aklkey01_0]: 5
ShortLegend[aklkey01_0]: %
YLegend[aklkey01_0]: % CPU
LegendI[aklkey01_0]: CPU:
LegendO[aklkey01_0]: CPU:
Legend1[aklkey01_0]: % CPU Usage
Legend2[aklkey01_0]: % CPU Usage
Legend3[aklkey01_0]: Peak % CPU Usage
Legend4[aklkey01_0]: Peak % CPU Usage

Target[aklkey01_0]: ( 100 -
1.3.6.1.4.1.11.2.3.1.1.15.0&1.3.6.1.4.1.11.2.3.1.1.15.0:XXXXXX at aklkey01
)
Title[aklkey01_0]: CPU Usage for Aklkey01
PageTop[aklkey01_0]: CPU Usage for Aklkey01

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list