diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index c45e1bb4..4203c203 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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