From patchwork Thu Dec 22 01:59:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 708024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tkZVD15Jzz9t0q for ; Thu, 22 Dec 2016 13:00:20 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=zacarias.com.ar header.i=@zacarias.com.ar header.b="E9CVpH9A"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 78ED083FD1; Thu, 22 Dec 2016 02:00:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0PaCnYD6gDv1; Thu, 22 Dec 2016 02:00:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B984D83F8C; Thu, 22 Dec 2016 02:00:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8CF201C1F2A for ; Thu, 22 Dec 2016 02:00:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 85DFF83204 for ; Thu, 22 Dec 2016 02:00:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id op2LPXMcomMV for ; Thu, 22 Dec 2016 02:00:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [176.9.42.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 281C183F8C for ; Thu, 22 Dec 2016 02:00:07 +0000 (UTC) Received: from asgard (cpe-190-55-196-87.telecentro-reversos.com.ar [190.55.196.87] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.15.2/8.15.2) with ESMTPSA id uBM201hw008442 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Dec 2016 02:00:04 GMT DMARC-Filter: OpenDMARC Filter v1.3.1 www.zacarias.com.ar uBM201hw008442 Authentication-Results: zacarias.com.ar; dmarc=fail header.from=zacarias.com.ar Authentication-Results: zacarias.com.ar; spf=pass smtp.mailfrom=gustavo@zacarias.com.ar DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1482372005; bh=Vyr3Cfavcpca1fQIExKM+GcXgqwWbYoPfilj03eZoew=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=E9CVpH9AWHG+9lD35e+5XvSAU5AP6oIDgFw8K6JO2vU8ManIOpPZWH3inyKjmMH34 MM0VcLlGWlEj63g8WVIzzUcWxIabpThlbywdDmw22gzTLkKrdjzoulkUS+Rg/tXbyH p0ehb8EgCN5u6Pbsn5yiYpk5tK67XbBFsADmrkM0= Received: by asgard (sSMTP sendmail emulation); Wed, 21 Dec 2016 23:00:00 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Wed, 21 Dec 2016 22:59:15 -0300 Message-Id: <20161222015921.6832-8-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161222015921.6832-1-gustavo@zacarias.com.ar> References: <20161222015921.6832-1-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.99 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH 08/14] collectd: add mqtt plugin support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- package/collectd/Config.in | 6 ++++++ package/collectd/collectd.mk | 2 ++ 2 files changed, 8 insertions(+) diff --git a/package/collectd/Config.in b/package/collectd/Config.in index d1b85aa..b17abe8 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 d8b2576..97e2e98 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) \