https://github.com/andriy-bilynskyy/con-check
Internet connection checker
https://github.com/andriy-bilynskyy/con-check
checker internet-connection ip linux ping script
Last synced: 3 months ago
JSON representation
Internet connection checker
- Host: GitHub
- URL: https://github.com/andriy-bilynskyy/con-check
- Owner: andriy-bilynskyy
- License: gpl-3.0
- Created: 2018-10-02T17:56:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T14:39:37.000Z (over 7 years ago)
- Last Synced: 2025-01-18T11:22:28.001Z (over 1 year ago)
- Topics: checker, internet-connection, ip, linux, ping, script
- Language: C++
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Check internet connection on a specific interface
This part of software provides checking of internet connection on a specific interface.
The porpouse of using is to up/down redundant internet connection if main is lost/established.
##### Get project
repo int -u https://github.com/andriy-bilynskyy/con-check-repo.git
repo sync -c
#### Compile executable
necessarily libraries:
- liboping-dev
- libconfuse-dev
from project root folder
mkdir build
cd build
cmake ..
make
sudo make install
#### Using
edit configuration file /etc/con-check/con-check.conf
edit connection establish script. default path: /etc/con-check/online.sh
edit connection lost script. default path: /etc/con-check/offline.sh
#### Service insatallation
sudo cp service/con-check_serv /etc/init.d/
sudo update-rc.d con-check_serv defaults
#### Service usage
sudo /etc/init.d/con-check_serv status
sudo /etc/init.d/con-check_serv start
sudo /etc/init.d/con-check_serv stop
sudo /etc/init.d/con-check_serv restart