From 7c611d5b527505c896fdf181218b1c728f2ceaf9 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 5 Nov 2013 16:48:09 +0100 Subject: [PATCH] collectd: add option for sensors plugin Signed-off-by: Peter Korsgaard --- package/collectd/Config.in | 6 ++++++ package/collectd/collectd.mk | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package/collectd/Config.in b/package/collectd/Config.in index 2059198d10..8123162248 100644 --- a/package/collectd/Config.in +++ b/package/collectd/Config.in @@ -277,6 +277,12 @@ config BR2_PACKAGE_COLLECTD_PROTOCOLS help Collects information about the network protocols. +config BR2_PACKAGE_COLLECTD_SENSORS + bool "sensors" + select BR2_PACKAGE_LM_SENSORS + help + Collects data from lm-sensors. + config BR2_PACKAGE_COLLECTD_SERIAL bool "serial" help diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk index 55a388ca53..e7dc093555 100644 --- a/package/collectd/collectd.mk +++ b/package/collectd/collectd.mk @@ -18,7 +18,7 @@ COLLECTD_PLUGINS_DISABLE = amqp apple_sensors aquaero ascent dbi email \ memcachec modbus multimeter netapp netlink nginx \ notify_desktop notify_email numa nut onewire oracle perl pf \ pinba postgresql powerdns python redis routeros rrdcached \ - sensors sigrok tape target_v5upgrade teamspeak2 ted \ + sigrok tape target_v5upgrade teamspeak2 ted \ tokyotyrant uuid varnish vserver write_mongodb write_redis \ xmms zfs_arc @@ -74,6 +74,7 @@ COLLECTD_CONF_OPT += --with-nan-emulation --with-fp-layout=nothing \ $(if $(BR2_PACKAGE_COLLECTD_RIEMANN),--enable-write_riemann,--disable-write_riemann) \ $(if $(BR2_PACKAGE_COLLECTD_RRDTOOL),--enable-rrdtool,--disable-rrdtool) \ $(if $(BR2_PACKAGE_COLLECTD_SCALE),--enable-target_scale,--disable-target_scale) \ + $(if $(BR2_PACKAGE_COLLECTD_SENSORS),--enable-sensors,--disable-sensors) \ $(if $(BR2_PACKAGE_COLLECTD_SERIAL),--enable-serial,--disable-serial) \ $(if $(BR2_PACKAGE_COLLECTD_STATSD),--enable-statsd,--disable-statsd) \ $(if $(BR2_PACKAGE_COLLECTD_SET),--enable-target_set,--disable-target_set) \ @@ -108,6 +109,7 @@ COLLECTD_DEPENDENCIES = host-pkgconf \ $(if $(BR2_PACKAGE_COLLECTD_PING),liboping) \ $(if $(BR2_PACKAGE_COLLECTD_RIEMANN),protobuf-c) \ $(if $(BR2_PACKAGE_COLLECTD_RRDTOOL),rrdtool) \ + $(if $(BR2_PACKAGE_COLLECTD_SENSORS),lm-sensors) \ $(if $(BR2_PACKAGE_COLLECTD_SNMP),netsnmp) \ $(if $(BR2_PACKAGE_COLLECTD_WRITEHTTP),libcurl)