install.sh
This commit is contained in:
+22
-22
@@ -1,22 +1,22 @@
|
||||
#! /bin/sh
|
||||
apt-get install python conntrack net-utils
|
||||
|
||||
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
|
||||
|
||||
cp systemd/check_providers.service /lib/systemd/system/check_providers.service
|
||||
cp sample/check-providers.ini /etc/check-providers.ini
|
||||
|
||||
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 check_providers monitor
|
||||
echo starts:
|
||||
echo systemctl start check_providers
|
||||
|
||||
#! /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 -sb /opt/check_providers/check_providers.py /usr/local/bin/check_providers
|
||||
|
||||
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 check_providers monitor
|
||||
echo starts:
|
||||
echo systemctl start check_providers
|
||||
|
||||
+25
-16
@@ -1,16 +1,25 @@
|
||||
[ADSL]
|
||||
device=eth0
|
||||
target_ip=185.16.48.54
|
||||
gateway=192.168.149.254
|
||||
led=2
|
||||
openvpn_master=1
|
||||
|
||||
[GSM]
|
||||
device=ppp3g
|
||||
target_ip=185.16.48.55
|
||||
max_loss=40
|
||||
max_rtt=2000
|
||||
ping_count=20
|
||||
led=3
|
||||
fallback=1
|
||||
|
||||
[ADSL1]
|
||||
device=adsl
|
||||
target_ip=185.16.48.54
|
||||
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
|
||||
max_loss=40
|
||||
max_rtt=2000
|
||||
ping_count=20
|
||||
led=3
|
||||
fallback=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user