[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openvpn backup location using monit

From: Bojan Sukalo
Subject: Re: openvpn backup location using monit
Date: Sun, 11 Nov 2012 08:04:27 -0800 (PST)

Sorry for bumping this. If this has been answered some time ever before, please do not hesitate to direct me to link or docs.

I've found a clumsy way for doing this by checking the first location and writing the result to file ("echo 1 > ./test.txt")
After doing this I'm able to check the file and to check location number two. Maybe it's clumsy but I presume it will do the job. I have not tested it yet.


From: Bojan Sukalo <address@hidden>
To: "address@hidden" <address@hidden>
Sent: Thursday, November 8, 2012 1:54 AM
Subject: openvpn backup location using monit


I'm trying to figure out is there a way to do this with monit.

check a.b.c.d with icmp echo
if it's not alive
check x.y.z.d with icmp echo
if it's alive
exec /etc/init.d/openvpn

Basically, this should be a check of primary openvpn server. If it's ok, leave it be and do nothing. On the other hand, if check to primary fails, check something on the internet to see if internet link is down on backup location. If that's not true, start openvpn.

So if [ (a.b.c.d is not alive) and (x.y.z.d is alive)] start openvpn.

Thank you all


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]