finaltest
This commit is contained in:
@@ -6,9 +6,9 @@ noupdate=' stop '
|
||||
mqtt_conn='/usr/bin/mosquitto_sub -h 127.0.0.1 -u mqtt -P 12mqtt34password56'
|
||||
mysql_conn='/usr/bin/mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert'
|
||||
|
||||
min_acvolt=124
|
||||
min_battvolt=52
|
||||
min_battvolt_sys=51
|
||||
min_acvolt=105
|
||||
min_battvolt=51
|
||||
min_battvolt_sys=49
|
||||
#47
|
||||
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ CHECKACV_SERVICE(){
|
||||
if [ $battstatus -lt 2 ]; then
|
||||
[ $VERBOSE = true ] && echo "($datetime) Shutting down main servers..."
|
||||
echo -e "($datetime) Battery Voltage LOW: ${BATTVOLT}V\nShutting down main servers" | mail -s "BATT-VOLT LOW: SHUTDOWN SERVERS" $email_alert
|
||||
|
||||
SHUTDOWN_SERVERS MAIN
|
||||
battstatus=2
|
||||
fi
|
||||
|
||||
@@ -156,8 +156,8 @@ CHECKACV_SERVICE(){
|
||||
if [ $battstatus -lt 3 ]; then
|
||||
[ $VERBOSE = true ] && echo "($datetime) Shutting down all remaining servers..."
|
||||
echo -e "($datetime) Battery Voltage REALLY LOW: ${BATTVOLT}V\nShutting down all servers" | mail -s "BATT-VOLT REALLY LOW: SHUTDOWN SERVERS" $email_alert
|
||||
|
||||
#curl --data "cmd=PWRoff" http://10.10.0.61/cmd
|
||||
SHUTDOWN_SERVERS SYS
|
||||
curl --data "cmd=PWRoff" http://10.10.0.61/cmd
|
||||
|
||||
battstatus=3
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user