[arm-allstar] Fail over upon loss of internet

Benjamin Naber Benjamin at KB9LFZ.com
Mon Jul 23 22:15:13 EST 2018


Great suggestion David.

Fail2ban can also be made to monitor other types of files, and perform
actions based its search->match criteria outside of the author's
intended application. While it will take some tinkering around with to
get the method of operations in the desired order, it can be made to
work.

I have been playing around with fail2ban to watch logfiles and do
things based on what it finds. Of course, all intelligence with
fail2ban (or anything else for that matter) relies solely on the
operator's knowledge of operation fail2ban and more importantly,
regular expressions... to which my personal expressions are usually in
dismay.


I'd like to hear the story of how this task is ultimately completed.
While your task, Chris, sounds like it should be simple, the *idea* of
it, is. 

The implementation of monitoring and execution of tasks based on
'states of connections' is specialized to the likes of which requires
customization of software and hardware, and, getting those two realms
to play well together.



Benjamin, KB9LFZ






On Sun, 2018-07-22 at 17:46 -0400, 
> Chris,
> 
> I'm suspecting you are you wanting to send DTMF commands to another 
> controller??
> 
> You'll need a utility that always runs on each RPi, testing the 
> quality of the Internet connection. I use smokeping (pacman -S
> smokeping).
> 
> You can setup smokeping to perform certain actions, based on link 
> performance, etc. Note that you'll also want to configure smokeping
> to 
> place its event database over in /tmp or another tmpfs (RAM drive) 
> filesystem.
> 
> Sending DTMF with asterisk/app_rpt is the easy part, of course. Just 
> something like:  rpt cmd 1999 cop 48 1,2,3,A,4,5,6,B,7,8,9,C,*,0,#,D
> 
> 
> 73, David KB4FXC
> 
> 
> On Sun, 22 Jul 2018, "chris novara via arm-allstar" wrote:
> 
> > I’ve been asked to change our club repeater that has a noisy RF
> > link to Allstar as internet is available at our far end tower
> > site. 
> 
> But, a fail over auto option upon loss of internet is desired. 
> 
> Can I set up the Pi to send a DTMF command if the internet is lost
> for more then 30 mins? 
> 
> Then the reverse - when internet is restored for 30 mins, the Pi
> sends dtmf to tell the controller to switch back to the Allstar feed.
> 
> Since we are using the *73xxxx I know there is some issues with auto
> retry confusing the LED that Doug helped me
> With. Generally it works great though. 
> 
> Can this be done reliable? 
> 
> Thank you,
> 
> Chris Novara, AB7BS
> Eugene Oregon
> Cell: 541-778-1175
> 
> 
> _______________________________________________
> 
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> 
> _______________________________________________
> 
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2/3 web page - http://hamvoip.org


More information about the arm-allstar mailing list