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
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?
- 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?

Comment