This commit is contained in:
2023-12-24 08:32:49 -06:00
parent e0c8948599
commit 773e93f1ff
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
VERS='2.5.54-12222023'
VERS='2.5.55-12242023'
noheader=' update service dailytemp confsync '

View File

@@ -33,6 +33,7 @@ PWO_START(){
upsinfo=$(upsc CP1500PFCLCD)
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')
OFFSITE_LOAD=$(echo "${upsinfo}" | grep 'ups.load:' | sed 's/.*: //')
OFFSITE_LOAD=`echo "scale=2; ${OFFSITE_LOAD}/100" | bc`
@@ -134,7 +135,7 @@ $(date)"
SENDNOTICE "NUT DRIVER FAILURE" "Restarting NUT service"
/usr/local/etc/rc.d/nut.sh restart
sleep 10s
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
touch ${PW_TMPFOLDER}/power.ups.losscomm
fi
fi
sleep 5s