Use python to write a simple test whether the survival of the host script, which is not suitable for online use, because network latency, packet loss can cause a false positive messages, then the judge three subsequent updates of ping nowhere and then send alarm messages, and enable multi-threaded deal with.
# Run directly
# python ping.py
Ping 192.168.18.10 successful.
Ping 192.168.18.11 successful.
Ping 192.168.18.12 successful.
Sleep 10s...