Ad Widget

Collapse

Trigger to compare two timestamps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schoeppi
    Member
    • Jan 2024
    • 31

    #1

    Trigger to compare two timestamps

    Hello,

    I have a item that contains a unix timestamp:

    Key: system.run[/opt/zabbix/scripts/zabbix-agent2-borg-backup-last-time.sh]
    Value: e.g. 1733396787

    Now I'd like to create a trigger that warns if the timestamp is older then one day.

    Everything I tried did not work, so I am out of ideas :-(.


    Can you help please and point me in the right direction?
  • schoeppi
    Member
    • Jan 2024
    • 31

    #2
    OK, got it after I found a older thread with a similar issue:

    now()-last(/host.example.com/system.run[/opt/zabbix/scripts/zabbix-agent2-borg-backup-last-time.sh])> 86400

    Comment

    Working...