This alert is triggered when the Netdata Agent detects a spike in unauthorized MQTT v3/v5 PUBLISH
attempts in the last minute on your VerneMQ broker. If you receive this alert, it means that there might be clients attempting to publish messages without the proper authentication, which could indicate a misconfiguration or potential security risk.
MQTT (Message Queuing Telemetry Transport) is a lightweight, publish-subscribe protocol designed for low-bandwidth, high-latency, or unreliable networks. VerneMQ is a high-performance, distributed MQTT broker that supports a wide range of industry standards and can handle millions of clients.
To check if the clients are using the correct credentials while connecting and publishing to the VerneMQ broker, inspect their log files or debug messages to find authentication-related issues.
Ensure that the VerneMQ configuration allows for proper authentication of clients. Verify that the correct authentication plugins and settings are enabled. The configuration file is usually located at /etc/vernemq/vernemq.conf
. For more information on VerneMQ config, please refer to VerneMQ documentation.
Inspect the VerneMQ logs to identify unauthorized attempts and assess any potential risks. The logs typically reside in the /var/log/vernemq
directory, and you can tail the logs using the following command:
tail -f /var/log/vernemq/console.log
If you find unauthorized or suspicious IP addresses attempting to connect to your VerneMQ broker, consider blocking those addresses using firewall rules to prevent unauthorized access.