[mrtg] Monitoring CPU on w2k and w2k3

Joel A Savage savagej at franklinpierce.edu
Thu May 22 15:01:10 CEST 2008


I have been fiddling around trying to get MRTG to successfully monitor
cpu load for several windows box's and have not had a heck of a lot of
luck with it yet. Any one have any ideas? 

My mrtg install is on a slackware box. 

Example of cfg I am using. EnableIPv6: no
WorkDir: /var/www/htdocs/mrtg/servers/honor
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Options[_]: bits,growright


Target[cpu_hostname]:  .1.3.6.1.2.1.25.3.3.1.2:public at remotehost
MaxBytes[cpu_hostname]: 100
Unscaled[cpu_hostname]: dwmy
Options[cpu_hostname]: gauge, absolute, growright, noinfo, nopercent
YLegend[cpu_hostname]: CPU Load(%)
ShortLegend[cpu_hostname]: (%)
LegendI[cpu_hostname]: 1min ave
LegendO[cpu_hostname]: 5min ave
Legend1[cpu_hostname]: 1min ave(%)
Legend2[cpu_hostname]: 5min ave(%)
Title[cpu_hostname]: CPU Load ($HOST)
PageTop[cpu_hostname]: <H1>CPU Load Average -- W2k3</H1>

------------

This is what I get when I run mrtg against the cfg 
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.2)
SNMPv1_Session (remote host: "172.18.0.15" [172.18.0.15].161)
                  community: "**Hidden**"
                 request ID: 1138801897
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 491
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on
fpcim at 172.18.0.15::::::v4only
 at /usr/local/mrtg-2/bin/mrtg line 2202
2008-05-22 09:03:10: ERROR: Target[cpu_hostname][_IN_]
'.1.3.6.1.2.1.25.3.3.1. $target->[1]{$mode} ' (warn): Use of
uninitialized value in concatenation (.) or string at (eval 20) line 1.
2008-05-22 09:03:10: ERROR: Target[cpu_hostname][_OUT_]
'.1.3.6.1.2.1.25.3.3.1. $target->[1]{$mode} ' (warn): Use of
uninitialized value in concatenation (.) or string at (eval 21) line 1.



More information about the mrtg mailing list