Updated vhost1.usr and vhost2.usr (added zfelleg to heartbeat recipients).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Mon, 29 Mar 2021 11:53:14 +0000 (13:53 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Mon, 29 Mar 2021 11:53:14 +0000 (13:53 +0200)
sources/vhost1.usr/root/temperature.cfg
sources/vhost1.usr/root/temperature.sh
sources/vhost2.usr/root/temperature.cfg
sources/vhost2.usr/root/temperature.sh

index dc4ec0448d3ee294ee17fbf90f1d71c91915efad..3742506b5a8260fae3ee97b8b80ae720a7f0b9ce 100644 (file)
@@ -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
index 6608eab526f395e24419c2680e26f2d55b432144..e0fa5f203045b5455eb3d63c2e173ef68fff25e1 100755 (executable)
@@ -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 ]
index dc4ec0448d3ee294ee17fbf90f1d71c91915efad..3742506b5a8260fae3ee97b8b80ae720a7f0b9ce 100644 (file)
@@ -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
index 6608eab526f395e24419c2680e26f2d55b432144..e0fa5f203045b5455eb3d63c2e173ef68fff25e1 100755 (executable)
@@ -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 ]