[UPDATE] - add muli server
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user