Ad Widget

Collapse

check if an item has been updated in the last 24 hours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fflux
    Member
    Zabbix Certified Specialist
    • Mar 2011
    • 34

    #1

    check if an item has been updated in the last 24 hours

    i'm trying to check if a backup is updating a value in the last 25 hours.

    the item is put in with zabbix_sender from a server in the backup script.

    i noticed that a trigger is only checked when the value has changed.

    so i made a dummy trigger that is updating every 30 sec, and in that trigger i want to check the other items date:
    {server1:agent.ping.last(0)}=1&
    {server1:backup.date(0)}#{server1:agent.ping.date( 0)}

    so now i can check if the .date of the last agent.ping not is the .date of my backup.

    the problem is that the backup is always a day old (as the backup starts in the evening)

    how can i check that agent.ping.date not is backup.date + 1?

    or am i going the wrong way?
  • fflux
    Member
    Zabbix Certified Specialist
    • Mar 2011
    • 34

    #2
    ppfff, right when i went to bed i found the solution

    {server1:backup.nodata(90000)}=1

    Comment

    Working...