[mrtg] Re: MRTG and Marconi ATM devices

Greg.Volk at edwardjones.com Greg.Volk at edwardjones.com
Tue Nov 20 23:46:27 MET 2001


> 
> Greetings!
> 
> Is anyone out there using MRTG to collect environment data like CPU
> usage from Marconi Devices like ESX-3000 switches and 9000 series power
> hubs. I have an OID string for CPU usage on the 3000 switch that I can't
> seem to get to extract CPU usage data. This is the OID and format I have
> been using.
> Target[aa.75.1.15-cpu.1]:1.3.6.1.4.1.326.2.2.1.1.1.3.1.2:community-name at aa.75.1.15
> 
>

I collect CPU usage and cells/sec counters from two asx-4000's, and 
eight asx-1000's. I had trouble getting the CPU stuff to work when 
specifying the OID on the target line, so I scripted it. It's a 
bad hack, but it gets the job done. Eventually I want to figure out
what I'm doing wrong on the target line, but I've been too busy 
lately. Here's my script, and a sample config:



#!/bin/sh
##asx-cpu.sh - script for getting fore/marconi asx switch cpu stats
#
/usr/local/bin/snmpwalk $1 public .1.3.6.1.4.1.326.2.2.1.1.1.3.1.2 | cut -c44-47
/usr/local/bin/snmpwalk $2 public .1.3.6.1.4.1.326.2.2.1.1.1.3.1.2 | cut -c44-47
##end of script

And I call it from mrtg via:

#ASX CPU LOAD
Target[ncatm-1_1-1_2-load]: `/home/mrtg/bin/asx-cpu.sh 192.168.20.21 192.168.20.22`
Title[ncatm-1_1-1_2-load]: ATM CPU switch load, NCATM1-1, NCATM1-2
MaxBytes[ncatm-1_1-1_2-load]: 100
YLegend[ncatm-1_1-1_2-load]: System Load
Options[ncatm-1_1-1_2-load]: growright, gauge
ShortLegend[ncatm-1_1-1_2-load]:   
LegendI[ncatm-1_1-1_2-load]:   NCATM 1-1  
LegendO[ncatm-1_1-1_2-load]:   NCATM 1-2  
Legend1[ncatm-1_1-1_2-load]: NCATM 1-1 CPU load in %
Legend2[ncatm-1_1-1_2-load]: NCATM 1-2 CPU load in %
PageTop[ncatm-1_1-1_2-load]: <H1>NCATM1-1, NCATM1-2 Switch Load</H1>
   <font size=+2>Switch Load</font><br>
Unscaled[ncatm-1_1-1_2-load]: dwmy


So the above config+script combo gives me the cpu % busy 
counter for two switches on one graph. Yeah, I'm sure there
are many better ways to do it, but again, it works, and
I've been way too busy fighting fires to revisit the issue.
On my list of things to do is take all my asx switch fabric 
cpu counters and combine them into one RRD. Maybe some day...



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