Update temp.inc.sh

This commit is contained in:
2023-12-26 19:21:39 -06:00
parent 59aae41e12
commit 38621f5907

View File

@@ -359,7 +359,7 @@ CHECKTEMP_SERVICE(){
}
CHECKTEMP_SERVICE_RUNSENSOR(){
SENSORa=${1}
start_sub=`date +%s`; echo -en "${SENSORa}"
start_sub=`date +%s`
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
vHOST_TEMPNAMES=$(snmpwalk -v 1 -c public -t 2 ${PW_HOST_IDRACS[${SENSORa}]} .1.3.6.1.4.1.674.10892.5.4.700.20.1.8 -O vq | sed -e 's/"//g' | sed -e 's/ Temp//g')
IFS=$'\n'
@@ -649,7 +649,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
done
fi
touch ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done
end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo " - runtime: ${runtime_sub}s"
end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo "${SENSORa} - runtime: ${runtime_sub}s"
}
DAILYTEMP(){