Ad Widget

Collapse

Trigger question: How to trigger on how old an timestamp-item is.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lauerdk
    Junior Member
    • Oct 2008
    • 6

    #1

    Trigger question: How to trigger on how old an timestamp-item is.

    So, I have an item in a windowsserver, which checks when a directory on the server is modified.
    The result is stored as an timestamp (unix epoch), and I want to make a trigger which tells me if the timestamp is older than 24 hours.

    In the documentation says something about now()-function, but I can't see how to use it in this case.

    Can someone in here help me?
    Last edited by lauerdk; 15-10-2009, 10:24. Reason: Solved
  • lauerdk
    Junior Member
    • Oct 2008
    • 6

    #2
    Solved

    I just created a trigger which look on the delta the last x-secounds.

    This should no return 0, and if it does, the trigger should be activated.

    Like this, where the file should be updated every 8 hours (60*60*8 = 28800)

    Code:
    {host:vfs.file.time[c:/important/file, modify].delta(28800)}=0

    Comment

    • xibbaz
      Member
      Zabbix Certified Specialist
      • Jun 2009
      • 74

      #3
      And how about a file that should change exactly at a specified time?

      In other words, how to trigger an alarm at a specific time in the day and check the file has NOT been modified?

      Comment

      • ILIV
        Junior Member
        • Oct 2012
        • 28

        #4
        Originally posted by xibbaz
        And how about a file that should change exactly at a specified time?

        In other words, how to trigger an alarm at a specific time in the day and check the file has NOT been modified?
        Use diff() function and custom update interval.

        Comment

        Working...