From afd791d2e2b72c6364fefd80a271355006f811a0 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 21 Oct 2017 13:48:33 +0200 Subject: [PATCH] Enable the write_mongodb plugin, libmongoc is now available. Thanks to Saikrishna Arcot for reporting this. Closes: #858315 --- debian/changelog | 2 ++ debian/collectd.conf | 13 +++++++++++++ debian/control | 2 ++ debian/rules | 3 --- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index c89d78f..2b16c49 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ collectd (5.7.2-2) UNRELEASED; urgency=medium [ Sebastian Harl ] * Disable the sigrok plugin for now; it's not compatible with libsigrok4; thanks to Adrian Bunk for reporting this (Closes: #878348). + * Enable the write_mongodb plugin, libmongoc is now available. Thanks to + Saikrishna Arcot for reporting this (Closes: #858315). -- Sebastian Harl Sat, 21 Oct 2017 13:18:27 +0200 diff --git a/debian/collectd.conf b/debian/collectd.conf index 76a3f54..6e8dc54 100644 --- a/debian/collectd.conf +++ b/debian/collectd.conf @@ -196,6 +196,7 @@ LoadPlugin users #LoadPlugin write_http #LoadPlugin write_kafka #LoadPlugin write_log +#LoadPlugin write_mongodb #LoadPlugin write_prometheus #LoadPlugin write_redis #LoadPlugin write_riemann @@ -1394,6 +1395,18 @@ LoadPlugin users # # +# +# +# Host "localhost" +# Port "27017" +# Timeout 1000 +# StoreRates false +# Database "auth_db" +# User "auth_user" +# Password "auth_passwd" +# +# + # # Port "9103" # diff --git a/debian/control b/debian/control index f5d728a..0ff43de 100644 --- a/debian/control +++ b/debian/control @@ -30,6 +30,7 @@ Build-Depends: debhelper (>= 9.20120909~), dpkg-dev (>= 1.14.10), po-debconf, dh libmemcached-dev, libmicrohttpd-dev, libmodbus-dev, + libmongoc-dev, libmosquitto-dev, libmnl-dev [linux-any], libnotify-dev, @@ -213,6 +214,7 @@ Description: statistics collection and monitoring daemon (core system) * send collected values to a web-server: write_http * send collected values to an Apache Kafka message broker: write_kafka * send collected values to the logging subsystem: write_log + * send collected values to MongoDB, a NoSQL database: write_mongodb * publish collected values as a Prometheus exporter: write_prometheus * send collected values to a Redis server: write_redis * send collected values to a Riemann server: write_riemann diff --git a/debian/rules b/debian/rules index e4df1c8..4be1b6c 100755 --- a/debian/rules +++ b/debian/rules @@ -79,9 +79,6 @@ confflags += --disable-oracle # librouteros is required for the routeros plugin. confflags += --disable-routeros -# libmongoc is required for the write_mongodb plugin. -confflags += --disable-write_mongodb - # xmms1 is required for the xmms plugin. confflags += --disable-xmms -- 2.30.2