Signed-off-by: Robert Schwebel <[email protected]>
---
Changes since v3:
* none

Changes since v2:
* none

Changes since v1:
* use modern enable/disable method, similar to gstreamer

 generic/etc/collectd.d/cpu.conf | 1 +
 rules/collectd.in               | 9 +++++++++
 rules/collectd.make             | 2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 generic/etc/collectd.d/cpu.conf

diff --git a/generic/etc/collectd.d/cpu.conf b/generic/etc/collectd.d/cpu.conf
new file mode 100644
index 0000000..30fcc38
--- /dev/null
+++ b/generic/etc/collectd.d/cpu.conf
@@ -0,0 +1 @@
+LoadPlugin cpu
diff --git a/rules/collectd.in b/rules/collectd.in
index a93fc56..1039c21 100644
--- a/rules/collectd.in
+++ b/rules/collectd.in
@@ -28,4 +28,13 @@ config COLLECTD_RRDTOOL
          With the RRDtool plugin, collectd writes values into a
          round-robin database, using librrd.
 
+comment "Read Plugins"
+
+config COLLECTD_CPU
+       bool
+       prompt "cpu"
+       help
+         The CPU plugin collects data about what your CPU is actually doing,
+         and if it is being idle or in the various states.
+
 endif
diff --git a/rules/collectd.make b/rules/collectd.make
index 8018ecf..a233047 100644
--- a/rules/collectd.make
+++ b/rules/collectd.make
@@ -31,6 +31,7 @@ COLLECTD_LICENSE      := GPL2
 
 COLLECTD_ENABLE-$(PTXCONF_COLLECTD_SYSLOG)     += syslog
 COLLECTD_ENABLE-$(PTXCONF_COLLECTD_RRDTOOL)    += rrdtool
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_CPU)                += cpu
 
 #
 # autoconf
@@ -60,7 +61,6 @@ COLLECTD_CONF_OPT     := $(CROSS_AUTOCONF_USR) \
        --disable-conntrack \
        --disable-contextswitch \
        --disable-cpufreq \
-       --disable-cpu \
        --disable-csv \
        --disable-curl \
        --disable-curl_json \
-- 
2.1.4


-- 
ptxdist mailing list
[email protected]

Reply via email to