From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Robert Schwebel Date: Mon, 2 Feb 2015 12:50:04 +0100 Message-Id: <1422877804-31082-10-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1422877804-31082-1-git-send-email-r.schwebel@pengutronix.de> References: <1422877804-31082-1-git-send-email-r.schwebel@pengutronix.de> Subject: [ptxdist] [PATCHv3 10/10] collectd: add support for logfile plugin Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Robert Schwebel Signed-off-by: Robert Schwebel --- Changes since v2: * none Changes since v1: * use modern enable/disable method, similar to gstreamer generic/etc/collectd.d/logfile.conf | 9 +++++++++ rules/collectd.in | 6 ++++++ rules/collectd.make | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 generic/etc/collectd.d/logfile.conf diff --git a/generic/etc/collectd.d/logfile.conf b/generic/etc/collectd.d/logfile.conf new file mode 100644 index 0000000..2c7549b --- /dev/null +++ b/generic/etc/collectd.d/logfile.conf @@ -0,0 +1,9 @@ +LoadPlugin logfile + + + LogLevel info + File "/var/log/collectd.log" + Timestamp true + PrintSeverity false + + diff --git a/rules/collectd.in b/rules/collectd.in index 1039c21..bff2cb5 100644 --- a/rules/collectd.in +++ b/rules/collectd.in @@ -13,6 +13,12 @@ if COLLECTD comment "Logging Plugins" +config COLLECTD_LOGFILE + bool + prompt "logfile" + help + logfile support for collectd. + config COLLECTD_SYSLOG bool prompt "syslog" diff --git a/rules/collectd.make b/rules/collectd.make index d6f790a..5ccaaa6 100644 --- a/rules/collectd.make +++ b/rules/collectd.make @@ -29,6 +29,7 @@ COLLECTD_LICENSE := GPL2 # Prepare # ---------------------------------------------------------------------------- +COLLECTD_ENABLE-$(PTXCONF_COLLECTD_LOGFILE) += logfile COLLECTD_ENABLE-$(PTXCONF_COLLECTD_SYSLOG) += syslog COLLECTD_ENABLE-$(PTXCONF_COLLECTD_RRDTOOL) += rrdtool COLLECTD_ENABLE-$(PTXCONF_COLLECTD_CPU) += cpu @@ -86,7 +87,6 @@ COLLECTD_CONF_OPT := $(CROSS_AUTOCONF_USR) \ --disable-java \ --disable-libvirt \ --disable-load \ - --disable-logfile \ --disable-lpar \ --disable-lvm \ --disable-madwifi \ -- 2.1.4 -- ptxdist mailing list ptxdist@pengutronix.de