2014-06-11 14:42:42 +00:00
#
2016-02-03 16:47:51 +00:00
# Copyright (C) 2006-2016 OpenWrt.org
2014-06-11 14:42:42 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := collectd
2020-09-07 14:58:08 +00:00
PKG_VERSION := 5.12.0
2023-01-22 19:03:57 +00:00
PKG_RELEASE := 42
2014-06-11 14:42:42 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
2017-01-26 11:23:12 +00:00
PKG_SOURCE_URL := https://collectd.org/files/ \
https://github.com/collectd/collectd/releases/download/collectd-$( PKG_VERSION)
2020-09-07 14:58:08 +00:00
PKG_HASH := 5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
2014-06-11 14:42:42 +00:00
PKG_FIXUP := autoreconf
PKG_REMOVE_FILES := aclocal.m4 libltdl/aclocal.m4
2017-01-26 11:23:12 +00:00
PKG_MAINTAINER := Jo-Philipp Wich <jo@mein.io>, Hannu Nyman <hannu.nyman@iki.fi>
2019-09-12 12:13:21 +00:00
PKG_CPE_ID := cpe:/a:collectd:collectd
2014-06-11 14:42:42 +00:00
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_USE_MIPS16 := 0
2021-03-08 13:40:34 +00:00
PKG_CONFIG_DEPENDS := \
PACKAGE_COLLECTD_ENCRYPTED_NETWORK \
PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE
2014-06-11 14:42:42 +00:00
COLLECTD_PLUGINS_DISABLED := \
2014-09-09 16:45:14 +00:00
amqp \
2019-06-16 18:12:52 +00:00
ampq1 \
2014-06-11 14:42:42 +00:00
apple_sensors \
2014-09-09 16:45:14 +00:00
aquaero \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
barometer \
2014-06-11 14:42:42 +00:00
battery \
2020-03-22 20:48:31 +00:00
buddyinfo \
capabilities \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
ceph \
2014-09-09 16:45:14 +00:00
cgroups \
2017-01-26 11:23:12 +00:00
cpusleep \
2020-09-07 14:58:08 +00:00
curl_jolokia \
2014-06-11 14:42:42 +00:00
curl_json \
2014-09-09 16:45:14 +00:00
curl_xml \
2014-07-18 10:01:33 +00:00
dbi \
2020-03-22 20:48:31 +00:00
dcpmm \
2017-11-30 18:52:34 +00:00
dpdkevents \
2017-01-26 11:23:12 +00:00
dpdkstat \
2020-03-23 05:58:25 +00:00
dpdk_telemetry \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
drbd \
fhcount \
2014-06-11 14:42:42 +00:00
genericjmx \
gmond \
2017-01-26 11:23:12 +00:00
gps \
2019-06-16 18:12:52 +00:00
gpu_nvidia \
2017-01-26 11:23:12 +00:00
grpc \
2014-06-11 14:42:42 +00:00
hddtemp \
2017-01-26 11:23:12 +00:00
hugepages \
2020-09-07 14:58:08 +00:00
infiniband \
2017-11-30 18:52:34 +00:00
intel_pmu \
2017-01-26 11:23:12 +00:00
intel_rdt \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
ipc \
2014-06-11 14:42:42 +00:00
ipmi \
2020-03-22 20:48:31 +00:00
ipstats \
2014-06-11 14:42:42 +00:00
ipvs \
java \
2020-03-22 20:48:31 +00:00
logparser \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
log_logstash \
lvm \
2014-09-09 16:45:14 +00:00
lpar \
2017-03-01 07:54:23 +00:00
madwifi \
2014-06-11 14:42:42 +00:00
mbmon \
2017-11-30 18:52:34 +00:00
mcelog \
2014-09-09 16:45:14 +00:00
md \
2020-09-07 14:58:08 +00:00
mdevents \
2014-06-11 14:42:42 +00:00
memcachec \
memcached \
2014-09-09 16:45:14 +00:00
mic \
2014-06-11 14:42:42 +00:00
monitorus \
multimeter \
netapp \
2020-09-07 14:58:08 +00:00
netstat_udp \
2014-06-11 14:42:42 +00:00
nfs \
notify_desktop \
notify_email \
2017-01-26 11:23:12 +00:00
notify_nagios \
2014-09-09 16:45:14 +00:00
numa \
2020-03-26 16:44:42 +00:00
onewire \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
openldap \
2014-06-11 14:42:42 +00:00
openvz \
oracle \
2017-11-30 18:52:34 +00:00
ovs_events \
ovs_stats \
2019-06-16 18:12:52 +00:00
pcie_errors \
2014-06-11 14:42:42 +00:00
perl \
2014-09-09 16:45:14 +00:00
pf \
2014-06-11 14:42:42 +00:00
pinba \
2019-11-16 12:46:05 +00:00
procevent \
2014-06-11 14:42:42 +00:00
python \
2020-03-22 20:48:31 +00:00
redfish \
2014-09-09 16:45:14 +00:00
redis \
2014-06-11 14:42:42 +00:00
rrdcached \
serial \
2014-09-09 16:45:14 +00:00
sigrok \
2020-03-22 20:48:31 +00:00
slurm \
2017-11-30 18:52:34 +00:00
snmp_agent \
2014-09-09 16:45:14 +00:00
statsd \
2017-11-30 18:52:34 +00:00
synproxy \
2019-11-16 12:46:05 +00:00
sysevent \
2014-06-11 14:42:42 +00:00
tape \
tokyotyrant \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
turbostat \
2014-06-11 14:42:42 +00:00
uuid \
2014-09-09 16:45:14 +00:00
varnish \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
virt \
2014-06-11 14:42:42 +00:00
vserver \
2020-03-22 20:48:31 +00:00
write_influxdb_udp \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
write_kafka \
write_log \
2014-09-09 16:45:14 +00:00
write_mongodb \
2017-01-26 11:23:12 +00:00
write_prometheus \
2014-09-09 16:45:14 +00:00
write_redis \
write_riemann \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
write_sensu \
2019-06-16 18:12:52 +00:00
write_stackdriver \
write_syslog \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
write_tsdb \
2017-01-26 11:23:12 +00:00
xencpu \
2014-06-11 14:42:42 +00:00
xmms \
zfs_arc \
2017-01-26 11:23:12 +00:00
zone \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
zookeeper
2014-06-11 14:42:42 +00:00
COLLECTD_PLUGINS_SELECTED := \
apache \
apcups \
ascent \
bind \
2017-02-23 08:32:14 +00:00
chrony \
2014-06-11 14:42:42 +00:00
conntrack \
contextswitch \
cpu \
2016-10-11 07:05:13 +00:00
cpufreq \
2014-06-11 14:42:42 +00:00
csv \
curl \
df \
2020-12-11 19:19:02 +00:00
dhcpleases \
2014-06-11 14:42:42 +00:00
disk \
dns \
email \
2015-08-26 18:35:35 +00:00
entropy \
2018-11-27 16:09:24 +00:00
ethstat \
2014-06-11 14:42:42 +00:00
exec \
filecount \
fscache \
interface \
2021-01-29 09:40:14 +00:00
ipstatistics \
2014-06-11 14:42:42 +00:00
iptables \
irq \
iwinfo \
load \
logfile \
2019-01-24 12:53:17 +00:00
lua \
2017-02-23 08:32:14 +00:00
match_empty_counter \
match_hashed \
match_regex \
match_timediff \
match_value \
2014-06-11 14:42:42 +00:00
memory \
modbus \
2018-02-15 07:27:02 +00:00
mqtt \
2014-06-11 14:42:42 +00:00
mysql \
netlink \
network \
nginx \
ntpd \
2020-04-05 15:14:22 +00:00
nut \
2014-06-11 14:42:42 +00:00
olsrd \
openvpn \
ping \
postgresql \
powerdns \
processes \
protocols \
2019-06-10 13:18:26 +00:00
routeros \
2014-06-11 14:42:42 +00:00
rrdtool \
sensors \
2021-03-08 08:56:45 +00:00
smart \
2014-06-11 14:42:42 +00:00
snmp \
2020-12-11 20:53:02 +00:00
snmp6 \
2021-01-05 20:39:10 +00:00
swap \
2014-06-11 14:42:42 +00:00
syslog \
table \
2014-09-09 16:45:14 +00:00
tail \
2016-08-22 14:51:59 +00:00
tail_csv \
2014-06-11 14:42:42 +00:00
tcpconns \
teamspeak2 \
2014-09-09 16:45:14 +00:00
ted \
2014-06-11 14:42:42 +00:00
thermal \
2019-02-08 13:52:23 +00:00
threshold \
2020-06-17 12:59:18 +00:00
ubi \
2014-06-11 14:42:42 +00:00
unixsock \
uptime \
users \
vmem \
wireless \
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
write_graphite \
2021-03-08 12:00:32 +00:00
write_http
2014-06-11 14:42:42 +00:00
PKG_CONFIG_DEPENDS := \
$( patsubst %,CONFIG_PACKAGE_collectd-mod-%,$( subst _,-,$( COLLECTD_PLUGINS_SELECTED) ) ) \
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / k e r n e l . m k
2018-07-13 20:46:47 +00:00
# collectd-mod-mysql needs iconv
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
2014-06-11 14:42:42 +00:00
d e f i n e P a c k a g e / c o l l e c t d / D e f a u l t
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Lightweight system statistics collection daemon
2017-01-26 11:23:12 +00:00
URL:= https://collectd.org/
2014-06-11 14:42:42 +00:00
e n d e f
d e f i n e P a c k a g e / c o l l e c t d
$( call Package /collectd /Default )
2019-01-24 12:53:17 +00:00
DEPENDS:= +libpthread \
+zlib \
+libltdl \
2019-02-27 11:09:23 +00:00
+jshn \
2019-01-24 12:53:17 +00:00
+PACKAGE_collectd-mod-lua:liblua
2014-06-11 14:42:42 +00:00
MENU:= 1
e n d e f
d e f i n e P a c k a g e / c o l l e c t d / d e s c r i p t i o n
collectd is a small daemon which collects system information periodically
and provides mechanismns to store the values in a variety of ways.
e n d e f
2018-01-17 19:34:15 +00:00
d e f i n e P a c k a g e / c o l l e c t d / c o n f i g
config PACKAGE_COLLECTD_ENCRYPTED_NETWORK
bool "Enable ability to use encrypted networking"
default n
depends on PACKAGE_collectd
select PACKAGE_collectd-mod-network
2021-03-08 13:40:34 +00:00
config PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE
bool "Enable debug output"
default n
depends on PACKAGE_collectd
help
Enables the compiler option that collectd is compiled with
debugging support. This is used at development stages to get
more messages from the collectd during development.
2018-01-17 19:34:15 +00:00
e n d e f
2014-06-11 14:42:42 +00:00
# common configure args
CONFIGURE_ARGS += \
2017-01-26 11:23:12 +00:00
--disable-werror \
2014-06-11 14:42:42 +00:00
--enable-daemon \
--with-nan-emulation \
2017-02-06 17:20:15 +00:00
--with-libyajl= no \
2021-03-08 08:56:45 +00:00
--without-perl-bindings
2015-12-10 02:09:59 +00:00
2014-06-11 14:42:42 +00:00
CONFIGURE_VARS += \
CFLAGS = " $$ $$ CFLAGS $( FPIC) " \
LDFLAGS = " $$ $$ LDFLAGS -lm -lz " \
2019-01-24 12:53:17 +00:00
KERNEL_DIR = " $( LINUX_DIR) "
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -lua ) , )
CONFIGURE_VARS += \
LDFLAGS = " $$ $$ LDFLAGS -llua "
e n d i f
2014-06-11 14:42:42 +00:00
2018-01-17 19:34:15 +00:00
i f n e q ( $( CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK ) , )
CONFIGURE_ARGS += \
--with-libgcrypt= $( STAGING_DIR) /usr
CONFIGURE_VARS += \
GCRYPT_LIBS = "-lgcrypt"
e l s e
CONFIGURE_ARGS += \
--without-libgcrypt
e n d i f
2021-03-08 13:40:34 +00:00
i f e q ( $( CONFIG_PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE ) , y )
CONFIGURE_ARGS += \
--enable-debug
e l s e
CONFIGURE_ARGS += \
--disable-debug
e n d i f
2014-06-11 14:42:42 +00:00
CONFIGURE_PLUGIN = \
$( foreach m, $( 1) , \
$( if $( CONFIG_PACKAGE_collectd-mod-$( subst _,-,$( m) ) ) ,--enable-$( m) ,--disable-$( m) ) \
)
CONFIGURE_ARGS += \
$( call CONFIGURE_PLUGIN,$( COLLECTD_PLUGINS_SELECTED) ) \
$( call CONFIGURE_PLUGIN,$( COLLECTD_PLUGINS_DISABLED) ) \
# exception: mod-ascent needs libxml2
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -ascent ) , )
CONFIGURE_VARS += \
CPPFLAGS = " $$ $$ CPPFLAGS -I $( STAGING_DIR) /usr/include/libxml2 "
e n d i f
i f n e q ( $( CONFIG_BIG_ENDIAN ) , )
CONFIGURE_ARGS += --with-fp-layout= endianflip
e l s e
CONFIGURE_ARGS += --with-fp-layout= nothing
e n d i f
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -postgresql ) , )
CONFIGURE_ARGS += --with-libpq= " $( STAGING_DIR) /usr/ "
e n d i f
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -mysql ) , )
CONFIGURE_ARGS += --with-libmysql= " $( STAGING_DIR) /usr/ "
e n d i f
# exception: mod-netlink needs libnetlink from iproute
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -netlink ) , )
CONFIGURE_ARGS += --with-libnetlink= " $( STAGING_DIR) /usr "
e n d i f
# exception: mod-modbus needs libmodbus
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -modbus ) , )
CONFIGURE_ARGS += --with-libmodbus= " $( STAGING_DIR) /usr "
e n d i f
# exception: mod-rrdtool needs rrdtool-1.0.x
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -rrdtool ) , )
CONFIGURE_ARGS += --with-librrd= " $( STAGING_DIR) /usr/lib/rrdtool-1.0 "
e n d i f
2021-03-08 08:56:45 +00:00
# exception: mod-smart needs libatasmart
i f n e q ( $( CONFIG_PACKAGE_collectd -mod -smart ) , )
CONFIGURE_ARGS += \
--with-libatasmart= " $( STAGING_DIR) /usr " \
--with-libudev= " $( STAGING_DIR) /usr "
e l s e
CONFIGURE_ARGS += --without-libudev
e n d i f
2014-06-11 14:42:42 +00:00
d e f i n e P a c k a g e / c o l l e c t d / c o n f f i l e s
/ e t c / c o l l e c t d . c o n f
2019-02-27 11:09:23 +00:00
/ e t c / c o n f i g / c o l l e c t d
2014-06-11 14:42:42 +00:00
e n d e f
d e f i n e P a c k a g e / c o l l e c t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/collectd $( 1) /usr/sbin/
2019-02-27 11:09:23 +00:00
2014-06-11 14:42:42 +00:00
$( INSTALL_DIR) $( 1) /usr/share/collectd
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/collectd/types.db $( 1) /usr/share/collectd/
2019-02-27 11:09:23 +00:00
2014-06-11 14:42:42 +00:00
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/collectd.init $( 1) /etc/init.d/collectd
2019-02-27 11:09:23 +00:00
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_CONF) files/collectd.uci $( 1) /etc/config/collectd
2014-06-11 14:42:42 +00:00
e n d e f
# 1: plugin name
# 2: plugin title/description
# 3: files
# 4: extra dependency
d e f i n e B u i l d P l u g i n
PKG_CONFIG_DEPENDS += CONFIG_PACKAGE_collectd-mod-$( 1)
define Package/collectd-mod-$( 1)
$$ ( call Package/collectd/Default)
TITLE:= $( 2) plugin
DEPENDS:= collectd $( 4)
endef
define Package/collectd-mod-$( 1) /install
$( INSTALL_DIR) $$ ( 1) /usr/lib/collectd
for m in $( 3) ; do \
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/collectd/$$ $$ $$ $$ { m} .so \
$$ ( 1) /usr/lib/collectd/ ; \
done
2019-02-27 11:09:23 +00:00
if [ -f ./files/usr/share/collectd/plugin/$( 1) .json ] ; then \
$( INSTALL_DIR) $$ ( 1) /usr/share/collectd/plugin ; \
$( INSTALL_DATA) ./files/usr/share/collectd/plugin/$( 1) .json \
$$ ( 1) /usr/share/collectd/plugin/$( 1) .json ; \
fi
2014-06-11 14:42:42 +00:00
endef
$$ ( eval $$ ( call BuildPackage,collectd-mod-$( 1) ) )
e n d e f
2020-05-15 17:42:48 +00:00
d e f i n e B u i l d S c r i p t L u a P l u g i n
PKG_CONFIG_DEPENDS += CONFIG_PACKAGE_collectd-mod-$( 1)
define Package/collectd-mod-$( 1)
$$ ( call Package/collectd/Default)
TITLE:= $( 2) plugin
DEPENDS:= $( 4)
endef
define Package/collectd-mod-$( 1) /install
$( INSTALL_DIR) $$ ( 1) /usr/lib/collectd-mod-lua
for m in $( 3) ; do \
${ INSTALL_DATA } \
./files/lua-scripts/$$ $$ $$ $$ { m} .lua $$ ( 1) /usr/lib/collectd-mod-lua/ ; \
done
if [ -f ./files/usr/share/collectd/plugin/$( 1) .json ] ; then \
$( INSTALL_DIR) $$ ( 1) /usr/share/collectd/plugin ; \
$( INSTALL_DATA) ./files/usr/share/collectd/plugin/$( 1) .json \
$$ ( 1) /usr/share/collectd/plugin/$( 1) .json ; \
fi
endef
$$ ( eval $$ ( call BuildPackage,collectd-mod-$( 1) ) )
e n d e f
2020-04-15 09:37:58 +00:00
d e f i n e B u i l d S c r i p t P l u g i n
PKG_CONFIG_DEPENDS += CONFIG_PACKAGE_collectd-mod-$( 1)
define Package/collectd-mod-$( 1)
$$ ( call Package/collectd/Default)
TITLE:= $( 2) plugin
DEPENDS:= $( 4)
endef
define Package/collectd-mod-$( 1) /install
$( INSTALL_DIR) $$ ( 1) /usr/libexec/collectd
for m in $( 3) ; do \
${ INSTALL_BIN } \
./files/exec-scripts/$$ $$ $$ $$ { m} .sh $$ ( 1) /usr/libexec/collectd/ ; \
done
if [ -f ./files/usr/share/collectd/plugin/$( 1) .json ] ; then \
$( INSTALL_DIR) $$ ( 1) /usr/share/collectd/plugin ; \
$( INSTALL_DATA) ./files/usr/share/collectd/plugin/$( 1) .json \
$$ ( 1) /usr/share/collectd/plugin/$( 1) .json ; \
fi
endef
$$ ( eval $$ ( call BuildPackage,collectd-mod-$( 1) ) )
e n d e f
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPackage ,collectd ) )
#$(eval $(call BuildPlugin,NAME,DESCRIPTION,FILES,DEPENDENCIES))
$(eval $(call BuildPlugin,apache,apache status input,apache,+PACKAGE_collectd-mod-apache : libcurl ))
$( eval $ ( call BuildPlugin ,apcups ,apcups status input ,apcups ,) )
$(eval $(call BuildPlugin,ascent,ascent status input,ascent,+PACKAGE_collectd-mod-ascent : libcurl +PACKAGE_collectd -mod -ascent :libxml 2))
$(eval $(call BuildPlugin,bind,BIND server/zone input,bind,+PACKAGE_collectd-mod-bind : libcurl +PACKAGE_collectd -mod -bind :libxml 2))
2017-02-23 08:32:14 +00:00
$( eval $ ( call BuildPlugin ,chrony ,chrony status input ,chrony ,) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,conntrack ,connection tracking table size input ,conntrack ,) )
$( eval $ ( call BuildPlugin ,contextswitch ,context switch input ,contextswitch ,) )
$( eval $ ( call BuildPlugin ,cpu ,CPU input ,cpu ,) )
2021-08-15 09:47:51 +00:00
$( eval $ ( call BuildPlugin ,cpufreq ,CPU Freq input ,cpufreq ,@( TARGET_x 86||TARGET_x 86_ 64||TARGET_mvebu ||TARGET_ipq 806x ||TARGET_armvirt ||TARGET_ipq 40xx ||TARGET_bcm 27xx_bcm 2709||TARGET_rockchip ||TARGET_mediatek ||TARGET_ipq 807x ) ) ) # Only enable on targets with CPUs supporting frequency scaling
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,csv ,CSV output ,csv ,) )
$(eval $(call BuildPlugin,curl,cURL input,curl,+PACKAGE_collectd-mod-curl : libcurl ))
2014-07-18 10:01:33 +00:00
#$(eval $(call BuildPlugin,dbi,relational database input,dbi,+PACKAGE_collectd-mod-dbi:libdbi))
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,df ,disk space input ,df ,) )
2020-12-11 19:19:02 +00:00
$( eval $ ( call BuildPlugin ,dhcpleases ,show dhcpleases ,dhcpleases ,) )
2021-03-08 08:56:45 +00:00
$(eval $(call BuildPlugin,disk,disk usage/timing input,disk,+PACKAGE_collectd-mod-smart : libudev ))
2014-06-11 14:42:42 +00:00
$(eval $(call BuildPlugin,dns,DNS traffic input,dns,+PACKAGE_collectd-mod-dns : libpcap ))
$( eval $ ( call BuildPlugin ,email ,email output ,email ,) )
2015-08-26 18:35:35 +00:00
$( eval $ ( call BuildPlugin ,entropy ,Entropy amount input ,entropy ,) )
2018-11-27 16:09:24 +00:00
$( eval $ ( call BuildPlugin ,ethstat ,Ethernet adapter statistics input ,ethstat ,) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,exec ,process exec input ,exec ,) )
$( eval $ ( call BuildPlugin ,filecount ,file count input ,filecount ,) )
$( eval $ ( call BuildPlugin ,fscache ,file -system based caching framework input ,fscache ,) )
$( eval $ ( call BuildPlugin ,interface ,network interfaces input ,interface ,) )
2021-01-29 09:40:14 +00:00
$( eval $ ( call BuildPlugin ,ipstatistics ,ipstatistics input ,ipstatistics ,) )
2019-12-31 13:29:12 +00:00
$(eval $(call BuildPlugin,iptables,iptables status input,iptables,+PACKAGE_collectd-mod-iptables : iptables +libip 4tc +libip 6tc ))
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,irq ,interrupt usage input ,irq ,) )
$(eval $(call BuildPlugin,iwinfo,libiwinfo wireless statistics,iwinfo,+PACKAGE_collectd-mod-iwinfo : libiwinfo ))
$( eval $ ( call BuildPlugin ,load ,system load input ,load ,) )
$( eval $ ( call BuildPlugin ,logfile ,log files output ,logfile ,) )
2019-01-24 12:53:17 +00:00
$(eval $(call BuildPlugin,lua,lua input/output,lua,+PACKAGE_collectd-mod-lua : liblua ))
2017-02-23 08:32:14 +00:00
$( eval $ ( call BuildPlugin ,match -empty -counter ,empty -counter match ,match_empty_counter ,) )
$( eval $ ( call BuildPlugin ,match -hashed ,hashed match ,match_hashed ,) )
$( eval $ ( call BuildPlugin ,match -regex ,regex match ,match_regex ,) )
$( eval $ ( call BuildPlugin ,match -timediff ,timediff match ,match_timediff ,) )
$( eval $ ( call BuildPlugin ,match -value ,value match ,match_value ,) )
2018-04-29 08:25:08 +00:00
$(eval $(call BuildPlugin,mysql,MySQL status input,mysql,+PACKAGE_collectd-mod-mysql : libmysqlclient -r ))
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,memory ,physical memory usage input ,memory ,) )
2015-03-13 20:48:39 +00:00
$(eval $(call BuildPlugin,modbus,read variables through libmodbus,modbus,+PACKAGE_collectd-mod-modbus : libmodbus ))
2018-02-15 07:27:02 +00:00
$(eval $(call BuildPlugin,mqtt,transmit data with MQTT,mqtt,+PACKAGE_collectd-mod-mqtt : libmosquitto ))
2015-09-21 14:45:42 +00:00
$(eval $(call BuildPlugin,netlink,netlink input,netlink,+PACKAGE_collectd-mod-netlink : libmnl ))
2018-01-17 19:34:15 +00:00
$(eval $(call BuildPlugin,network,network input/output,network,+PACKAGE_COLLECTD_ENCRYPTED_NETWORK : libgcrypt ))
2014-06-11 14:42:42 +00:00
$(eval $(call BuildPlugin,nginx,nginx status input,nginx,+PACKAGE_collectd-mod-nginx : libcurl ))
$( eval $ ( call BuildPlugin ,ntpd ,NTP daemon status input ,ntpd ,) )
2022-09-18 15:55:03 +00:00
$(eval $(call BuildPlugin,nut,UPS monitoring input,nut,+PACKAGE_collectd-mod-nut : nut -common ))
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,olsrd ,OLSRd status input ,olsrd ,) )
$( eval $ ( call BuildPlugin ,openvpn ,OpenVPN traffic /compression input ,openvpn ,) )
$(eval $(call BuildPlugin,ping,ping status input,ping,+PACKAGE_collectd-mod-ping : liboping ))
$(eval $(call BuildPlugin,postgresql,PostgreSQL status input,postgresql,+PACKAGE_collectd-mod-postgresql : libpq ))
$( eval $ ( call BuildPlugin ,powerdns ,PowerDNS server status input ,powerdns ,) )
2019-06-16 18:12:52 +00:00
$(eval $(call BuildPlugin,processes,process status input,processes,+PACKAGE_collectd-mod-processes : libmnl ))
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,protocols ,network protocols input ,protocols ,) )
2019-06-10 13:18:26 +00:00
$(eval $(call BuildPlugin,routeros,MikroTik RouterOS input,routeros,+PACKAGE_collectd-mod-routeros : librouteros ))
2014-06-11 14:42:42 +00:00
$(eval $(call BuildPlugin,rrdtool,RRDtool output,rrdtool,+PACKAGE_collectd-mod-rrdtool : librrd 1))
2021-09-04 07:53:23 +00:00
$(eval $(call BuildPlugin,sensors,lm_sensors input,sensors,+PACKAGE_collectd-mod-sensors : lm -sensors ))
2021-03-08 08:56:45 +00:00
$(eval $(call BuildPlugin,smart,smart input,smart,+PACKAGE_collectd-mod-smart : libatasmart ))
2014-06-11 14:42:42 +00:00
$(eval $(call BuildPlugin,snmp,SNMP input,snmp,+PACKAGE_collectd-mod-snmp : libnetsnmp ))
2020-12-11 20:53:02 +00:00
$( eval $ ( call BuildPlugin ,snmp 6,snmp 6 input ,snmp 6,) )
2021-01-05 20:39:10 +00:00
$( eval $ ( call BuildPlugin ,swap ,swap input ,swap ,) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,syslog ,syslog output ,syslog ,) )
$( eval $ ( call BuildPlugin ,tail ,tail input ,tail ,) )
2016-08-22 14:51:59 +00:00
$( eval $ ( call BuildPlugin ,tail -csv ,tail CSV input ,tail_csv ,) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,table ,table -like structured file input ,table ,) )
$( eval $ ( call BuildPlugin ,teamspeak 2,TeamSpeak 2 input ,teamspeak 2,) )
2018-09-27 03:39:12 +00:00
$( eval $ ( call BuildPlugin ,ted ,The Energy Detective input ,ted ,) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,tcpconns ,TCP connection tracking input ,tcpconns ,) )
$( eval $ ( call BuildPlugin ,thermal ,system temperatures input ,thermal ,) )
2019-02-08 13:52:23 +00:00
$( eval $ ( call BuildPlugin ,threshold ,Notifications and thresholds ,threshold ,) )
2020-06-17 12:59:18 +00:00
$( eval $ ( call BuildPlugin ,ubi ,Unsorted block images ,ubi ,@NAND_SUPPORT ) )
2014-06-11 14:42:42 +00:00
$( eval $ ( call BuildPlugin ,unixsock ,unix socket output ,unixsock ,) )
$( eval $ ( call BuildPlugin ,uptime ,uptime status input ,uptime ,) )
$( eval $ ( call BuildPlugin ,users ,user logged in status input ,users ,) )
$( eval $ ( call BuildPlugin ,vmem ,virtual memory usage input ,vmem ,) )
$( eval $ ( call BuildPlugin ,wireless ,wireless status input ,wireless ,) )
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
$(eval $(call BuildPlugin,write-graphite,Carbon/Graphite output,write_graphite,+PACKAGE_collectd-mod-write-graphite : libpthread ))
2014-06-11 14:42:42 +00:00
$(eval $(call BuildPlugin,write-http,HTTP POST output,write_http,+PACKAGE_collectd-mod-write-http : libcurl ))
2020-04-15 09:37:58 +00:00
$(eval $(call BuildScriptPlugin,sqm,SQM/qdisc collection,sqm_collectd,+PACKAGE_collectd-mod-sqm : collectd -mod -exec ))
2023-03-23 10:02:07 +00:00
$(eval $(call BuildScriptLuaPlugin,ltq-dsl,Lantiq DSL collection,dsl,@ltq-dsl-app +PACKAGE_collectd-mod-ltq-dsl : collectd -mod -lua +libubus -lua ))