[mrtg] CPU utilization

Steve Lindemann steve at marmot.org
Fri Apr 27 20:56:47 CEST 2007


Mahesh Bharadwaj wrote:
> CPU on cisco routers specifically cat3750 switch and PIX firewalls..we want
> to monitor it using SNMP ar may be we have a perl program for the same...
> 
> I was only saying that is there any site where we can get the information
> about deploying the same
> 
 >>>snip<<<

hhhmmm... that makes quite the difference.  My previous post to this 
thread is completely irrelevant, that was for monitoring cpu load on a 
linux box.  My example below is for cisco 3845 and 7206 routers but it 
gives you the idea... you just have to find your specific OIDs (that's 
really the hard part unless someone else here can provide those 
numbers).  If you're paying attention you'll notice the OIDs for both 
routers are the same (in this instance).  I had to really dig around to 
get those numbers and don't recall where I finally found them.  Sorry.

### Global Config Options
#  for UNIX
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg/images
LogDir: /var/www/mrtg/logs
Options[_]: bits,growright,unknaszero,withzeroes
WithPeak[_]: wmy
Forks: 10
Interval: 10
EnableIPv6: no
######################################################################
# Contact: Steve Lindemann, +1.970.242.3331x16
# Location: Grand Junction, CO
######################################################################
#-------------------------------------------------------------------------
### cpu utilization on cisco 3845 router
Target[149_cpu]: 
1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0:public at 192.168.0.1
MaxBytes[149_cpu]: 100
AbsMax[149_cpu]: 100
Options[149_cpu]: gauge,nopercent,growright
Unscaled[149_cpu]: dwmy
YLegend[149_cpu]: % Utilization
ShortLegend[149_cpu]: %
LegendI[149_cpu]: 1 Min:
LegendO[149_cpu]: 5 Min:
Legend1[149_cpu]: AvgBusy 1 Min
Legend2[149_cpu]: AvgBusy 5 Min
Title[149_cpu]: CPU Utilization on marmot-0593
PageTop[149_cpu]: <H2>CPU Utilization on marmot-0593</H2>
#-------------------------------------------------------------------------
### memory utilization on cisco 3845 router
Target[149_mem]: 
1.3.6.1.4.1.9.9.48.1.1.1.5.1&1.3.6.1.4.1.9.9.48.1.1.1.6.1:public at 192.168.0.1
MaxBytes[149_mem]: 16584704
AbsMax[149_mem]: 16584704
Options[149_mem]: gauge,nopercent,growright
Unscaled[149_mem]: dwmy
YLegend[149_mem]: Utilization
ShortLegend[149_mem]: Usage
LegendI[149_mem]: 1 Min:
LegendO[149_mem]: 5 Min:
Legend1[149_mem]: AvgBusy 1 Min
Legend2[149_mem]: AvgBusy 5 Min
Title[149_mem]: Memory Utilization on marmot-0593
PageTop[149_mem]: <H2>Memory Utilization on marmot-0593</H2>
#-------------------------------------------------------------------------
### cpu utilization on cisco 7206 router
Target[147_cpu]: 
1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0:public at 192.168.0.100
MaxBytes[147_cpu]: 100
AbsMax[147_cpu]: 100
Options[147_cpu]: gauge,nopercent,growright
Unscaled[147_cpu]: dwmy
YLegend[147_cpu]: % Utilization
ShortLegend[147_cpu]: %
LegendI[147_cpu]: 1 Min:
LegendO[147_cpu]: 5 Min:
Legend1[147_cpu]: AvgBusy 1 Min
Legend2[147_cpu]: AvgBusy 5 Min
Title[147_cpu]: CPU Utilization on .100
PageTop[147_cpu]: <H2>CPU Utilization on .100</H2>
#-------------------------------------------------------------------------
### memory utilization on cisco 7206 router
Target[147_mem]: 
1.3.6.1.4.1.9.9.48.1.1.1.5.1&1.3.6.1.4.1.9.9.48.1.1.1.6.1:public at 192.168.0.100
MaxBytes[147_mem]: 4145152
AbsMax[147_mem]: 4145152
Options[147_mem]: gauge,nopercent,growright
Unscaled[147_mem]: dwmy
YLegend[147_mem]: Utilization
ShortLegend[147_mem]: Usage
LegendI[147_mem]: 1 Min:
LegendO[147_mem]: 5 Min:
Legend1[147_mem]: AvgBusy 1 Min
Legend2[147_mem]: AvgBusy 5 Min
Title[147_mem]: Memory Utilization on .100
PageTop[147_mem]: <H2>Memory Utilization on .100</H2>

...and, of course, I obscured the community name and IPs and the mrtg 
target names don't match todays reality but it's just an example.
--
Steve Lindemann                         __
Network Administrator                  //\\  ASCII Ribbon Campaign
Marmot Library Network, Inc.           \\//  against HTML/RTF email,
   url: http://www.marmot.org           //\\  vCards & M$ attachments
email: mailto:steve at marmot.org
voice: +1.970.242.3331 ext 16
   fax: +1.970.245.7854



More information about the mrtg mailing list