Ad Widget

Collapse

Calculatet Item for networkinterface traffic on router

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sylvie
    Junior Member
    • Jan 2023
    • 2

    #1

    Calculatet Item for networkinterface traffic on router

    Hello,
    my name is Sylvie and I'm new with Zabbix.
    I have a problem with monitore the traffic of an interface on our wan-router (Cisco).
    I want to know the traffic in an out like I did it before with mrtg.
    I get the data per snmp for iso.3.6.1.2.1.2.2.1.10.1 ifinoctets and iso.3.6.1.2.1.2.2.1.16.1 ifoutoktets.
    I've created a calculated item like this "((last(//ifInOctets[1])-last(//ifInOctets[1],#2))/60)*8" to get the bits/s between 2 values.
    But the ifinoctets have a max value of 4294967296. So everytime, the max value is reached, the new value is smaller as the old value an the graph is goinig under NULL.
    How can I fix this? Does Zabbix accept IF ELSE so that I can check if the new value is smaler like this?
    IF new_value<old_value
    THEN (4294967296-old_value+new_value)/60*8
    ELSE (new_value-old_value)/60*8
    Lg Sylvie

    Click image for larger version

Name:	image.png
Views:	121
Size:	16.3 KB
ID:	458252
Working...