mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] collectd: add threshold plugin
@ 2017-06-17 17:36 Clemens Gruber
  0 siblings, 0 replies; only message in thread
From: Clemens Gruber @ 2017-06-17 17:36 UTC (permalink / raw)
  To: ptxdist; +Cc: Clemens Gruber

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-17 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-17 17:36 [ptxdist] [PATCH] collectd: add threshold plugin Clemens Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox