Mqtt MOSQUITO-在$SYS主题中没有数据
我的安装程序使用TLS和用户/通过身份验证的MOSQUITO 1.4.12,在Ubuntu 14.04下运行了很长一段时间,没有任何问题 问题是没有数据发布到任何Mqtt MOSQUITO-在$SYS主题中没有数据,mqtt,mosquitto,Mqtt,Mosquitto,我的安装程序使用TLS和用户/通过身份验证的MOSQUITO 1.4.12,在Ubuntu 14.04下运行了很长一段时间,没有任何问题 问题是没有数据发布到任何$SYS代理状态主题。我已经查看了配置,sys\u interval设置为10。还需要什么别的东西才能让它工作吗 我尝试过许多客户端(mosquitto_sub、paho mqtt、mqtt.fx),所以它看起来像是错误的mosquitto配置,而不是客户端问题 mosquitto.conf如下所示: sys_interval 10
$SYS
代理状态主题。我已经查看了配置,sys\u interval
设置为10。还需要什么别的东西才能让它工作吗
我尝试过许多客户端(mosquitto_sub、paho mqtt、mqtt.fx),所以它看起来像是错误的mosquitto配置,而不是客户端问题
mosquitto.conf如下所示:
sys_interval 10
max_queued_messages 10000
max_inflight_messages 100
max_connections -1
connection_messages true
log_dest stderr
log_type error
log_type warning
log_type notice
log_type information
log_type all
log_timestamp true
password_file /etc/mosquitto/conf.d/jp.pw
acl_file /etc/mosquitto/conf.d/acl.conf
persistence true
persistence_location /var/lib/mosquitto/
persistence_file mosquitto.db
persistent_client_expiration 1m
autosave_interval 600
retained_persistence true
listener 8883
tls_version tlsv1.2
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/ca_certificates/cert.crt
keyfile /etc/mosquitto/ca_certificates/cert.key
require_certificate false
allow_anonymous false
acl.conf有以下内容,可能不需要:
user test
topic #
ACL中的主题筛选器应用与普通通配符处理相同的规则,因此仅允许访问
将不包括“$SYS/#”主题
您需要在ACL中添加额外的主题
行,以包括$SYS
主题:
user test
topic #
topic $SYS/#
你到底订阅了什么?
$SYS
主题不会显示在#
订阅中。你必须订阅$SYS/#
才能看到所有的数据是@hardillb,我订阅了一些特定的主题,比如$SYS/broker/clients/active
或者$SYS/broker/uptime
,在这种情况下,编辑问题以包括你的mosquitto.conf和你设置的任何ACL,这样我们就可以看到你刚刚完成的设置,@hardillb。谢谢。添加一个额外的主题行,以$SYS/#
结尾,以防主题匹配用于检查ACL