Ad Widget

Collapse

Treating a new custom script as a SNMP-like counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ithurtswhenidothis
    Junior Member
    • Nov 2020
    • 1

    #1

    Treating a new custom script as a SNMP-like counter

    Hi, I created a new script that is queryable through the Zabbix agent. It's intended to grow constantly. I would like Zabbix to record the delta from the previous read (like it would with an SNMP counter).

    So, if the data are:

    10

    25

    30

    57

    Zabbix should record

    10

    15

    5

    17

    I expected Zabbix to let me specify that this was a counter but I don't see a way to do that. Does anyone know what I'm missing?

    Thanks
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Pls read https://www.zabbix.com/documentation...fig/items/item
    search ITEM VALUE PREPROCESSING
    Simple change Calculate difference between the current and previous value.
    Evaluated as value-prev_value, where
    value - current value; prev_value - previously received value
    This setting can be useful to measure a constantly growing value. If the current value is smaller than the previous value, Zabbix discards that difference (stores nothing) and waits for another value.
    Only one change operation per item is allowed.

    Comment

    Working...