Ad Widget

Collapse

Comparison of values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lagethomas
    Junior Member
    • Aug 2021
    • 1

    #1

    Comparison of values

    Good Morning.
    I would like to know if it is possible to buy 2 values ​​to trigger a trigger, eg:
    I'm monitoring a printer that has ip172.x.x.x

    I want to check if this ip has been changed, if it has been me to be alerted.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    https://www.zabbix.com/documentation...ctions/history
    change (/host/key)
    The amount of difference between the previous and latest value. Supported value types: float, int, str, text, log

    For strings returns:
    0 - values are equal
    1 - values differ

    Example:
    change(/host/key)>10

    Numeric difference will be calculated, as seen with these incoming example values ('previous' and 'latest' value = difference):
    '1' and '5' = +4
    '3' and '1' = -2
    '0' and '-2.5' = -2.5

    Comment


    • lagethomas
      lagethomas commented
      Editing a comment
      Thanks, I'll take the test and see how you behave.
Working...