Thank you Eric, so if I put together what you suggest together with what Philippe presented then I get the following

check process pppd with pidfile /var/run/ppp0.pid
start program = "/usr/bin/pon dsl-provider"
stop  program = "/usr/bin/poff dsl-provider"
if failed host www.google.com port 80 protocol http and request "/" for 2 cycles
    then exec "/usr/bin/killall pppd"


Is that right or would this just kill a stalled program? What I am asking is would it then start again? (sorry to be so basic but I am on a learning curve here)



On 04/28/2010 10:38 PM, Eric Pailleau wrote:
    if failed icmp type echo count 5 with timeout 30 seconds
        then exec "/bin/rm -f /var/run/ppp0.pid"

(if deleting of pid file is sufficient to let the pppd daemon suiciding...
if not, prefere a "/usr/bin/killall pppd" )
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to