[mrtg] Re: cpu monitoring on cisco 2821 router

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Wed Dec 14 15:33:47 MET 2005


Sebastiaan,

Most oid's are followed by an index number. With this index number you can distinguish between several items within the same catagory (cpu's, interfaces etc.).
Even with only one cpu in the target this index number is needed.

This indexnumber (usualy a 0 or a 1) can be found with getif:
In the wide result window of Getif select the item you want to monitor with mrtg.
In the bottom left box you will get the complete oid that you can use in MRTG.

Hth,

Jan.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Dijk, Sebastian van
Sent: Wednesday, December 14, 2005 2:01 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] cpu monitoring on cisco 2821 router


Hi !

I am trying to monitor my CPU load and free memory on my Cisco 2821 router.

I use this config  :

Target[192.168.10.10_CPU]: .1.3.6.1.4.1.9.2.1.56&.1.3.6.1.4.1.9.2.1.56:read_vecozo at 192.168.10.10
Options[192.168.10.10_CPU]: growright, gauge, nobanner, noo
MaxBytes1[192.168.10.10_CPU]: 100
MaxBytes2[192.168.10.10_CPU]: 100
AbsMax[192.168.10.10_CPU]: 150
XSize[192.168.10.10_CPU]: 400
YSize[192.168.10.10_CPU]: 100
Kilo[192.168.10.10_CPU]: 1000
UnScaled[192.168.10.10_CPU]: DWMY
Withpeak[192.168.10.10_CPU]: DWMY
YLegend[192.168.10.10_CPU]: Usage %
ShortLegend[192.168.10.10_CPU]: %
LegendI[192.168.10.10_CPU]:  CPU 1-1:
Colours[192.168.10.10_CPU]: GREEN#00eb0c,BLUE#1000ff,RED#F90000,VIOLET#ff00ff
Background[192.168.10.10_CPU]: #a0a0a0a
Title[192.168.10.10_CPU]: Traffic Analysis for
PageTop[192.168.10.10_CPU]: Traffic Analysis for
 <TABLE>
    <TR><TD>System:</TD>     <TD></TD></TR>
    <TR><TD>Maintainer:</TD> <TD></TD></TR>
    <TR><TD>Description:</TD><TD></TD></TR>
  </TABLE>

Target[192.168.10.10_FREEMEM]: .1.3.6.1.4.1.9.2.1.8&.1.3.6.1.4.1.9.2.1.8:read_vecozo at 192.168.10.10
Options[192.168.10.10_FREEMEM]: growright, nopercent, gauge, nobanner, noo
MaxBytes1[192.168.10.10_FREEMEM]: 1000000000
MaxBytes2[192.168.10.10_FREEMEM]: 1000000000
AbsMax[192.168.10.10_FREEMEM]: 1000000000
XSize[192.168.10.10_FREEMEM]: 400
YSize[192.168.10.10_FREEMEM]: 100
Kilo[192.168.10.10_FREEMEM]: 1000
UnScaled[192.168.10.10_FREEMEM]: DWMY
Withpeak[192.168.10.10_FREEMEM]: DWMY
YLegend[192.168.10.10_FREEMEM]: FREE %
ShortLegend[192.168.10.10_FREEMEM]: %
LegendI[192.168.10.10_FREEMEM]: &nbsp;FREEMEM 1-1:
Colours[192.168.10.10_FREEMEM]: GREEN#00eb0c,BLUE#1000ff,RED#F90000,VIOLET#ff00ff
Background[192.168.10.10_FREEMEM]: #a0a0a0a
Title[192.168.10.10_FREEMEM]: Traffic Analysis for
PageTop[192.168.10.10_FREEMEM]: Traffic Analysis for
 <TABLE>
    <TR><TD>System:</TD>     <TD></TD></TR>
    <TR><TD>Maintainer:</TD> <TD></TD></TR>
    <TR><TD>Description:</TD><TD></TD></TR>
  </TABLE>

However i get the error :
2005-12-14 14:02:40 -- Started mrtg with config '2821_A.cfg' 2005-12-14 14:02:40 -- SNMP Error: Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.9.2.1.56)
SNMPv1_Session (remote host: "192.168.10.10" [192.168.10.10].161)
                  community: "read_vecozo"
                 request ID: 1777996928
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at D:/BEHEER/MRTG/mrtg-2.11.1/bin\..\lib\mrtg2/SNMP_util.pm line 490 2005-12-14 14:02:40 -- SNMPGET Problem for .1.3.6.1.4.1.9.2.1.56 .1.3.6.1.4.1.9.2.1.56 sysUptime sysName on read_vecozo at 192.168.10.10::::::v4only
 at mrtg line 1849
2005-12-14 14:02:40 -- SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.9.2.1.8)
SNMPv1_Session (remote host: "192.168.10.10" [192.168.10.10].161)
                  community: "read_vecozo"
                 request ID: 1777996929
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at D:/BEHEER/MRTG/mrtg-2.11.1/bin\..\lib\mrtg2/SNMP_util.pm line 490 2005-12-14 14:02:40 -- SNMPGET Problem for .1.3.6.1.4.1.9.2.1.8 .1.3.6.1.4.1.9.2.1.8 sysUptime sysName on read_vecozo at 192.168.10.10::::::v4only
 at mrtg line 1849
2005-12-14 14:02:40 -- ERROR: Target[192.168.10.10_cpu][_IN_] ' $target->[7]{$mode} ' did not eval into defined data 2005-12-14 14:02:40 -- ERROR: Target[192.168.10.10_cpu][_OUT_] ' $target->[7]{$mode} ' did not eval into defined data 2005-12-14 14:02:40 -- ERROR: Target[192.168.10.10_freemem][_IN_] ' $target->[8]{$mode} ' did not eval into defined data 2005-12-14 14:02:40 -- ERROR: Target[192.168.10.10_freemem][_OUT_] ' $target->[8]{$mode} ' did not eval into defined data


What's wrong ?

When i use these values in GETIF they return the right results.



Met vriendelijke groet,


Sebastian van Dijk

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


_________________________________________________________

Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________

The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________

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



More information about the mrtg mailing list