update
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user