Ad Widget

Collapse

How to SUM Interface Traffic over a period ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Petipotame
    Junior Member
    • Nov 2022
    • 1

    #1

    How to SUM Interface Traffic over a period ?

    Hi Zaabbix Forum,
    i post my first topic regarding a calculated item i would like to create, but i can't find the right syntax or method to do it.
    I explain what i want to do :
    On my router interface (mikrotik) i want to sum up data trafic values over a period
    i uset this formula sum(//net.if.in[ifHCInOctets.1],1h)+sum(//net.if.out[ifHCOutOctets.1],1h)
    i get values increasing but also going down, things i don't expect.
    i think to read & store one first value, and then a the next update, to add the new value to the stored value and so on

    The final goal is to know how many bytes have been used (recorded) on a specific LTE interface, in order to know with the credit amount (10 GB, 20 GB and so..) is going to be over, and the link will go down

    thank you all for your attention, hope you can help me.
    if this subject/topic exists already, please show me.

Working...