[mrtg] Re: Scripts for graphing broadcasts , crc errors etc on a switch
Brander, Eric
Eric.Brander at ACS-INC.com
Tue Jul 30 14:28:45 MEST 2002
You need to find the OID that pulls that data from the device you are
monitoring. Knowing Perl is not necessary. Use a utility like GetIf and
browse for what you are looking for.
1.3.6.1.2.1.2.2.1.14 and 1.3.6.1.2.1.2.2.1.20 are in and out errors
respectively for most devices (I think). Throw those in a config file and
see if you get any data back.
I just threw this together... it will need some changes. For instance, the
options here are for a gauge, so you will get a chart that shows total
numbers of errors. Take that out and you'll get errors/second instead (I
think). You'll also need to play with the legend to get it to look right.
Use the other config files for examples of that. ALSO, notice I added a .1
to the end of the OID. That's the number of the interface. Change that to
the correct number for the port you are monitoring. BUT, know that not all
devices number their ports as simply as 1, 2, 3, etc... use configmaker to
make a basic config for your device and find the port numbers. (for
instance, I have one device with a port number of 62849, with target that
looks like this: Target[192.168.1.1_62849]: 62849:public at 192.168.1.1: )
Your mileage may vary. Not a seasoned vet with MRTG yet, so some of my
advice may be off a little, but I think it will point you in the right
direction.
MaxBytes[192.168.1.1_errors]: 1000000
Options[192.168.1.1_errors]: growright, gauge, nopercent
Title[192.168.1.1_errors]: Errors
Target[192.168.1.1_errors]:
1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public at 192.168.1.1
Hope this helps.
Eric
-----Original Message-----
From: Ullampuzha Mana, Divakaran (GEAE, GTS India)
[mailto:Divakaran.UllampuzhaMana at ae.ge.com]
Sent: Tuesday, July 30, 2002 6:40 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Scripts for graphing broadcasts , crc errors etc on a
switch
Hi,
I am a newbie to mrtg and am not much familiar with perl.
Can anyone help me out in finding some scripts which will graph the
broadcasts , crc errors etc for an interface on a switch ?
regards
Divakaran
--
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
--
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