Ad Widget

Collapse

How to delay an action?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #1

    How to delay an action?

    I have an action that runs a remote command and depends on 3 triggers.

    I want to delay the action for 5 minutes, if during this period trigger becomes false (OK), don't run the remote command, but if trigger remains true (PROBLEM), run the remote command.

    I don't want to affect the rest of actions by modifying Server configuration file, parameter SenderFrequency.

    Also I wouldn't like to affect other actions that depend on the same triggers by modifying triggers' expressions.

    Escalations will retard the execution of the command, but if during the delay period if trigger becomes false (OK), will the action be executed? or just aborted?. If it's aborted then it will work for what I want.

    How can I do this?.
    Last edited by bashman; 14-05-2010, 09:43.
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #2
    Yes.

    You have 2 solutions:
    1. Define an action with escalation and configure action in a step that starts with a 10 mins delay.

    2. Modify your trigger definition so that it will become true only if its condtions are valid during 10 mins.

    Regards,
    Alixen
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

    Comment

    • bashman
      Senior Member
      • Dec 2009
      • 432

      #3
      What I want is, if during the delay period (5 minutes) the trigger becomes false, not to run the remote command.
      Last edited by bashman; 14-05-2010, 09:44.
      978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

      Comment

      • bashman
        Senior Member
        • Dec 2009
        • 432

        #4
        I think I can use escalations, I understand that escalations check if the trigger is still true (PROBLEM) in each step, so If triggers becomes false (OK) before 5 minutes (before the step that runs the remote command) the action will be aborted and no command will be executed.
        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

        Comment

        Working...