This commit is contained in:
2024-01-31 16:16:03 -06:00
parent 2d8ca41d3f
commit ff6c54e35e
2 changed files with 2 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
#Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Connect-VIServer $VCENTERHOST -Force -Protocol https -User $VCENTERUSER -Password $VCENTERPASS
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
$vmhosts=$args[0].Split(",")
Foreach ($vmhost in $vmhosts)

View File

@@ -224,7 +224,7 @@ CHECKTEMPSENSOR(){
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then
GAUGESH="'R"
else
GAUGESH="'F"
GAUGESH="°F"
fi
if [ "${6}" != "noavg" ]; then
[ "${6}" != "" ] && [[ "${6}" =~ ^[0-9]+$ ]] && avgdays=${6} || avgdays=3