Ad Widget

Collapse

set bandwidth usage trigger on interface ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leo-21
    Junior Member
    • Sep 2020
    • 7

    #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.
  • leo-21
    Junior Member
    • Sep 2020
    • 7

    #2
    nothing useful?
    any help?

    Comment

    • bog
      Junior Member
      • Oct 2020
      • 7

      #3
      Hi,

      I'm also trying to create a trigger for traffic. If incoming and outgoing traffic drops to 10% or below than usual (last received value), trigger an alarm. Plus a recovery expression, when is back to normal.
      But I could not make it work because I'm not good with scripts.

      I know that what I tried is stupid but I tried my luck anyway.

      {R1Core-NAT:net.if.in[ifHCInOctets.{#SNMPINDEX}].last()}<=10%
      {R1Core-NAT:net.if.out[ifHCOutOctets.{#SNMPINDEX}].last()}<=10%

      Comment

      • leo-21
        Junior Member
        • Sep 2020
        • 7

        #4
        Hello my friend...

        after not getting answer from forum i did some self-test and got the answer
        so here what i did :
        it seems Template Module Interfaces Simple SNMPv2 have some trigger to set trigger on some level, like 95%.
        so i changed it .
        i changed UTIL.MAX in macro to 1.6 (Percentage) means 16 Mbps (because my link speed is 1000 Mbps.
        let me know your experience

        ({UTM -Template Module Interfaces Simple SNMPv2:net.if.in[ifInOctets.{#SNMPINDEX}].avg(1m)}>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*{UTM -Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()} or
        {UTM -Template Module Interfaces Simple SNMPv2:net.if.out[ifOutOctets.{#SNMPINDEX}].avg(1m)}>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*{UTM -Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}) and
        {UTM -Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}>0

        Comment

        • allanza
          Junior Member
          • May 2021
          • 11

          #5
          Hello,

          I'm also trying to create trigger to add to my Junos template, how did you change the macro? Does this trigger get all interfaces?

          Tks

          Comment

          • gonzalezcantarell
            Junior Member
            • Aug 2024
            • 5

            #6
            Hi everyone, I have a little problem with the triggers, actually works with Zabbix 6.4.15, use the templateFortigate by SNMP this template contain some trigger prototypes to use when an interface utilization is high by way of proof change the value macro to 50% at same time 10minute, sometimes the treshold exceeds but the trigger doesn´t works. Someone knows which the correct configuration to works correctly the trigger.

            Comment

            Working...