From: Zoltán Felleg Date: Mon, 29 Mar 2021 11:53:14 +0000 (+0200) Subject: Updated vhost1.usr and vhost2.usr (added zfelleg to heartbeat recipients). X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=471af3a747b366d9894e5fbfb3c6d9619ff63929;p=user-lxc.git Updated vhost1.usr and vhost2.usr (added zfelleg to heartbeat recipients). --- 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 ]