Update temp.inc.sh

This commit is contained in:
2023-12-26 19:20:31 -06:00
parent ff8dbd9395
commit f685fbf5d9

View File

@@ -358,6 +358,7 @@ CHECKTEMP_SERVICE(){
${PW_TMPFOLDER}/zservicerun.${SENSORa}.done ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done
} }
CHECKTEMP_SERVICE_RUNSENSOR(){ CHECKTEMP_SERVICE_RUNSENSOR(){
start_sub=`date +%s`; echo -en "${SENSORa}"
SENSORa=${1} SENSORa=${1}
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then 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') 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')
@@ -648,6 +649,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
done done
fi fi
touch ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done touch ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done
end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo " - runtime: ${runtime_sub}s"
} }
DAILYTEMP(){ DAILYTEMP(){