From 471af3a747b366d9894e5fbfb3c6d9619ff63929 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Mon, 29 Mar 2021 13:53:14 +0200 Subject: [PATCH] Updated vhost1.usr and vhost2.usr (added zfelleg to heartbeat recipients). --- sources/vhost1.usr/root/temperature.cfg | 6 +++--- sources/vhost1.usr/root/temperature.sh | 6 ++++++ sources/vhost2.usr/root/temperature.cfg | 6 +++--- sources/vhost2.usr/root/temperature.sh | 6 ++++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/sources/vhost1.usr/root/temperature.cfg b/sources/vhost1.usr/root/temperature.cfg index dc4ec04..3742506 100644 --- a/sources/vhost1.usr/root/temperature.cfg +++ b/sources/vhost1.usr/root/temperature.cfg @@ -4,9 +4,9 @@ MODEM_IP="192.168.8.1" PHONES=("+36209541513" "+36309502529" "+36309775888" "+36704581234") NUMBER_OF_PHONES=4 -# csgulyas fschnell rrendek mszabo -HEARTBEAT_PHONES=("+36303744065" "+36309502529" "+36309775888" "+36704581234") -NUMBER_OF_HEARTBEAT_PHONES=4 +# zfelleg csgulyas fschnell rrendek mszabo +HEARTBEAT_PHONES=("+36209541513" "+36303744065" "+36309502529" "+36309775888" "+36704581234") +NUMBER_OF_HEARTBEAT_PHONES=5 WARNING_THRESHOLD=25 ERROR_THRESHOLD=30 diff --git a/sources/vhost1.usr/root/temperature.sh b/sources/vhost1.usr/root/temperature.sh index 6608eab..e0fa5f2 100755 --- a/sources/vhost1.usr/root/temperature.sh +++ b/sources/vhost1.usr/root/temperature.sh @@ -272,6 +272,12 @@ then SEVERITY=3 fi +if [ "$1" == "heartbeat" ] +then + send_heartbeat_sms $MESSAGE_TYPE $TEMPERATURE + exit 0 +fi + log_temperature $MESSAGE_TYPE $TEMPERATURE if [ -f $SCRIPT_STOP ] diff --git a/sources/vhost2.usr/root/temperature.cfg b/sources/vhost2.usr/root/temperature.cfg index dc4ec04..3742506 100644 --- a/sources/vhost2.usr/root/temperature.cfg +++ b/sources/vhost2.usr/root/temperature.cfg @@ -4,9 +4,9 @@ MODEM_IP="192.168.8.1" PHONES=("+36209541513" "+36309502529" "+36309775888" "+36704581234") NUMBER_OF_PHONES=4 -# csgulyas fschnell rrendek mszabo -HEARTBEAT_PHONES=("+36303744065" "+36309502529" "+36309775888" "+36704581234") -NUMBER_OF_HEARTBEAT_PHONES=4 +# zfelleg csgulyas fschnell rrendek mszabo +HEARTBEAT_PHONES=("+36209541513" "+36303744065" "+36309502529" "+36309775888" "+36704581234") +NUMBER_OF_HEARTBEAT_PHONES=5 WARNING_THRESHOLD=25 ERROR_THRESHOLD=30 diff --git a/sources/vhost2.usr/root/temperature.sh b/sources/vhost2.usr/root/temperature.sh index 6608eab..e0fa5f2 100755 --- a/sources/vhost2.usr/root/temperature.sh +++ b/sources/vhost2.usr/root/temperature.sh @@ -272,6 +272,12 @@ then SEVERITY=3 fi +if [ "$1" == "heartbeat" ] +then + send_heartbeat_sms $MESSAGE_TYPE $TEMPERATURE + exit 0 +fi + log_temperature $MESSAGE_TYPE $TEMPERATURE if [ -f $SCRIPT_STOP ] -- 2.54.0