This commit is contained in:
2023-12-30 15:57:06 -06:00
parent aafa0dc992
commit 7a601f8dde
4 changed files with 6 additions and 10 deletions

View File

@@ -548,7 +548,7 @@ Shutting down main servers" 1
#
# if [ ! -f ${PW_TMPFOLDER}/power.offsite.ac.low ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/power.offsite.ac.low)) -ge 240 ]; then
# SENDNOTICE "OFFSITE POWER ALERT - POWER OFF/LOW!!" "Power off or low voltage detected
# BATT CAPACITY: ${OFFSITE_BATT_CAP}'%25
# BATT CAPACITY: ${OFFSITE_BATT_CAP}'%
# BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'Mins" 1
# touch ${PW_TMPFOLDER}/power.offsite.ac.low
# fi
@@ -865,9 +865,6 @@ PDUCONTROL(){
}
SENDPOWER(){
SENDNOTICE "TEST 2" "TESTING
TESTING" &
st_power=`${PW_SCRIPT} check power -p -r`
SENDNOTICE "${1}" "${st_power}"
}