Update power.inc.sh

This commit is contained in:
2024-05-15 20:42:32 -05:00
parent 0a1a79969c
commit 92fbbeeb0b

View File

@@ -308,7 +308,6 @@ CHECKPOWER(){
upsinfo=$(upsc CP1500PFCLCD 2>&1)
else
upsinfo=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_OFFSITE_MONITOR} 'upsc CP1500PFCLCD' 2>&1)
echo "${upsinfo}"
fi
if [ "$(echo "${upsinfo}" | grep 'input.voltage:')" != "" ]; then
OFFSITE_STATUS=$(echo "${upsinfo}" | grep 'ups.status:' | sed 's/.*: //')