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, .1.3.6.1.2.1.25.3.3.1.2 is for processor load.
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad

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

snmptranslate -Of 1.3.6.1.2.1.25.3.3.1.2
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad

However,
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]: 1.3.6.1.2.1.25.3.3.1.2.3:[EMAIL PROTECTED]:
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: 1.3.6.1.2.1.2.2.1.10.3)
SNMPv1_Session (remote host: "pocl-jet" [150.100.100.13].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 [EMAIL 
PROTECTED]::::::v4only
 at /usr/bin/mrtg line 1849
ERROR: Target[cpu_pocl-jet][_IN_] '1.3.6.1.2.1.25.3.3.1.2. $target->[0]{$mode} 
' (warn): Use of uninitialized value in concatenation (.) or string at (eval 6) 
line 1.
ERROR: Target[cpu_pocl-jet][_OUT_] '1.3.6.1.2.1.25.3.3.1.2. $target->[0]{$mode} 
' (warn): Use of uninitialized value in concatenation (.) or string at (eval 7) 
line 1.

Firstly, where is "(OID: 1.3.6.1.2.1.2.2.1.10.3)" 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!

Regards,
Jeff

--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to