Skip to main content

rmon how-to



naloji mi se da configuriram rmon notificationi koeto ne e neshto osobeno,
vpechetliawashto beshe towa che sled kato razpitah se okaza che dosta malko
internet service provideri polzwat kakwata i da e forma na notification,
(izkliuchwam grafikite koito chertaiat za natowarwaneto na linkovete), ta
jelanieto mi beshe da napravia sistema (bazirana na niakakuw otvren code
kato razledah nagios/jffnms/opennms i dr) koiato da razpoznawa specifichni mibs
i da generira email/sms's kum grupa ot hora, za jalost ne mojah da nakaram scriptovete
koito biaha za tazi cel da rabotiat, kakto i da e, napisal sum na niakolko reda
v primer kak da se polzwa rmon i kak da nabliudawame skorosta na daden interface
na Cisco Device.



------------------------------------------------------------------------------------------------------------------------------------
MIB's that I'm using are private (they're working only on cisco devices)

1.3.6.1.4.1.9.2.2.1.1.8.ifindiex for Outgoing
1.3.6.1.4.1.9.2.2.1.1.6.ifindex for Incoming
-------------------------------------------------------------------------------------------------------------------------------------

First,we need to find out what is the ID of interface's that we want to monitored , that's can happen with snmpwalk command - there is an example
(for it I'm using core1a and interface Gi2/12)

root# snmpwalk -Os -c -v 1 core1a | grep 2/12 "use grep to match wanted interface id"
ifDescr.60 = STRING: GigabitEthernet2/12 "there it is, ifDescr.60"

lets see what is the speed of Gig2/12 on incoming direction:


snmpwalk -Os -On -c -v 1 85.91.0.5 1.3.6.1.4.1.9.2.2.1.1.6.60
.1.3.6.1.4.1.9.2.2.1.1.6.60 = INTEGER: 1055000

show inter gi2/12
GigabitEthernet2/12 is up, line protocol is up (connected)
....
10 minute input rate 1031000 bits/sec, 705 packets/sec
10 minute output rate 176000 bits/sec, 216 packets/sec
...

We add interface ID in the end of community string, just like as in the example:

1.3.6.1.4.1.9.2.2.1.1.6 <- show me incoming traffic then we add .60 [which is interface ID] 1.3.6.1.4.1.9.2.2.1.1.6.60 <- and it's became [show me incoming traffic on Gi2/12] Next Step is to create rmon configurations on the Router or Switch which is very simple: rmon event 1 trap nick description "ifInOctets Rising to Maximum" owner nick rmon alarm 1 lifEntry.6.60 60 absolute rising-threshold 650000 1 falling-threshold 620000 1 owner nick that said's, if rising-threshold reach 650Kbit/s generate trap to snmp-server/s, which is described as event 1 - it's not necessary to make alot of events u can make just few for all situations and using their ID's, falling-threshold is the normal threshold, the digit after lifEntry.6.60 [60] is how often to make check if rmon face the condition that we describe, the router will generate log just like this: Aug 20 10:49:23.110: %RMON-5-RISINGTRAP: Rising trap is generated because the value of lifEntry.6.60 exceeded the rising-threshold value 650000 Usefull links http://www.tldp.org/linuxfocus/English/January1998/article21.html [SNMPwalk] http://www.cisco.com/en/US/tech/tk961/technologies_tech_note09186a0080094478.shtml [RMON]

Popular posts from this blog

Juniper IS-IS summary

##################################################################################################### ## ISIS ##################################################################################################### # Be sure to set family iso on the interface to be placed into ISIS set interfaces <interface> family iso # By default Junos places interfaces as L1/L2 # Default route leaking:         L1 to L2 - all internal routes         L2 to L1 - 0/0 route # L1/L2 will send the attached-bit down to L1 and it will act as a NSSA-like area.  When the L1 interface # receives the attached-bit it will inject a 0/0 route into the RIB point to the L1/L2 interface. # To disable the attached bit use: set protocols isis ignore-attached-bit # Be careful with the "interface all" command, as it may have some unexpected consequences such as trying # to establish a neighbor on your fxp0 management interface.  Use explicit interfac

Beijing - China

I am not sure how to describe Beijing China, maybe everyone who goes their simply use the world 'Amazing' because it will be nearly impossible to describe it. I had a personal driver and tour guide which significantly simplify my trip around.  Of course, it was a business trip and I didn't have as much time as I needed to see everything from Beijing but I will try to share couple of pictures and some of my impressions. I will start with the food.  I remember when I was younger there was so many Chines restaurants in the neighbourhood and I could eat Chines food everyday, and at every time - my parents were joking that I will became a Chines if I continue to eat only Chines, but it was so good and I didn't care ;-)  In Beijing I tried so many different things and I am amazed by the quality of the food, and most amazingly I didn't have any problems with my stomach - which was a good sign ;-) . I uploaded few photos from my album, which are from different places I

So, You Want To Be a CCIE?, Part 2

Prepare yourself for "game day" of the CCIE exams in this second part of a two-part primer on Cisco's highest-level cert by the columnist of TCP Q&A. by Scott Morris July 2005 — Editor's note: To read part one of this two-part series, go here . There’s never any point in time when you will truly know everything. Similarly, there’s never any point in time when the exam will be as bad as you may think it is until you try it! So you can spend years and years “studying” for the CCIE written exam and never think you know enough to take it. But you won’t know until you try. And you may also surprise yourself along the way: You probably know more than you give yourself credit for. (Either that or you’re really lucky!) --------------------------------------------------------- http://tcpmag.com/features/article.asp?EditorialsID=91 ---------------------------------------------------------