Pretty much copypaste from the manual, what problem did you have?
check process openvpn with pidfile /var/run/openvpn/openvpn.pid
start program = "/etc/init.d/openvpn start"
stop program = "/etc/init.d/openvpn stop"
if failed host x.x.x.x port xxxx type udp then restart
group net
depends openvpn_init
depends openvpn_bin
check file openvpn_init with path /etc/init.d/openvpn
group net
check file openvpn_bin with path /usr/sbin/openvpn
group net
The host is the server's, where it listens for client connections. Works for me.
One could also monitor hosts on the other side of the vpn, though that's
probably not such a good idea.
Regards,
Aleksander Kamenik
System Administrator
Krediidiinfo AS
an Experian Company
Phone: +372 665 9649
Email: [email protected]
> -----Original Message-----
> From: monit-general-
> [email protected] [mailto:monit-
> [email protected]] On
> Behalf Of Nick Upson
> Sent: Friday, March 25, 2011 6:01 PM
> To: This is the general mailing list for monit
> Subject: openvpn config
>
> Hi,
>
> does anyone have a monit configuration for monitoring openvpn that
> they can share, preferable via UDP
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general