Ad Widget

Collapse

Is it possible to re-trigger actions just until a problem is solved?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matthias R
    Junior Member
    • Jul 2012
    • 19

    #1

    Is it possible to re-trigger actions just until a problem is solved?

    I use an Action to re-establish SSH tunnels to my remote hosts upon connection loss. There are Trigger elements, e.g. "SSH tunnel to ... has gone down" and Action elements with the two conditions
    • Maintenance status not in "maintenance" (AND)
    • Trigger name like "SSH tunnel to ... has gone down"

    If I set the Steps in Action Operation details to From = 1 and To = 1 the command is issued once; just as I expected.

    If the server is still not reachable it is not issued again, which would be nice in order to reconnect when the server becomes available again. Therefore I altered Action Operation details to From = 1 and To = 0 (infinitely). Now the command is executed every escalation period seconds, but also if the connection was re-established successfully and the Trigger has gone into OK state, every escalation period seconds another ssh process, in my case, is started.

    What is the best practice to re-do a command until the Trigger has gone into OK state, but no longer afterwards? I had the idea that the Action would have to auto-acknowledge the Event in order to get this to work, but I didn't come over a possibility to do configure it to do so.

    What do you think?
    Last edited by Matthias R; 02-08-2012, 09:22. Reason: Removed unnecessary empty line after list
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    You have to
    * add a condition Trigger value = "PROBLEM"
    * make sure "Recovery message" is unchecked.

    should work...

    Comment

    • Matthias R
      Junior Member
      • Jul 2012
      • 19

      #3
      Thanks! I think now I understand how it is intended to be used.
      I have changed that settings and will see.
      Thank you very much.

      Comment

      Working...