This commit is contained in:
2023-12-15 08:42:42 -06:00
parent 4248c38957
commit 782cba867f
3 changed files with 3 additions and 2 deletions

View File

@@ -397,7 +397,7 @@ BATT VOLTAGE: ${BATTVOLT}'volts" 1
if [ ! -f ${PW_TMPFOLDER}/power.ac.conserve ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/power.ac.low)) -ge 30 ]; then
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${INPUTACV}'volts / ${BATTVOLT}'volts - Shutting down iSCSI VM's and Host to conserve power" >> ${PW_LOGPOWER}
SENDNOTICE "POWER ALERT - Conserving Power" "Shutting down iSCSI VM's and Host to conserve power" 1
SHUTDOWN_SERVER ${PW_HOST_IDRACS['iDS-vMS-Host0']} -esxi off &
SHUTDOWN_SERVER ${PW_MAIN_ISCSI} -esxi off &
touch ${PW_TMPFOLDER}/power.ac.conserve
fi
fi