Ad Widget

Collapse

set bandwidth usage trigger on interface ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keithnolan
    Junior Member
    • Jan 2021
    • 1

    #1

    set bandwidth usage trigger on interface ?

    Hi,
    i wanted to set bandwidth usage trigger of my router's interface.so i added a trigger to router like : {UTM-test:net.if.in[ifInOctets.4].avg(1)}>6 ( to set trigger if bandwidth goes upper than 6 Mbps) and my mistake is that item that collects data about bandwidth does some preprocessing like ' change per second' and ' custom multiplier = 8 ' .
    so i realized actual data is something like 2158015405 .
    so do you have any suggestion ?
    any help will be appreciated.
  • NilsA
    Senior Member
    • Sep 2020
    • 102

    #2
    I'm guessing you're using a pre configured SNMP template for this? My advice: learn how to use SNMP and always build your own templates so you always know what's happening in them.
    If it is SNMP, then chances are the number you are receiving is ifInOctets or ifOutOctets, which counts the combined amount of all Bytes sent over the interface in question.
    you just need to figure out what number you want to see in your data and from that make a trigger: let's say you use preprocessing to turn your bits into Mbits. Then you could use the trigger you posted.

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #3
      Look at factory Template Module Interfaces SNMPv2 to see how it might be done. You can set the throughput percentage threshold with the macro {$IF_UTIL_MAX}. Unfortunately that threshold would apply to every discovered interface on that device, which may not be what you want.

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 565

        #4
        Actually, this is more useful than I had feared. Once this template has discovered the interfaces, you can override the trigger per interface. Let's say your interface is called te2/2/10, add a new macro to the host called
        {$IF_UTIL_MAX:"te2/2/10"}
        and set the threshold to what you want. Et voila, you have a specific threshold for that one interface.

        Comment

        Working...