Skip to content

Instantly share code, notes, and snippets.

@ANemcov
Forked from mikluko/etc_monit_conf.d_local
Created December 19, 2015 09:23
Show Gist options
  • Save ANemcov/e7ac70eb70d012e5410c to your computer and use it in GitHub Desktop.
Save ANemcov/e7ac70eb70d012e5410c 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