Ad Widget

Collapse

Store incremental metric

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • laredoeneko
    Junior Member
    • Apr 2020
    • 4

    #1

    Store incremental metric

    Hello,
    I am trying to store a metric from a server that when you check to the zabbix_agent return a integer value, but this value in incremental, I mean:
    • the value is 100,101,104,108....it is incremental, i.e imagine it as traffic accumulated,
    • and I want collect 0,1,4,8 only traffic generated betwen 2 values...
    I do not know if it is possible store the value as actualvalue-previous value and the use a normal graph
    or in the graph representation chose an option to display the value (raw value in database not accumulate) and display the value as result of actual value minus previuos value?

    thank you very much.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Use preprocessing for this data element


    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.
    If you mark the Custom on fail checkbox, the item will not become unsupported in case of failed preprocessing step and it is possible to specify custom error handling options: either to discard the value, set a specified value or set a specified error message.

    Comment

    • laredoeneko
      Junior Member
      • Apr 2020
      • 4

      #3
      jejjejej, thank you very much, works perfectly
      I really appreciated your help!!!!!

      Comment

      Working...