FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

13366 questions

15892 answers

25713 comments

50437 members

0 votes
64 views 0 comments
by
Hello,

in a network we have a RUTXR1 and monitoring for failover by router und offline by RMS, working really fine.

Now we have trouble with some PBX-DECT-Bases, is it possible to ping them continously and get an information if ping would not be answered?

Regards, Dirk

1 Answer

0 votes
by

Hello,

Depending on how you want information to be forwarded, your go to solution would be some custom script, as there is no direct way to realize this via WebUI. 

It could be achieved by placing the script in /etc/rc.local file or in a System -> Custom scripts section in web interface. 

An pseudo example of a script is below:

#!/bin/ash
while [ 1 ]; do
 sleep 5
 ping <Some_IP> -s 0 -c 3 -q >/dev/null
 ret=$?
 if [ $ret -ne 0 ]; then
 //If pings fail, send SMS
 gsmctl -s -S, "<Number> <SMS_Text>"
 fi
done

Best regards,