Update temp.inc.sh

This commit is contained in:
2024-04-28 21:22:56 -05:00
parent fedb6f78e7
commit 60bef06ac9

View File

@@ -298,7 +298,6 @@ 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)}'`
@@ -357,6 +356,7 @@ CHECKTEMP(){
fi
elif [ "${avgdays}" = "noavg" ]; then
echo -en " "
echo HERE
fi
if [ "${avgdays}" != "noavg" ]; then