0.1.1 • Published 7 years ago
monit-mqtt v0.1.1
monit-mqtt
Powered by:
Installation:
It is preferred you install it globally
npm install -g monit-mqtt
Command line options:
Note: All values being passed here indicate defaults.
Options
--options | --opts | --opt | -o
Usage:
monit-mqtt --options options.json
All options parameters accepted by MQTT.js are accepted here. For more details head here.
Note: If option is passed, all other command line options are disregarded. All missing but required options are replaced by defaults of MQTT.js
Example
{
"port": 1883,
"host": "test.mosquitto.org",
"clean": false,
"clientId": "defaultClient",
"topics": {
"$SYS/broker/clients/connected": 1,
"/#": 1
}
}
Host
--host | -h
Usage:
monit-mqtt --host test.mosquitto.org
Port
--port | -p
Usage:
monit-mqtt --port 1883
Clean
--clean | --cln | -c
Usage:
monit-mqtt --clean true
ClientId
--clientid | --clid | --id
Usage:
monit-mqtt --clientid testClient
Topics
--topics | --topic | -t
Usage:
monit-mqtt --topic '$SYS/broker/clients/connected' --topic '/#'
QOS
--qos | -q
Usage:
monit-mqtt --qos 1
Log Interval
--interval | -i
Interval in seconds after which stats should be logged.
Usage:
monit-mqtt --interval 1000
To Do
- Support ES5
- Add ability to pass custom event handlers
- Add ability to store stats
- Add ability to web interface plugin
Feedback, suggestions and everything else is always welcome. Email me at debduttoc@gmail.com