Update temp.inc.sh

This commit is contained in:
2025-03-22 12:35:41 -05:00
parent 6aea9915f1
commit 50516d931d

View File

@@ -33,7 +33,7 @@ CHECKTEMP(){
# start=`date +%s`
cw=25
cdt=$(date +%Y-%m-%d-%H-%M-%S)
REPORT=0; DETAILS=0; exclude=''
REPORT=0; DETAILS=0; exclude=''; drives=0
while [ $# -gt 0 ]; do
case "$1" in
-a|-avg) avgdays=${2};;
@@ -41,6 +41,7 @@ CHECKTEMP(){
-o|-offsite) STYPE=offsite;;
-m|-mainsite) STYPE=mainsite;;
-e|-esxi) TTYPE="esxi";;
-D|-drives) drives=1;;
-f|-fans) TTYPE="fans";;
-s|-search) search=${2};;
-x|-exclude) exclude=${2};;
@@ -638,6 +639,13 @@ CHECKTEMP(){
echo -e "${idsCL[LightYellow]}${SENSOR} PSU is not compatible, Fans are instead synced with 'iDS-vMS-Host7'${idsCL[Default]}"
fi
# ([ "${TTYPE}" != "fans" ] || ([ "${TTYPE}" == "fans" ] && [ "${SENSOR}" != "iDS-vMS-Host6" ])) && echo
if [ ${drives} -eq 1 ]; then
ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${vHOSTIP} 'wget -qO- https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/ESXi-GetPercDriveTemps.sh | sh'
fi
echo
fi