Skip to content

Commit

Permalink
Set check_mqtt qos to 1 for compatibility with rabbitmq_mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
landervdb committed Oct 2, 2018
1 parent c0ea6e5 commit 75370ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ check_bgp 1.1
check_yum 1.1.0
check_haproxy.rb 1.0
check_postgres.pl 2.24.0
check_mqtt.py 1.0
check_mqtt.py 1.1

# vim: set ts=2 sw=2 et : #
5 changes: 4 additions & 1 deletion check_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def on_subscribe(mosq, userdata, mid, granted_qos):

#print "on_subscribe"
if not args.mqtt_readonly:
(res, mid) = mosq.publish(args.check_topic, args.mqtt_payload, qos=2, retain=False)
#
# Change: set qos to 1 for compatibility with rabbitmq_mqtt
#
(res, mid) = mosq.publish(args.check_topic, args.mqtt_payload, qos=1, retain=False)

def on_message(mosq, userdata, msg):
"""
Expand Down

0 comments on commit 75370ac

Please sign in to comment.