Update power.inc.sh
This commit is contained in:
@@ -875,7 +875,8 @@ CHECKPOWER_SERVICE(){
|
|||||||
if [[ "${IP}" != "10.6.1"* ]]; then
|
if [[ "${IP}" != "10.6.1"* ]]; then
|
||||||
|
|
||||||
INVSTATSINFO=$(curl -m 3 -s "http://${PW_INVERTER_IP}/stats.json")
|
INVSTATSINFO=$(curl -m 3 -s "http://${PW_INVERTER_IP}/stats.json")
|
||||||
SVRRM_UPS_INPUTACV=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_UPS_IP} iso.3.6.1.4.1.850.1.1.3.1.3.2.2.1.3.1.1 | sed 's/.*: //')
|
# SVRRM_UPS_INPUTACV=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_UPS_IP} iso.3.6.1.4.1.850.1.1.3.1.3.2.2.1.3.1.1 | sed 's/.*: //')
|
||||||
|
SVRRM_UPS_INPUTACV=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.1.15 | sed 's/.*: //')
|
||||||
|
|
||||||
if (( $(bc <<<"${SVRRM_UPS_INPUTACV} < ${min_acvolt}") )); then
|
if (( $(bc <<<"${SVRRM_UPS_INPUTACV} < ${min_acvolt}") )); then
|
||||||
if [ ! -f ${PW_TMPFOLDER}/power.ups.low ]; then
|
if [ ! -f ${PW_TMPFOLDER}/power.ups.low ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user