From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH 03/18] collectd: update 5.4.1 -> 5.7.0 and add sensors support
Date: Mon, 19 Dec 2016 21:36:16 +0100 [thread overview]
Message-ID: <20161219203631.29275-4-clemens.gruber@pqgruber.com> (raw)
In-Reply-To: <20161219203631.29275-1-clemens.gruber@pqgruber.com>
To avoid mistakes in future updates, reorganize the configure options,
add missing options and list all plugins separately.
This update adds support for the sensors plugin, which reads sensor data
through lm_sensors.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
projectroot/etc/collectd.d/sensors.conf | 1 +
rules/collectd.in | 9 +-
rules/collectd.make | 281 ++++++++++++++++++--------------
3 files changed, 164 insertions(+), 127 deletions(-)
create mode 100644 projectroot/etc/collectd.d/sensors.conf
diff --git a/projectroot/etc/collectd.d/sensors.conf b/projectroot/etc/collectd.d/sensors.conf
new file mode 100644
index 000000000..2dc3ffeed
--- /dev/null
+++ b/projectroot/etc/collectd.d/sensors.conf
@@ -0,0 +1 @@
+LoadPlugin sensors
diff --git a/rules/collectd.in b/rules/collectd.in
index bff2cb587..ba359f092 100644
--- a/rules/collectd.in
+++ b/rules/collectd.in
@@ -2,7 +2,8 @@
menuconfig COLLECTD
tristate
- select RRDTOOL if COLLECTD_RRDTOOL
+ select RRDTOOL if COLLECTD_RRDTOOL
+ select LM_SENSORS if COLLECTD_SENSORS
prompt "collectd "
help
collectd is a daemon which collects system performance statistics
@@ -43,4 +44,10 @@ config COLLECTD_CPU
The CPU plugin collects data about what your CPU is actually doing,
and if it is being idle or in the various states.
+config COLLECTD_SENSORS
+ bool
+ prompt "sensors"
+ help
+ The Sensors plugin uses lm-sensors to read hardware sensors.
+
endif
diff --git a/rules/collectd.make b/rules/collectd.make
index 2ef50e725..8d693f80b 100644
--- a/rules/collectd.make
+++ b/rules/collectd.make
@@ -1,6 +1,7 @@
# -*-makefile-*-
#
# Copyright (C) 2014 by Markus Pargmann <mpa@pengutronix.de>
+# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -16,11 +17,11 @@ PACKAGES-$(PTXCONF_COLLECTD) += collectd
#
# Paths and names
#
-COLLECTD_VERSION := 5.4.1
+COLLECTD_VERSION := 5.7.0
COLLECTD := collectd-$(COLLECTD_VERSION)
COLLECTD_SUFFIX := tar.bz2
COLLECTD_URL := http://collectd.org/files/${COLLECTD}.${COLLECTD_SUFFIX}
-COLLECTD_MD5 := 6f56c71c96573a7f4f7fb3bfab185974
+COLLECTD_MD5 := c5cbe74a5638cac793caa13b3df60ce1
COLLECTD_DIR := $(BUILDDIR)/$(COLLECTD)
COLLECTD_SOURCE := $(SRCDIR)/$(COLLECTD).$(COLLECTD_SUFFIX)
COLLECTD_LICENSE := GPL2
@@ -29,11 +30,6 @@ COLLECTD_LICENSE := GPL2
# Prepare
# ----------------------------------------------------------------------------
-COLLECTD_ENABLE-$(PTXCONF_COLLECTD_LOGFILE) += logfile
-COLLECTD_ENABLE-$(PTXCONF_COLLECTD_SYSLOG) += syslog
-COLLECTD_ENABLE-$(PTXCONF_COLLECTD_RRDTOOL) += rrdtool
-COLLECTD_ENABLE-$(PTXCONF_COLLECTD_CPU) += cpu
-
# 'noyywrap' is set, so no lex library is needed
COLLECTD_CONF_ENV := \
$(CROSS_ENV) \
@@ -46,133 +42,167 @@ COLLECTD_CONF_TOOL := autoconf
COLLECTD_CONF_OPT := $(CROSS_AUTOCONF_USR) \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-standards \
- --disable-glibtest \
+ --disable-xfs \
--disable-debug \
--enable-daemon \
--disable-getifaddrs \
+ --disable-werror \
--disable-all-plugins \
--with-included-ltdl \
--with-nan-emulation \
--with-fp-layout=nothing \
- \
- --disable-aggregation \
- --disable-amqp \
- --disable-apache \
- --disable-apcups \
- --disable-apple_sensors \
- --disable-aquaero \
- --disable-ascent \
- --disable-battery \
- --disable-bind \
- --disable-conntrack \
- --disable-contextswitch \
- --disable-cpufreq \
- --disable-csv \
- --disable-curl \
- --disable-curl_json \
- --disable-curl_xml \
- --disable-cgroups \
- --disable-dbi \
- --disable-df \
- --disable-disk \
- --disable-dns \
- --disable-email \
- --disable-entropy \
- --disable-ethstat \
- --disable-exec \
- --disable-filecount \
- --disable-fscache \
- --disable-gmond \
- --disable-hddtemp \
- --disable-interface \
- --disable-ipmi \
- --disable-iptables \
- --disable-ipvs \
- --disable-irq \
- --disable-java \
- --disable-libvirt \
- --disable-load \
- --disable-lpar \
- --disable-lvm \
- --disable-madwifi \
- --disable-match_empty_counter \
- --disable-match_hashed \
- --disable-match_regex \
- --disable-match_timediff \
- --disable-match_value \
- --disable-mbmon \
- --disable-md \
- --disable-memcachec \
- --disable-memcached \
- --disable-memory \
- --disable-mic \
- --disable-modbus \
- --disable-multimeter \
- --disable-mysql \
- --disable-netapp \
- --disable-netlink \
- --disable-network \
- --disable-nfs \
- --disable-nginx \
- --disable-notify_desktop \
- --disable-notify_email \
- --disable-ntpd \
- --disable-numa \
- --disable-nut \
- --disable-olsrd \
- --disable-onewire \
- --disable-openvpn \
- --disable-oracle \
- --disable-perl \
- --disable-pf \
- --disable-pinba \
- --disable-ping \
- --disable-postgresql \
- --disable-powerdns \
- --disable-processes \
- --disable-protocols \
- --disable-python \
- --disable-redis \
- --disable-routeros \
- --disable-rrdcached \
- --disable-sensors \
- --disable-serial \
- --disable-sigrok \
- --disable-snmp \
- --disable-statsd \
- --disable-swap \
- --disable-table \
- --disable-tail \
- --disable-tail_csv \
- --disable-tape \
- --disable-target_notification \
- --disable-target_replace \
- --disable-target_scale \
- --disable-target_set \
- --disable-target_v5upgrade \
- --disable-tcpconns \
- --disable-teamspeak2 \
- --disable-ted \
- --disable-thermal \
- --disable-threshold \
- --disable-tokyotyrant \
- --disable-unixsock \
- --disable-uptime \
- --disable-users \
- --disable-uuid \
- --disable-varnish \
- --disable-vmem \
- --disable-vserver \
- --disable-wireless \
- --disable-write_graphite \
- --disable-write_http \
- --disable-write_mongodb \
- --disable-write_redis \
- --disable-write_riemann \
- --disable-xmms \
- --disable-zfs_arc \
+ --without-libdpdk \
--without-perl-bindings
+# Plugins
+COLLECTD_ENABLE- += aggregation
+COLLECTD_ENABLE- += amqp
+COLLECTD_ENABLE- += apache
+COLLECTD_ENABLE- += apcups
+COLLECTD_ENABLE- += apple_sensors
+COLLECTD_ENABLE- += aquaero
+COLLECTD_ENABLE- += ascent
+COLLECTD_ENABLE- += barometer
+COLLECTD_ENABLE- += battery
+COLLECTD_ENABLE- += bind
+COLLECTD_ENABLE- += ceph
+COLLECTD_ENABLE- += cgroups
+COLLECTD_ENABLE- += chrony
+COLLECTD_ENABLE- += conntrack
+COLLECTD_ENABLE- += contextswitch
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_CPU) += cpu
+COLLECTD_ENABLE- += cpufreq
+COLLECTD_ENABLE- += cpusleep
+COLLECTD_ENABLE- += csv
+COLLECTD_ENABLE- += curl
+COLLECTD_ENABLE- += curl_json
+COLLECTD_ENABLE- += curl_xml
+COLLECTD_ENABLE- += dbi
+COLLECTD_ENABLE- += df
+COLLECTD_ENABLE- += disk
+COLLECTD_ENABLE- += dns
+COLLECTD_ENABLE- += dpdkstat
+COLLECTD_ENABLE- += drbd
+COLLECTD_ENABLE- += email
+COLLECTD_ENABLE- += entropy
+COLLECTD_ENABLE- += ethstat
+COLLECTD_ENABLE- += exec
+COLLECTD_ENABLE- += fhcount
+COLLECTD_ENABLE- += filecount
+COLLECTD_ENABLE- += fscache
+COLLECTD_ENABLE- += gmond
+COLLECTD_ENABLE- += gps
+COLLECTD_ENABLE- += grpc
+COLLECTD_ENABLE- += hddtemp
+COLLECTD_ENABLE- += hugepages
+COLLECTD_ENABLE- += intel_rdt
+COLLECTD_ENABLE- += interface
+COLLECTD_ENABLE- += ipc
+COLLECTD_ENABLE- += ipmi
+COLLECTD_ENABLE- += iptables
+COLLECTD_ENABLE- += ipvs
+COLLECTD_ENABLE- += irq
+COLLECTD_ENABLE- += java
+COLLECTD_ENABLE- += load
+COLLECTD_ENABLE- += log_logstash
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_LOGFILE) += logfile
+COLLECTD_ENABLE- += lpar
+COLLECTD_ENABLE- += lua
+COLLECTD_ENABLE- += lvm
+COLLECTD_ENABLE- += madwifi
+COLLECTD_ENABLE- += match_empty_counter
+COLLECTD_ENABLE- += match_hashed
+COLLECTD_ENABLE- += match_regex
+COLLECTD_ENABLE- += match_timediff
+COLLECTD_ENABLE- += match_value
+COLLECTD_ENABLE- += mbmon
+COLLECTD_ENABLE- += md
+COLLECTD_ENABLE- += memcachec
+COLLECTD_ENABLE- += memcached
+COLLECTD_ENABLE- += memory
+COLLECTD_ENABLE- += mic
+COLLECTD_ENABLE- += modbus
+COLLECTD_ENABLE- += mqtt
+COLLECTD_ENABLE- += multimeter
+COLLECTD_ENABLE- += mysql
+COLLECTD_ENABLE- += netapp
+COLLECTD_ENABLE- += netlink
+COLLECTD_ENABLE- += network
+COLLECTD_ENABLE- += nfs
+COLLECTD_ENABLE- += nginx
+COLLECTD_ENABLE- += notify_desktop
+COLLECTD_ENABLE- += notify_email
+COLLECTD_ENABLE- += notify_nagios
+COLLECTD_ENABLE- += ntpd
+COLLECTD_ENABLE- += numa
+COLLECTD_ENABLE- += nut
+COLLECTD_ENABLE- += olsrd
+COLLECTD_ENABLE- += onewire
+COLLECTD_ENABLE- += openldap
+COLLECTD_ENABLE- += openvpn
+COLLECTD_ENABLE- += oracle
+COLLECTD_ENABLE- += perl
+COLLECTD_ENABLE- += pf
+COLLECTD_ENABLE- += pinba
+COLLECTD_ENABLE- += ping
+COLLECTD_ENABLE- += postgresql
+COLLECTD_ENABLE- += powerdns
+COLLECTD_ENABLE- += processes
+COLLECTD_ENABLE- += protocols
+COLLECTD_ENABLE- += python
+COLLECTD_ENABLE- += redis
+COLLECTD_ENABLE- += routeros
+COLLECTD_ENABLE- += rrdcached
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_RRDTOOL) += rrdtool
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_SENSORS) += sensors
+COLLECTD_ENABLE- += serial
+COLLECTD_ENABLE- += sigrok
+COLLECTD_ENABLE- += smart
+COLLECTD_ENABLE- += snmp
+COLLECTD_ENABLE- += statsd
+COLLECTD_ENABLE- += swap
+COLLECTD_ENABLE-$(PTXCONF_COLLECTD_SYSLOG) += syslog
+COLLECTD_ENABLE- += table
+COLLECTD_ENABLE- += tail
+COLLECTD_ENABLE- += tail_csv
+COLLECTD_ENABLE- += tape
+COLLECTD_ENABLE- += target_notification
+COLLECTD_ENABLE- += target_replace
+COLLECTD_ENABLE- += target_scale
+COLLECTD_ENABLE- += target_set
+COLLECTD_ENABLE- += target_v5upgrade
+COLLECTD_ENABLE- += tcpconns
+COLLECTD_ENABLE- += teamspeak2
+COLLECTD_ENABLE- += ted
+COLLECTD_ENABLE- += thermal
+COLLECTD_ENABLE- += threshold
+COLLECTD_ENABLE- += tokyotyrant
+COLLECTD_ENABLE- += turbostat
+COLLECTD_ENABLE- += unixsock
+COLLECTD_ENABLE- += uptime
+COLLECTD_ENABLE- += users
+COLLECTD_ENABLE- += uuid
+COLLECTD_ENABLE- += varnish
+COLLECTD_ENABLE- += virt
+COLLECTD_ENABLE- += vmem
+COLLECTD_ENABLE- += vserver
+COLLECTD_ENABLE- += wireless
+COLLECTD_ENABLE- += write_graphite
+COLLECTD_ENABLE- += write_http
+COLLECTD_ENABLE- += write_kafka
+COLLECTD_ENABLE- += write_log
+COLLECTD_ENABLE- += write_mongodb
+COLLECTD_ENABLE- += write_prometheus
+COLLECTD_ENABLE- += write_redis
+COLLECTD_ENABLE- += write_riemann
+COLLECTD_ENABLE- += write_sensu
+COLLECTD_ENABLE- += write_tsdb
+COLLECTD_ENABLE- += xencpu
+COLLECTD_ENABLE- += xmms
+COLLECTD_ENABLE- += zfs_arc
+COLLECTD_ENABLE- += zone
+COLLECTD_ENABLE- += zookeeper
+
ifneq ($(call remove_quotes,$(COLLECTD_ENABLE-y)),)
COLLECTD_CONF_OPT += --enable-$(subst $(space),$(space)--enable-,$(strip $(COLLECTD_ENABLE-y)))
endif
@@ -198,7 +228,6 @@ $(STATEDIR)/collectd.targetinstall:
@$(call install_lib, collectd, 0, 0, 0644, libcollectdclient)
@$(call install_copy, collectd, 0, 0, 0755, -, /usr/sbin/collectd)
@$(call install_alternative, collectd, 0, 0, 0644, /etc/collectd.conf)
- @$(call install_copy, collectd, 0, 0, 0644, /etc/collectd)
@$(call install_copy, collectd, 0, 0, 0644, -, /usr/share/collectd/types.db)
@$(call install_copy, collectd, 0, 0, 0755, /usr/lib/collectd)
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2016-12-19 20:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 20:36 [ptxdist] [PATCH 00/18] Patchset for ptxdist Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 01/18] nettle: update 2.7.1 -> 3.3 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 02/18] iputils: update s20121221 -> s20161105 Clemens Gruber
2017-01-05 15:45 ` Michael Olbrich
2016-12-19 20:36 ` Clemens Gruber [this message]
2016-12-19 20:36 ` [ptxdist] [PATCH 04/18] dbus: bump version 1.10.10 -> 1.10.14 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 05/18] file: update 5.24 -> 5.29 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 06/18] glib: bump version 2.50.1 -> 2.50.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 07/18] iperf: update 2.0.5 -> 2.0.9 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 08/18] iproute2: update 4.8.0 -> 4.9.0 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 09/18] projectroot: Fix HTML syntax in examples Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 10/18] rrdtool: update 1.4.9 -> 1.6.0 and make more modular Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 11/18] sqlite: update 3.14.1 -> 3.15.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 12/18] systemd-bootchart: bump version 230 -> 231 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 13/18] tmux: update 1.9a -> 2.3 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 14/18] u-boot-tools: bump version 2016.07 -> 2016.11 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 15/18] util-linux-ng: update 2.28.2 -> 2.29 and fix URL deduction Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 16/18] picocom: bump version 1.7 -> 2.2 Clemens Gruber
2016-12-19 20:36 ` [ptxdist] [PATCH 17/18] libgcrypt: update 1.7.3 -> 1.7.5 Clemens Gruber
2017-01-05 16:26 ` Michael Olbrich
2016-12-19 20:36 ` [ptxdist] [PATCH 18/18] netperf: new package Clemens Gruber
2017-01-05 16:50 ` [ptxdist] [PATCH 00/18] Patchset for ptxdist Michael Olbrich
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=20161219203631.29275-4-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