FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
331 views 0 comments
by anonymous
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 anonymous

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,