Ad Widget

Collapse

Back-to-zero detection on counters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • troffasky
    Senior Member
    • Jul 2008
    • 587

    #1

    Back-to-zero detection on counters

    How is this handled? It does not seem to be an issue with SNMP counters when a firewall has rebooted, for example.
    Zabbix 7.0 monitoring Unifi switches with Unifi Network API.
    I am having a problem with traffic counters that are probably going back to zero when "something" occurs on the switch, perhaps a loss of connectivity with the controller.

    "tx_bytes": 2671104751379,
    "rx_bytes": 490292731426,
    "bytes": 3161397482805,

    This results in silly spikes of traffic in the graphs:
    Click image for larger version

Name:	ksnip_20260204-175837.png
Views:	39
Size:	29.9 KB
ID:	510868
    Item configuration:
    Click image for larger version

Name:	ksnip_20260204-180722.png
Views:	61
Size:	26.6 KB
ID:	510867


    Yeah, I can do an "in range" pre-proc step, but the threshold is un-knowable. I have gone all the way down to 4Gbps and still get spurious spikes anywhere from 500Mbps up.
    Unfortunately I have not been able to find any documentation for the API, their KB article says it is found in a location that does not exist.
    Attached Files
  • troffasky
    Senior Member
    • Jul 2008
    • 587

    #2
    I duplicated the item without the change-per-second step and can see this is the real issue:
    Click image for larger version

Name:	ksnip_20260205-083903.png
Views:	21
Size:	21.9 KB
ID:	510888
    I am guessing this is an issue with the API returning 0 randomly. So I will add my range check step before the simple-change and that should eliminate the spurious spikes.

    Comment

    Working...