## check pppd is running
#
check process pppd with pidfile "/var/run/pppd.pid"
start program = "/opt/unb/bin/pppd.sh start"
stop  program = "/opt/unb/bin/pppd.sh stop"

## check cs can be reached
#
check host cs_host with address 10.x.y.z
every 5 cycles
if failed icmp type echo count 10 with timeout 10 seconds
then exec "/bin/bash -c '/opt/unb/bin/monit.sh restart pppd'"
depends on pppd


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to