[UPDATE] - add muli server

This commit is contained in:
2022-03-16 13:09:36 +00:00
parent 5bbbed29e2
commit 5ad25fb23d
4 changed files with 23 additions and 20 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ PrintRes() {
PrintWeb() {
if [ ! -f /tmp/webmonithor ]
if [[ ! -f /tmp/webmonithor ]] || [[ "$1" == "START_TRATS" ]]
then
echo '
<html>
@@ -43,12 +43,14 @@ PrintWeb() {
Txt=$(echo $1 | cut -d"|" -f2)
Sonde=$2
Arg=$3
Remote=$4
Color=red
[[ $Val == "0" ]] && Color=green
[[ $Val == "1" ]] && Color=yellow
echo '
<tr>
<td>'$Remote'</td>
<td>'$Sonde'</td>
<td>'$Arg'</td>
<td style="background-color:'${Color}';" > '$Val' </td>