Difference between revisions of "Plugin:MQTT"
From collectd Wiki
(→Dependencies) |
|||
Line 48: | Line 48: | ||
* [http://mosquitto.org/download/ libmosquitto] | * [http://mosquitto.org/download/ libmosquitto] | ||
− | * A MQTT Server | + | * [https://github.com/mqtt/mqtt.github.io/wiki/servers A MQTT Server] |
== See also == | == See also == |
Revision as of 00:26, 8 September 2015
MQTT plugin | |
---|---|
Type: | read, write |
Callbacks: | config, init, write |
Status: | supported |
First version: | 5.6 |
Copyright: | 2014-2015 Florian octo Forster 2014 Marc Falzon |
License: | MIT license |
Manpage: | collectd.conf(5) |
List of Plugins |
The MQTT plugin transmits or receives values collected by collectd via the MQTT protocol. Data is sent to or received from a MQTT Server, also known as a message broker. The values are encoded and parsed in the plain text protocol.
Synopsis
<Plugin "mqtt"> # Send values to an MQTT server <Publish "some_name"> Host "localhost" # Port "1883" # User "mqttuser" # Password "password" # ClientId "collectd-hostname" # QoS 0 # Prefix "collectd" # Retain true # StoreRates false </Publish> # Receive values from an MQTT server <Subscribe "some_name"> Host "localhost" # Port "1883" # User "mqttuser" # Password "password" # ClientId "collectd-hostname" # QoS 0 # CleanSession false # Topic "subscribetopic" </Subscribe> </Plugin>
Dependencies
See also