Skip to content

Instantly share code, notes, and snippets.

@mikluko
Created May 21, 2012 11:12
Show Gist options
  • Save mikluko/2761853 to your computer and use it in GitHub Desktop.
Save mikluko/2761853 to your computer and use it in GitHub Desktop.
Monit config to monitor and keep alive ppp connection
set mailserver localhost
set daemon 120 with start delay 240
set logfile syslog facility log_daemon
set httpd port 2812
allow localhost
set alert noreply@example.com
check host internet with address 80.254.111.254
if failed icmp type echo count 5 with timeout 30 seconds
then exec "/usr/bin/killall pppd"
check process pppd with pidfile /var/run/ppp0.pid
start program = "/usr/bin/pon dsl-provider"
stop program = "/usr/bin/poff dsl-provider"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment