switch GS1920-24 snmp with ZABBIX: port current bandwidth usage

mimoune Posts: 3
Hello everyone,
i am looking to monitor the current bandwidth usage on the GS1920-24 switch with Zabbix.

i have managed to get ifOutOctet & ifInOctet wich is an increasing sawtooth value ( when value reaches a max, value goes back to 0 and increases again ). I have managed to get the delta with the substraction of previous value, ex:
delta(ZyxelGS1920-24_V4:ifOutOctets.28, 10s)

, but once IfOutOctet gets back to 0, delta outputs a wrong value because previous value is greater than current value.
Please see picture where delta is yellow diagram and ifOutOctet is red diagram:

there is obviously something i have missed, or
is there any other way i can get current bandwidth value ?

Any help would be greatly appreciated
Many thanks in advance

Accepted Solution

  • Zyxel_Adam
    Zyxel_Adam Posts: 242  Zyxel Employee
    Answer ✓
    Hi @mimoune

    Welcome to Zyxel Community.

    Seems like you are using 32bit mib file to polling OID, so it causes display issue.
    Please use the following OID to polling again and see if the result is expected to you.

    Hope it helps

All Replies

  • mimoune
    mimoune Posts: 3
    Dear Adam

    Sorry to answer so late.
    Many thanks for your answer.

    $ snmpwalk <Zyxel_GS1920-24_IP> -v 2c -c <My_Community> | grep HCInOctet
    IF-MIB::ifHCInOctets.1 = Counter64: 77531376

    $ snmpget -v 2c -c <My_Community> -On <Zyxel_GS1920-24_IP> ifHCInOctets.1
    . = Counter64: 77532889

    i used this OID as a new itm to get bandwidth but i still have the same sawtooth graph.

    Best regards
  • Zyxel_Adam
    Zyxel_Adam Posts: 242  Zyxel Employee
    edited August 2021

    Could you please provide us both the graph of delta and ifInOctet here and mouse hover to the peak of sawtooth graph to see the counter number?

    If ifInOctet or ifOutOctet graph is normal but delta still has issue, it is more likely related to delta vaule itself.
    You may refer to Zabbix fourm to search related post.

  • mimoune
    mimoune Posts: 3
    Sorry my bad.
    i tought ifHCOutOctet was a ready to use bandwidth metric.
    after redoing the calculus and doing some data transfer, it seems that bm metric is correct.

    the formula is : delta(ZyxelGS1920-24_V4:ifHCOutOctets.28, 1m)/60

    Many thanks for your informations and patience
    Best regards