cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2602
Views
0
Helpful
2
Replies

Low bandwidth alert

duncanm
Level 1
Level 1

We get hit with indirect link failures that we have to rely on Cacti to show. Sadly, it can take our NOC guys hours to detect. I'm thinking a TCL script that watches ifHCInOctets (.1.3.6.1.2.1.31.1.1.1.6) and ifHCOutOctets (1.3.6.1.2.1.31.1.1.1.10) and if either hits 0 to send an alert. Is this doable? Or is there a better way?

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

I assume you mean if either of those OIDs do not increment for a specific period of time?  If so, then yes.  You can do this with an EEM applet:

event manager applet monitor-bandwidth

event tag e1 snmp oid 1.3.6.1.2.1.31.1.1.1.6.1 get-type exact entry-op eq entry-val 0 entry-type increment poll-interval 60

event tag e2 snmp oid 1.3.6.1.2.1.31.1.1.1.10.1 get-type exact entry-op eq entry-val 0 entry-type increment poll-interval 60

trigger

  correlate event e1 or event e2

action 1.0 syslog msg "Input or output octets was zero for the past 60 seconds for GigabitEthernet0/0"

This applet assumes GigabitEthernet0/0 has an ifIndex of 1.

The PRTG PAESSLER do that without burn the eyelashes in a code,

Review Cisco Networking for a $25 gift card