-
-
Save ANemcov/e7ac70eb70d012e5410c to your computer and use it in GitHub Desktop.
Monit config to monitor and keep alive ppp connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set mailserver localhost | |
set daemon 120 with start delay 240 | |
set logfile syslog facility log_daemon | |
set httpd port 2812 | |
allow localhost | |
set alert [email protected] | |
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