Ad Widget

Collapse

How to calculate 1 hour bandwidth traffic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skyboy
    Junior Member
    • Aug 2021
    • 4

    #1

    How to calculate 1 hour bandwidth traffic

    I want to calculate my server hourly network traffic, so I create a calclulted item "sum(//net.if.in["enp4s0"],1h)+sum(//net.if.out["enp4s0"],1h)"

    But the data was obviously wrong. I also tried sum(//net.if.total["enp4s0",1h]), didn't work either.

    There was an old topic about the same demand, it used "last("net.if.in[{$IF1},bytes]")-last("net.if.in[{$IF1},bytes]",,1h)", but this can't be used in 5.4.

    Anyone can help?
  • Leandro Goethals
    Junior Member
    • Mar 2021
    • 5

    #2
    what i did is created an item that did last(in) + last(out) and then in the new zabbix graphs u can aggregate in that graph, BUT because my time starts at 00:00 wich is actually the day before my graph is always a day behind but it's correct as long that my data interval is small(snmp pull every 1s did it for me).
    If ur intervals are to big and u take the average u would be too low or way to high.
    Let me know if u found something for the delay ok

    Comment

    Working...