01-04-2013 07:09 AM
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?
01-06-2013 02:35 PM
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.
04-02-2013 07:35 AM
The PRTG PAESSLER do that without burn the eyelashes in a code,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide