diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 475c0553..a563586e 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -298,6 +298,7 @@ CHECKTEMP(){ if [ ${#vHOST_TEMPNAMES[@]} -gt 1 ]; then t=1 for sensorname in "${vHOST_TEMPNAMES[@]}"; do + echo $sensorname if [ "${TTYPE}" != "fans" ] || ([ "${TTYPE}" == "fans" ] && [[ "${sensorname}" = *"Exhaust"* ]]); then temp_warn=$(snmpwalk -v 1 -c public -t 2 ${vHOSTiDRACIP} .1.3.6.1.4.1.674.10892.5.4.700.20.1.11.1.${t} -O vq | sed -e 's/"//g') temp_warn=`echo "scale=1; ${temp_warn}/10" | bc`; temp_warn=`echo $(bc <<< "scale=2; ((${temp_warn}*(9/5))+32)/1") | awk '{print int($1+0.5)}'` @@ -355,7 +356,7 @@ CHECKTEMP(){ echo -en " " fi elif [ "${avgdays}" = "noavg" ]; then - echo -en "x " + echo -en " " fi if [ "${avgdays}" != "noavg" ]; then