Update powerwall.sh
This commit is contained in:
@@ -55,6 +55,7 @@ CHECKTEMP(){
|
||||
if [ ${#vHOST_TEMPNAMES[@]} > 1 ]; then
|
||||
t=1
|
||||
for sensorname in "${vHOST_TEMPNAMES[@]}"; do
|
||||
echo ${t}
|
||||
temp_c=$(snmpwalk -v 1 -c public -t 2 10.10.2.20 .1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.${t} -O vq | sed -e 's/"//g')
|
||||
temp_c=`echo "scale=2; ${temp_c}/10" | bc`
|
||||
temp_warn=$(echo ${sensordata} | cut -d'p' -f2 | awk '/ / {print $7}' | sed -e 's/C//g'); temp_warn=${temp_warn/ /}
|
||||
|
||||
Reference in New Issue
Block a user