On 2009-05-15 02:44, James Whittington wrote: > My other approach is to set up a check on the slave server to somehow > check for the existence of the reverse tunnel and restart the slave > service if it is detected as being down. > > I can do a process listing (from the slave to the master) and see ssh > sessions but I'm not sure how I would detect the existence of the > correct reverse ssh process?
Use netstat to look for the slave port which should be listening on the master. This is how the master communicates with the slave - down this tunnel. If you can't see it on the master then restart autossh on the slave - using the opsview-slave script for example. Let me know how you get on as I'm looking to implement something similar myself :-) _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/listinfo/opsview-users
