[mrtg] Monitoring windows

Jeff Mills Jeff.Mills at pocold.com.au
Wed Mar 9 00:37:27 MET 2005

Hi all,
I have been using mrtg for a while now to monitor cisco routers and mailscanner, and its been working great.
I would now like to start monitoring our Windows servers, but have run into a problem.

I've used "GetIf" to browse the mib tree on the windows box to get the identifiers.
For instance, . is for processor load.

If I snmpwalk this, it appears to be correct:
snmpwalk -v 1 -Of -c public pocl-jet
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.3 = INTEGER: 5

snmptranslate -Of

when I attempt to use this in mrtg, I get an error.
Here is what I'm using in my config:
Target[cpu_pocl-jet]: at pocl-jet:
AbsMax[cpu_pocl-jet]: 100
MaxBytes[cpu_pocl-jet]: 100
Title[cpu_pocl-jet]: Avg CPU Usage in pocl-jet
Legend1[cpu_pocl-jet]: Avg CPU Usage
Legend2[cpu_pocl-jet]: Avg CPU Usage
LegendI[cpu_pocl-jet]: Avg CPU Usage: 
LegendO[cpu_pocl-jet]: Avg CPU Usage: 
Ylegend[cpu_pocl-jet]: CPU Usage
ShortLegend[cpu_pocl-jet]: %
#Options[cpu_pocl-jet]: gauge,absolute,integer,nopercent
PageTop[cpu_pocl-jet]: <H1>Avg CPU Usage in pocl-jet</H1>

And here is what mrtg says:
mrtg /etc/mrtg/mrtg-servers.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID:
SNMPv1_Session (remote host: "pocl-jet" [].161)
                  community: "public"
                 request ID: 209712455
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.3 ifOutOctets.3 sysUptime sysName on public at pocl-jet::::::v4only
 at /usr/bin/mrtg line 1849
ERROR: Target[cpu_pocl-jet][_IN_] ' $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 6) line 1.
ERROR: Target[cpu_pocl-jet][_OUT_] ' $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 7) line 1.

Firstly, where is "(OID:" coming from? Is this what it is trying to look up on the server?
It would explain why mrtg finds nothing, but if thats the case, why is it looking there instead of the target I specify?
Any help is appreciated!


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