0.1.1 • Published 9 years ago
monit-mqtt v0.1.1
monit-mqtt
Powered by:
Installation:
It is preferred you install it globally
npm install -g monit-mqttCommand line options:
Note: All values being passed here indicate defaults.
Options
--options | --opts | --opt | -o
Usage:
monit-mqtt --options options.jsonAll 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.orgPort
--port | -p
Usage:
monit-mqtt --port 1883Clean
--clean | --cln | -c
Usage:
monit-mqtt --clean trueClientId
--clientid | --clid | --id
Usage:
monit-mqtt --clientid testClientTopics
--topics | --topic | -t
Usage:
monit-mqtt --topic '$SYS/broker/clients/connected' --topic '/#'QOS
--qos | -q
Usage:
monit-mqtt --qos 1Log Interval
--interval | -i
Interval in seconds after which stats should be logged.
Usage:
monit-mqtt --interval 1000To 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