mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH] collectd: add threshold plugin
Date: Sat, 17 Jun 2017 19:36:30 +0200	[thread overview]
Message-ID: <20170617173630.424-1-clemens.gruber@pqgruber.com> (raw)

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
 projectroot/etc/collectd.d/threshold.conf | 5 +++++
 rules/collectd.in                         | 8 ++++++++
 rules/collectd.make                       | 2 +-
 3 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 projectroot/etc/collectd.d/threshold.conf

diff --git a/projectroot/etc/collectd.d/threshold.conf b/projectroot/etc/collectd.d/threshold.conf
new file mode 100644
index 000000000..455f31f27
--- /dev/null
+++ b/projectroot/etc/collectd.d/threshold.conf
@@ -0,0 +1,5 @@
+LoadPlugin "threshold"
+
+<Plugin "threshold">
+# This is a generic plugin. Please read the collectd manual.
+</Plugin>
diff --git a/rules/collectd.in b/rules/collectd.in
index 04e7499e4..10b096c60 100644
--- a/rules/collectd.in
+++ b/rules/collectd.in
@@ -82,4 +82,12 @@ config COLLECTD_EXEC
 	  The Exec plugin executes scripts and reads values back that are
 	  printed to stdout using the collectd plain text protocol.
 
+config COLLECTD_THRESHOLD
+	bool
+	prompt "threshold"
+	help
+	  The Threshold plugin checks values collected or received by collectd
+	  against a configurable threshold and issues notifications if values
+	  are out of bounds.
+
 endif
diff --git a/rules/collectd.make b/rules/collectd.make
index 5db3c6467..993e0f412 100644
--- a/rules/collectd.make
+++ b/rules/collectd.make
@@ -177,7 +177,7 @@ COLLECTD_ENABLE-				+= tcpconns
 COLLECTD_ENABLE-				+= teamspeak2
 COLLECTD_ENABLE-				+= ted
 COLLECTD_ENABLE-				+= thermal
-COLLECTD_ENABLE-				+= threshold
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_THRESHOLD)	+= threshold
 COLLECTD_ENABLE-				+= tokyotyrant
 COLLECTD_ENABLE-				+= turbostat
 COLLECTD_ENABLE-				+= unixsock
-- 
2.13.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2017-06-17 17:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170617173630.424-1-clemens.gruber@pqgruber.com \
    --to=clemens.gruber@pqgruber.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox