aboutsummaryrefslogtreecommitdiff
path: root/package/collectd
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2016-12-21 22:59:15 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-12-23 22:37:38 +0100
commit66f64ddfbfd9d1929850141ee9a14407502f7d00 (patch)
treef414a0e5f957f96e953717b1338f0ff55649e1e5 /package/collectd
parent0c48707f48715e744b8bb3fd03d40509147c6aab (diff)
downloadbuildroot-66f64ddfbfd9d1929850141ee9a14407502f7d00.tar.gz
buildroot-66f64ddfbfd9d1929850141ee9a14407502f7d00.tar.bz2
collectd: add mqtt plugin support
Add explicit support for the mqtt (mosquitto) plugin. Place it under the write category even though it can read as well, since it will normally be used to write (publish) rather than read (subscribe). Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/collectd')
-rw-r--r--package/collectd/Config.in6
-rw-r--r--package/collectd/collectd.mk2
2 files changed, 8 insertions, 0 deletions
diff --git a/package/collectd/Config.in b/package/collectd/Config.in
index d1b85aadbe..b17abe830c 100644
--- a/package/collectd/Config.in
+++ b/package/collectd/Config.in
@@ -512,6 +512,12 @@ config BR2_PACKAGE_COLLECTD_GRAPHITE
Writes data collected to Carbon (Graphite's) storage API.
http://graphite.wikidot.com/start
+config BR2_PACKAGE_COLLECTD_MQTT
+ bool "mqtt"
+ select BR2_PACKAGE_MOSQUITTO
+ help
+ Sends metrics to and/or receives metrics from an MQTT broker.
+
config BR2_PACKAGE_COLLECTD_NETWORK
bool "network"
help
diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index d8b2576c90..97e2e98db8 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -72,6 +72,7 @@ COLLECTD_CONF_OPTS += \
$(if $(BR2_PACKAGE_COLLECTD_MEMCACHED),--enable-memcached,--disable-memcached) \
$(if $(BR2_PACKAGE_COLLECTD_MEMORY),--enable-memory,--disable-memory) \
$(if $(BR2_PACKAGE_COLLECTD_MODBUS),--enable-modbus,--disable-modbus) \
+ $(if $(BR2_PACKAGE_COLLECTD_MQTT),--enable-mqtt,--disable-mqtt) \
$(if $(BR2_PACKAGE_COLLECTD_MYSQL),--enable-mysql,--disable-mysql) \
$(if $(BR2_PACKAGE_COLLECTD_NETLINK),--enable-netlink,--disable-netlink) \
$(if $(BR2_PACKAGE_COLLECTD_NETWORK),--enable-network,--disable-network) \
@@ -133,6 +134,7 @@ COLLECTD_DEPENDENCIES = \
$(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),yajl) \
$(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),libmemcached) \
$(if $(BR2_PACKAGE_COLLECTD_MODBUS),libmodbus) \
+ $(if $(BR2_PACKAGE_COLLECTD_MQTT),mosquitto) \
$(if $(BR2_PACKAGE_COLLECTD_MYSQL),mysql) \
$(if $(BR2_PACKAGE_COLLECTD_NETLINK),libmnl) \
$(if $(BR2_PACKAGE_COLLECTD_NGINX),libcurl) \