Ad Widget

Collapse

Best trigger function to monitor scheduled task last run time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shlomia
    Member
    • Jul 2020
    • 38

    #1

    Best trigger function to monitor scheduled task last run time?

    Hi, So I'm monitoring a windows scheduled task by getting the latest value for "Last run time".
    I'm wondering what is the best trigger function to get a legit warning if the task didn't actually run.
    Sometimes the status of the task is "Success" and the "Next run time" is updating to the next scheduled time but the "Last run time" won't change ( Means the task is stuck ).
    So I need a trigger that will check if the "Last run time" is changed.. I guess?

    Thanks
  • shlomia
    Member
    • Jul 2020
    • 38

    #2
    bumpPpPpPpPp

    Comment

    • MBrunner
      Junior Member
      • Oct 2020
      • 16

      #3
      Have not tested it myself, maybe something like that?
      {host:item.last(0)}={host:item.last(0,3600)}
      'newest value is equal to value 1 hour ago'

      Change the time from 3600 seconds to your needs.

      Comment

      • shlomia
        Member
        • Jul 2020
        • 38

        #4
        Originally posted by MBrunner
        Have not tested it myself, maybe something like that?
        {host:item.last(0)}={host:item.last(0,3600)}
        'newest value is equal to value 1 hour ago'

        Change the time from 3600 seconds to your needs.
        I will try that, Thanks.
        Anyone else with a solution?

        Comment

        Working...