Here are a couple of examples from the config files that I use for gathering 
CPU and Memory Usage.  The first example is from a router running an older IOS, 
and the last is from a router running a newer IOS:  (and yes, these comments 
are also in my config files)


#####################
#
#  Using OLD-CISCO-CPU-MIB to gather CPU statistics
#
#  .1.3.6.1.4.1.9.2.1.56.0 <- CPU busy percentage in the last 5 second period
#
#  The MIB says that this is NOT a real 5 seconds, but 5 seconds according to 
#   the internal schedular -- whatever that means.
#
#####################

#  WAN Router: CPU Usage

Target[CPU]: .1.3.6.1.4.1.9.2.1.56.0&.1.3.6.1.4.1.9.2.1.56.0:[EMAIL PROTECTED]
MaxBytes[CPU]: 100
Options[CPU]: gauge, nopercent, growright, nolegend, transparent, noo
Title[CPU]: BKS3725: CPU Usage
PageTop[CPU]: <H1 align="center">BKS3725: CPU Usage</H1>
YLegend[CPU]: CPU Utilization (%)
LegendI[CPU]: CPU Utilization:&nbsp
LegendO[CPU]: CPU Utilization:&nbsp
ShortLegend[CPU]: Percent

#####################
#
#  Using OLD-CISCO-MEMORY-MIB to gather Memory usage statistics
#
#  .1.3.6.1.4.1.9.2.1.8.0  <--  Free Memory (in bytes)
#
#  The Brooksville router is running an IOS version below 11.1, which means
#   that the newer and better CISCO-MEMORY-POOL-MIB is not supported
#
#####################

# WAN Router: Memory Free

Target[MEM]: .1.3.6.1.4.1.9.2.1.8.0&.1.3.6.1.4.1.9.2.1.8.0:[EMAIL PROTECTED]
MaxBytes[MEM]: 8192000
Options[MEM]: gauge, growright, nolegend, transparent, noo
Title[MEM]: BKS3725: Free Memory
PageTop[MEM]: <H1 align="center">BKS3725: Free Memory</H1>
YLegend[MEM]: Free Memory (/bytes)
LegendI[MEM]: Free:&nbsp
LegendO[MEM]: Free:&nbsp
ShortLegend[MEM]: Bytes

+++++++++++++++++++++++++++++++++++++++++++
and the second example:  I use the same old mib for CPU usage but I use the new 
Memory Pool mib for Memory usage:

#####################
#
#  Using CISCO MEMORY POOL MIB to gather Free Memory Statistics
#
#  .1.3.6.1.4.1.9.9.48.1.1.1.6.1
#  .1.3.6.1.4.1.9.9.48.1.1.1.6.2
#
#  The Cisco routers (as of IOS version 11.1) track memory by the 
#   various pools that are created.  Each pool will have a different
#   amount of memory assigned to it.  Not all routers will use all 5
#   of the different memory pools available.  Here is a list of all the
#   memory pools and their corresponding integer value.  The last
#   number in the OID represents the memory pool.
#
#            1:  processor memory
#            2:  i/o memory
#            3:  pci memory
#            4:  fast memory
#            5:  multibus memory
#
#  This OID tracks FREE memory in bytes.  By adding the value at 48.1.1.1.5.1
#   (the USED memory in bytes) and 48.1.1.1.6.1, the total number of bytes 
#   assigned to the pool can be discovered.  This is how the Maxbytes
#   values were choosen.  It is unknown at this time if the memory assigned
#   to a pool is dynamic between one reboot and the next.
#
#####################

# WAN Router:  Free Memory -- Processor and I/O Pools

Target[MEM]: .1.3.6.1.4.1.9.9.48.1.1.1.6.1&.1.3.6.1.4.1.9.9.48.1.1.1.6.2
:[EMAIL PROTECTED]
MaxBytes1[MEM]: 1606772
MaxBytes2[MEM]: 2097152
Options[MEM]: gauge, growright, nolegend, transparent
Title[MEM]: DEM2524: Free Memory -- Processor and I/O Pools
PageTop[MEM]: <H1 align="center">DEM2524: Free Memory -- Processor and I
/O Pools</H1>
YLegend[MEM]: Free Memory (/bytes)
LegendI[MEM]: Processor Pool:&nbsp
LegendO[MEM]: I/O Pool:&nbsp
ShortLegend[MEM]: Bytes





>>> "Fauteux, Joe" <[EMAIL PROTECTED]> 11/04/03 14:10 PM >>>
use the ciscoMemoryPoolMIB for memory and the avgBusy5 mib for cpu

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Mait Mandel
Sent: Tuesday, November 04, 2003 1:48 PM
To: [EMAIL PROTECTED]
Subject: [mrtg] cisco cpu and memory usage


hi!

how can i monitor cisco cpu & memoru usage with mrtg?
anyone done that?

regards,

Mait

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


  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may not 
print, distribute, or copy this message or any attachments.  If you have 
received this communication in error, please notify the sender by return e-mail 
and delete this message and any attachments from your computer.

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


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