Update powerwall.sh
This commit is contained in:
@@ -746,7 +746,7 @@ DOWNLIST(){
|
|||||||
|
|
||||||
if [ "${DOWNLIST}" != "" ]; then
|
if [ "${DOWNLIST}" != "" ]; then
|
||||||
[ "${1}" == "report" ] && dlen=100 || dlen=110
|
[ "${1}" == "report" ] && dlen=100 || dlen=110
|
||||||
echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Current List of Sensors/Devices Down...${idsCL[Default]}"
|
||||||
DIVIDER false yellow ${dlen}
|
DIVIDER false yellow ${dlen}
|
||||||
if [ "${1}" == "report" ]; then
|
if [ "${1}" == "report" ]; then
|
||||||
echo -e "${idsCL[Yellow]}[Type] [Host/Service/Docker Name] [Host] [Down_Time]${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}[Type] [Host/Service/Docker Name] [Host] [Down_Time]${idsCL[Default]}"
|
||||||
@@ -761,14 +761,16 @@ DOWNLIST(){
|
|||||||
ditem=${downitem##*/}; ditem=${ditem//.down}
|
ditem=${downitem##*/}; ditem=${ditem//.down}
|
||||||
if [ "${PW_SENSOR_TYPE[${ditem}]}" == "esxi" ]; then
|
if [ "${PW_SENSOR_TYPE[${ditem}]}" == "esxi" ]; then
|
||||||
itemname=${ditem}
|
itemname=${ditem}
|
||||||
itemtype=ESXi HOST
|
itemtype="ESXi HOST"
|
||||||
|
itemaddr=${PW_HOST_ADDRESSES[${ditem}]}
|
||||||
elif [ "${PW_SENSOR_TYPE[${ditem}]}" == "system" ] || [ "${PW_SENSOR_TYPE[${ditem}]}" == "cpu" ] || [ "${PW_SENSOR_TYPE[${ditem}]}" == "remotesystem" ]; then
|
elif [ "${PW_SENSOR_TYPE[${ditem}]}" == "system" ] || [ "${PW_SENSOR_TYPE[${ditem}]}" == "cpu" ] || [ "${PW_SENSOR_TYPE[${ditem}]}" == "remotesystem" ]; then
|
||||||
itemname=${ditem}
|
itemname=${ditem}
|
||||||
itemtype=DEVICE
|
itemtype=DEVICE
|
||||||
|
itemaddr=${PW_REMOTE_SENSORS[${ditem}]}
|
||||||
else
|
else
|
||||||
itemname=${ditem}
|
itemname=${ditem}
|
||||||
itemtype=SENSOR
|
itemtype=SENSOR
|
||||||
|
itemaddr=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ${PW_TMPFOLDER}/${ditem}-error.reading ]; then
|
if [ -f ${PW_TMPFOLDER}/${ditem}-error.reading ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user