Linux command
mqtt_check.py 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check MQTT broker
mqtt_check.py -H [broker.example.com]
Check with authentication
mqtt_check.py -H [host] -u [user] -p [password]
Check specific port
mqtt_check.py -H [host] -P [1883]
Check with SSL
mqtt_check.py -H [host] --ssl
Set timeout
mqtt_check.py -H [host] -t [10]
说明
mqtt_check.py is a Nagios plugin for MQTT monitoring. It checks MQTT broker availability. The tool verifies broker connectivity. Returns status codes for monitoring systems.
参数
- -H _HOST_
- MQTT broker hostname.
- -P _PORT_
- MQTT broker port.
- -u _USER_
- Username for authentication.
- -p _PASSWORD_
- Password for authentication.
- --ssl
- Use SSL/TLS connection.
- -t _SECONDS_
- Connection timeout.
- --help
- Display help information.
FAQ
What is the mqtt_check.py command used for?
mqtt_check.py is a Nagios plugin for MQTT monitoring. It checks MQTT broker availability. The tool verifies broker connectivity. Returns status codes for monitoring systems.
How do I run a basic mqtt_check.py example?
Run `mqtt_check.py -H [broker.example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -H _HOST_ do in mqtt_check.py?
MQTT broker hostname.