install.sh

This commit is contained in:
htouvet
2018-06-29 18:13:55 +02:00
parent 14e32dc2a1
commit 5d80305927
2 changed files with 47 additions and 38 deletions
+7 -7
View File
@@ -1,22 +1,22 @@
#! /bin/sh
apt-get install python conntrack net-utils
#! /bin/bash
apt-get install python python-iniparse conntrack net-tools arping
mkdir -p /usr/local/bin
mkdir -p /opt/check_providers
cp check_providers.py /opt/check_providers/check_providers.py
chmod +x /opt/check_providers/check_providers.py
ln -s /opt/check_providers/check_providers.py /usr/local/bin/check_providers
ln -sb /opt/check_providers/check_providers.py /usr/local/bin/check_providers
cp systemd/check_providers.service /lib/systemd/system/check_providers.service
cp sample/check-providers.ini /etc/check-providers.ini
cp -a systemd/check_providers.service /lib/systemd/system/check_providers.service
cp -a samples/check-providers.ini /etc/check-providers.ini
echo -------------------------------------
echo Please modify configuration in /etc/check-providers.ini
echo Then enable service with:
echo systemctl enable check_providers
echo Check with
echo check_providers check
echo monitor (ie check and enable/disable if necessary) with
echo monitor ie check and enable/disable if necessary with
echo check_providers monitor
echo starts:
echo systemctl start check_providers
+13 -4
View File
@@ -1,10 +1,19 @@
[ADSL]
device=eth0
[ADSL1]
device=adsl
target_ip=185.16.48.54
gateway=192.168.149.254
led=2
gateway=
[ADSL2]
device=enp0s3
target_ip=185.16.48.55
gateway=10.0.2.2
openvpn_master=1
[ADSL3]
device=enp0s9
target_ip=185.16.48.56
gateway=10.0.4.2
[GSM]
device=ppp3g
target_ip=185.16.48.55