Ad Widget

Collapse

Need Help Writing Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beturnbough
    Junior Member
    • Jan 2019
    • 12

    #1

    Need Help Writing Trigger

    I'm collecting a date/time and need to write a trigger to fulfill the following:

    Data must have been collected for at least 7 days
    If the date/time has not changed in those 7 days, then put the trigger into a problem state.

    The value (sample) is like the following:

    1563228520 The trigger (which doesnt work as intended) is as follows: {Symantec Endpoint Cloud:script.sh[{HOST.NAME}].last()}-{Symantec Endpoint Cloud:script.sh[{HOST.NAME}].last(,7d)}=0
    Can anyone please help me out?
Working...