Usage: netmon [-t ] [-n ] [-l ] [-c ] [-p ] [-d] -t specify how many seconds to wait between two checks -n specify how many continous network failures we get until we reboot the system -l specify the log file -c the command line to be executed when network failure is detected -p test the network by pinging given host -d run as a daemon process Debugging: Declare macro `DEBUG` to enable debug level logging. This is enabled in CMake task by default.