[mrtg] Problem whit CPU monitoring on windows 2003 and windows 2000 server

Lennie list at weben.nu
Fri Jan 2 14:03:06 MET 2004


I have a problem whit my mrtg config file.
i am monitoring 2 computer. 
one windows 2003 server
and one windows 2000 server.
when i am monitoring the CPU on the windows 20003 server everthings works perfekt.
but. when i am using the some settings for the windows 2000 server. i get a lots of error messages.
the config file i am using looks like this:
<--------->
# Global Options
WorkDir: c:\inetpub\MRTG\ny\data
Interval: 5
RunAsDaemon: Yes


# Common Options
# Options[_]: growright, bits
AddHead[_]: <style type="text/css"> <!--
 a { color: #263F66; text-decoration: none; }
 a:hover { color: #785B41; text-decoration: none; }
 body { color: black; font: 8pt Verdana, Geneva, Arial, Helvetica, sans-serif; }
 h1 { font: bold 16pt Verdana, Geneva, Arial, Helvetica,  sans-serif; color: #342A21; }
 h2 { color: #666666; font: bold 12pt Verdana, Geneva, Arial, Helvetica, sans-serif; }
 h3 { color: black; font: bold 9pt Verdana, Geneva, Arial, Helvetica, sans-serif; }
 table { border: 0; }
 td { background-color: #E7DDD3; border: 0px solid #FFFFFF; color: Black; font: 8pt Verdana, Geneva, Arial,  Helvetica, sans-serif; vertical-align: top; }
 th { background-color: #735A4A; color: White; font: 11px  Verdana, arial, geneva, helvetica, sans-serif;   border: 0;  font-weight: bold;  text-align: left;    }
 -->
 </style>
Background[_]: #F6F1EE
XSize[_]: 370
YSize[_]: 60
WithPeak[_]: ymw

YLegend[trevelyan.CPU]: % Usage
Options[trevelyan.CPU]: growright,gauge,nobanner,noarrow
Target[trevelyan.CPU]: .1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.2:phonera at 192.168.1.54
MaxBytes[trevelyan.CPU]: 100
Title[trevelyan.CPU]: CPU Load
ShortLegend[trevelyan.CPU]: %
Legend1[trevelyan.CPU]: % CPU 1 Usage
Legend2[trevelyan.CPU]: % CPU 2 Usage
Legend3[trevelyan.CPU]: Max CPU 1 Usage
Legend4[trevelyan.CPU]: Max CPU 2 Usage
LegendI[trevelyan.CPU]: CPU 1 Usage:
LegendO[trevelyan.CPU]: CPU 2 Usage:
PageTop[trevelyan.CPU]: <H1>CPU - Trevelyan</H1>

YLegend[blofeld.CPU]: % Usage
Options[blofeld.CPU]: growright,gauge,nobanner,noarrow
Target[blofeld.CPU]: .1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.2:phonera at 192.168.1.50
MaxBytes[blofeld.CPU]: 100
Title[blofeld.CPU]: CPU Load
ShortLegend[blofeld.CPU]: %
Legend1[blofeld.CPU]: % CPU 1 Usage
Legend2[blofeld.CPU]: % CPU 2 Usage
Legend3[blofeld.CPU]: Max CPU 1 Usage
Legend4[blofeld.CPU]: Max CPU 2 Usage
LegendI[blofeld.CPU]: CPU 1 Usage:
LegendO[blofeld.CPU]: CPU 2 Usage:
PageTop[blofeld.CPU]: <H1>CPU - Blofeld</H1>

<--------->
The server whit ipnummer 192.168.1.54 is the windows 2003 server.
and the server whit ip 192.168.1.50 is the windows 2000 server.

The error messages looks like this

<---------->
C:\Program Files\mrtg\bin>perl mrtg cpu.cfg
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.25.3.3.1.2.1)
SNMPv1_Session (remote host: "192.168.1.50" [192.168.1.50].161)
                  community: "phonera"
                 request ID: 1356470671
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at C:/Program Files/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 487
SNMPGET Problem for .1.3.6.1.2.1.25.3.3.1.2.1 .1.3.6.1.2.1.25.3.3.1.2.2 sysUptim
e sysName on phonera at 192.168.1.50::::::v4only
 at mrtg line 1827
ERROR: Target[blofeld.cpu][_IN_] ' $target->[1]{$mode} ' did not eval into defin
ed data
ERROR: Target[blofeld.cpu][_OUT_] ' $target->[1]{$mode} ' did not eval into defi
ned data
Use of uninitialized value in numeric lt (<) at mrtg line 371.
Use of uninitialized value in numeric lt (<) at mrtg line 375.
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.25.3.3.1.2.1)
SNMPv1_Session (remote host: "192.168.1.50" [192.168.1.50].161)
                  community: "phonera"
                 request ID: 295058229
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at C:/Program Files/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 487
SNMPGET Problem for .1.3.6.1.2.1.25.3.3.1.2.1 .1.3.6.1.2.1.25.3.3.1.2.2 sysUptim
e sysName on phonera at 192.168.1.50::::::v4only
 at mrtg line 1827
ERROR: Target[blofeld.cpu][_IN_] ' $target->[1]{$mode} ' did not eval into defin
ed data
ERROR: Target[blofeld.cpu][_OUT_] ' $target->[1]{$mode} ' did not eval into defi
ned data
Use of uninitialized value in numeric lt (<) at mrtg line 371.
Use of uninitialized value in numeric lt (<) at mrtg line 375.
<------------>

// Lennie
IT-dep phonera AB

--
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