cedalo / management-center

The management center for Eclipse Mosquitto
Apache License 2.0
88 stars 13 forks source link

Version 2.3.4 does not show some status information #41

Open mereshow opened 2 years ago

mereshow commented 2 years ago

Version 2.3.4 does not display connected clients nor current subscriptions:

image

cleancoderocker commented 2 years ago

@mereshow Does this happen all the time? I've noticed this behaviour in the past sometimes, but then most of the times a restart of the broker and the MMC fixed this issue.

@ralight Since the MMC connects to the system topics of Mosquitto: I think that sometimes it does not receive the values (e.g., as shown in the screenshot for the total number of clients and the number of subscriptions). Are there special cases when a new subscriber to the system topics does not receive all data?

mereshow commented 2 years ago

MMC was freshly restarted (just updated to 2.3.4). Restating the broker did the trick, thank you!

It would be better not to have to restart the broker, as this can generate many retained messages to be sent again.

ralight commented 2 years ago

The broker publishes updates to the $SYS topics only when they change. All messages have the retained bit set though, so possibly excluding the first 10 seconds after the broker has started, there should always be a message present on each topic.

Thinking of other situations that may cause this effect, I can think of the topics being denied due to an ACL, or that there is a client (who has access to publish to those topics) that is clearing the retained messages. Neither of those situations seems particularly plausible.