This commit is contained in:
2023-08-14 21:35:19 -05:00
parent 29cb93294e
commit 38feb58ede
2 changed files with 3 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ declare -A PW_REMOTE_SENSORS
PW_REMOTE_SENSORS['ServerRoomTH']='10.10.20.10'
PW_REMOTE_SENSORS['OctoPI-CPU']='10.10.1.80'
PW_SENSOR_ORD=(vMS-iDrac0 vMS-iDrac1 vMS-iDrac2 vMS-iDrac7 vMS-iDrac8 ServerRoomTH RaspberryPI-CPU OctoPI-CPU)
declare -A PW_SENSOR_ID
PW_SENSOR_ID['ServerRoomTH']='2'
PW_SENSOR_ID['RaspberryPI-CPU']='6'

View File

@@ -22,7 +22,7 @@ CHECKTEMP(){
echo -e "${idsCL[Cyan]}Sensor Temperature(s) Current / 3DayAVG ${idsCL[Green]}normal${idsCL[Default]} /${idsCL[Yellow]}warning${idsCL[Default]}/ ${idsCL[Red]}critical${idsCL[Default]}"
DIVIDER . yellow 90
for SENSOR in ${!PW_SENSOR_ID[@]}; do
for SENSOR in ${!PW_SENSOR_ORD[@]}; do
if [ "${1}" == "" ] || [[ "${SENSOR}" = *"${1}"* ]]; then
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "esxi" ]; then