Ad Widget

Collapse

WAN Bandwidth utilization Trigger: Use ISP speed instead of physical interface speed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omar.cacciotti
    Junior Member
    • Jul 2021
    • 25

    #1

    WAN Bandwidth utilization Trigger: Use ISP speed instead of physical interface speed

    Dear all,

    I have some questions about trigger creation.
    All routers have 100M or 1000M interfaces (physical int) but their WAN bandwidth can be 2M or 10M or 20M (like ADSL).
    The standard high bandwidth utilization trigger is useful for LAN but not for WAN.

    Any router have more than 1 interface but just one of these is used as WAN interface.

    INTRO:

    Zabbix provides triggers related to HIGH BANDWIDTH UTILIZATION such as:

    {Template Module Interfaces SNMPv2:net.if.in[ifHCInOctets.{#SNMPINDEX}].avg(15m)}>({$IF_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces SNMPv2:net.if.speed[ifHighSpeed.{#SNMPINDEX}].last()}

    In this case Zabbix will:
    Consider average of "in packets" and then evaluate if IF_UTIL_MAX (95%) of the physical interface bandwidth (ifHighSpeed) is reached.

    QUESTION:

    How I can avoid to consider the physical interface capacity and set a custom "bandwidth limit"?
    The "worst solution I found" is to edit the macro at HOST level by lowering the IF_UTIL_MAX from 95 to X (considering the WAN interface speed) or creating WAN_UTIL_MAX macro and replace IF_UTIL_MAX.
    The "best solution I would reach" is to create a good mechanism similar to the existing one described in the INTRO.

    TEST:

    WAN_UTIL_MAX = 90 (new macro for WAN similar to IF_UTIL_MAX)
    WAN_BANDWIDTH_IN = ISP Bandwidth download limit (10M, 20M, 2M, etc)
    WAN_BANDWIDTH_OUT = ISP Bandwidth upload limit (2M, etc)

    WAN_INT_INDEX = X (Number of interface INDEX because one interface only for each router is used, es: 2)

    So I did:

    ({Template Module Interfaces SNMPv2:net.if.in[ifHCInOctets.{$WAN_INT_INDEX}].avg(15m)}>({$WAN_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces SNMPv2:{$WAN_BANDWIDTH_IN}]}

    This will consider the IN BANDWIDTH (download) only.

    GOAL:

    The goal I would reach is the equivalent of the INTRO trigger case, but with customized max bandwidth (for IN and OUT bits). The trigger have to fire when 90% of the {$WAN_BANDWIDTH_IN} and {$WAN_BANDWIDTH_OUT} is reached.

    Any help would be appreciated!
    Thank you in advance

    OC

    Last edited by omar.cacciotti; 08-06-2022, 14:15.
Working...