Commit fbc638a4 authored by 吴文龙's avatar 吴文龙

fix

parent 60df2149
......@@ -45,7 +45,7 @@ listen mqtt-in
timeout server 3h
option external-check
option log-health-checks
external-check path "/usr/local/bin:/bin"
external-check path "/usr/bin:/bin:/usr/local/bin"
external-check command /usr/local/bin/check_mqtt.sh
server tbMqtt1 47.99.83.75:31883 check inter 10s rise 2 fall 3
server tbMqtt2 47.97.197.103:31883 check inter 10s rise 2 fall 3
......
#!/bin/bash
#!/bin/sh
echo $@ >> /tmp/all_arguments.txt
ip_adr=$(echo $@|awk '{print $3}')
if mosquitto_pub -h $ip_adr -p 31883 -u 123456 -t v1/devices/me/attributes -f test-mqtt.json -q 1 -d; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment