Update offsite-power-check.sh
This commit is contained in:
1 parent
7beb1625f9
commit
8f442260cc
1 file changed
+1
-1
@@ -32,7 +32,7 @@ PWO_START(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# upsinfo=$(upsc CP1500PFCLCD)
|
# upsinfo=$(upsc CP1500PFCLCD)
|
||||||
upsinfo=$(upsc offsite-ups)
|
upsinfo=$(upsc offsite-ups 2>&1)
|
||||||
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
|
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
|
||||||
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
|
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
|
||||||
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')
|
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')
|
||||||
|
|||||||
Reference in new issue
Block a user