configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 31  →  ?path2? @ 32
/monit/macOS/templates/openvpn
@@ -0,0 +1,18 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
# The file assumes the following configuration:
# * tap0 is the TAP interface.
# * 1.1.1.1 is the point-to-point VPN gateway.
 
check process openvpn with pidfile /usr/local/var/run/openvpn/tap0.pid
start program = "launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
stop program = "launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
check host tap0 with address 1.1.1.1
start program = "launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
stop program = "launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
if failed
icmp type echo count 5 with timeout 15 seconds
then restart