Topic: How to monitor and log if a host is alive
This is my 1st message here, i'm new to OpenWRT.
I have some knowledge in networking but more or less nothing in linux.
I have Openwrt on a PC, to run Overthebox product from OVH.
Overthebox gives me the way to aggregate WAN connection (adsl, 4G) to get redundancy and to increase my bandwidth.
My WAN routers are the box provided by the ISP and an USB dongle for 4G connectivity.
As i have a lot of problems with my ISP, i would like to monitor and log the link failures.
My idea is to send a ping (interval to determine, around 5 seconds) to the WAN IP interface of the box.
If the IP is dead => write the date and time in a log file
When the IP is back alive => write date and time
2 questions :
-is it the wrong way to monitor and log these failures ?
-how to implement it ?
Thanks a lot