Signed-off-by: Clemens Gruber <[email protected]>
---
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
[email protected]