You can add something like : if failed host www.google.com port 80 protocol http and request "/" for 2 cycles then restart
Philippe Muller On Wed, Apr 28, 2010 at 5:17 PM, peter <[email protected]> wrote: > There is a lot of very good documentation for Monit but it is a bit over > my head. > > What I want to do is to use Monit to open the pppoe connection on my > server. When the connection fails (as happens during bad weather) then to > kill the process and start it off again. The following is what I can work > out but I am quite lost in knowing what to put in next. Can anyone help out > please? > > > check process pppd with pidfile /var/run/ppp0.pid > start program = "/usr/bin/pon dsl-provider" > stop program = "/usr/bin/poff dsl-provider" > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
