Commit graph

161 commits

Author SHA1 Message Date
Nick Hainke
3c55d11aef collectd: add snmp6 interface
Add collectd plugin allowing to collect IPv6 interface statistics.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-01-09 10:12:20 +02:00
Nick Hainke
7f99516ce5 collectd: add dhcpleases plugin
Count the current dhcpleases. Currently, we use a bash script
that does the same job (Freifunk Berlin). We want to use native
collectd plugin for that.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-12-12 14:59:49 +01:00
Hannu Nyman
28747825df collectd: update to 5.12.0
Update collectd to version 5.12.0.

* Refresh patches
* Remove upstreamed patch 920-fix-ubi-data-source-type.patch
* Backport a patch from upstream to fix a missing define
  (920-backport-netlink-reg-noerror.patch)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-09-07 18:01:21 +03:00
Florian Eckert
6d34208c57 collectd: update PKG_RELEASE
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 20:10:07 +02:00
Florian Eckert
d2d6220476 collectd: remove quotation on interval this is an number
The value is a number and not a string.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 20:09:09 +02:00
Florian Eckert
50f56c2ede collectd: move include line
Currently the init script generates a config file from uci, that has the
include line before the interval line. This means, that anything happening
in the include directory does not yet see the changed Interval.

Moving the include line before the uci generation process fix this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 20:09:09 +02:00
Florian Eckert
5afad91d36 collectd: update PKG_RELEASE
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 13:20:59 +02:00
Florian Eckert
e7054e7e79 collectd: fix ubi data source type
Currently the values are stored in the ubi plugin as data source type
`counter`. But this makes no sense, because the values change very slowly
and I don't want to know the rate of change. It is better to store the
value as data source type `gauge`. Then I can see the current value.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 13:20:26 +02:00
Florian Eckert
a481a2006c collectd: add ubi uci and plugin info
Add uci binding for ubi plugin.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 13:20:11 +02:00
Florian Eckert
46f2476875 collectd: enable ubi plugin
Enable ubi plugin.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-24 13:19:57 +02:00
Kevin Darbyshire-Bryant
c2c91ea99e collectd: sqm_collect: tidy interval string handling
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-05-25 22:37:17 +01:00
Kevin Darbyshire-Bryant
947c85bff0 collectd: sqm_collectd: improve error handling
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-05-25 12:39:53 +01:00
Kevin Darbyshire-Bryant
a809dc6f3b collectd: Improve sqm_collectd error reporting
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-05-17 16:17:07 +01:00
Kevin Darbyshire-Bryant
c8640d1f68 collectd: sqm_collectd improve interface name filter
Increase the range of characters that get substituted by '_' so the
shell doesn't complain about illegal variable names.

Primarily done to catch '.' and '-' but who knows what funnies will
appear in i/f names.

It's a shame that busybox ash doesn't understand :alnum:

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-05-07 10:48:45 +01:00
Hannu Nyman
03162ee920 collectd: bump PKG_RELEASE
Bump PKG_RELEASE on behalf of 38235de9c

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-05 16:52:48 +03:00
Kevin Darbyshire-Bryant
38235de9c3 collectd: SQM collect data from some qdiscs
Add a script that can collect data from mq (multi queue) and cake
qdiscs.

Script is reliant on collectd's 'exec' module.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-05-05 12:00:56 +01:00
Florian Eckert
bb666cc9ff collectd: add syslog json plugin
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 14:51:14 +02:00
Hannu Nyman
18cf4a15ca Revert "collectd: disable nut plugin temporarily"
This reverts commit 97dbc515e5.

libgd has been been fixed to provide correct pkgconfig info,
so that nut again compiles in buildbot. Thus the nut plugin
can be re-enabled in collectd.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-04-05 18:14:22 +03:00
Hannu Nyman
97dbc515e5 collectd: disable nut plugin temporarily
Disable nut plugin for now, as nut is currently
failing to build in buildbot (maybe due to libgd),
and the nut plugin prevents compiling collectd itself.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-04-04 18:12:11 +03:00
Hannu Nyman
286557e906 collectd: disable onewire plugin, BROKEN since 2009
Mark the onewire plugin as disabled, as the plugin
has been marked BROKEN since it was introduced in 2009 by
https://git.openwrt.org/?p=openwrt/svn-archive/packages.git;a=commitdiff;h=0de38b88d6ba8c52b8386d3059baba7dca22961f

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-03-26 18:48:52 +02:00
Hannu Nyman
b936fc4e0d collectd: disable dpdk_telemetry module
Explicitly disable the new dpdk_telemetry module to fix
compilation in buildbot.
(other dpdk modules are aleady disabled)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-03-23 07:58:25 +02:00
Hannu Nyman
1d11a0c892 collectd: update to 5.11.0
* Update collectd to version 5.11.0
* Refresh patches

Release notes:
https://github.com/collectd/collectd/releases/tag/collectd-5.11.0

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-03-22 22:48:31 +02:00
Kevin Darbyshire-Bryant
d5717f3930 collectd: adjust dependecies for iptables bump
iptables 1.8.4 drops support for a combined libiptc, providing split
libip4tc & libip6tc instead.  Adjust collectd dependencies in advance of
iptables bump from 1.8.3 to 1.8.4

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-03-15 15:48:27 +00:00
Adrian Schmutzler
22d7aa0bf4 collectd: apply brcm2708 target rename to bcm27xx to dependencies
Since the brcm2708 target has been renamed to bcm27xx in openwrt
repo, update the dependency to the target in this package.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-02-11 14:02:57 +01:00
Marcin Jurkowski
3763b238e7 collectd: add vmem uci config
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2019-12-11 00:22:47 +01:00
Hannu Nyman
5e0d5c9c7f collectd: enable cpufreq module for ipq40xx and brcm2708_bcm2709
As some ipq40xx CPUs support frequency scaling, enable building
collectd-mod-cpufreq for ipq40xx (for private builds) and
its package architecture brcm2708_bcm2709 (for buildbot)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-11-23 20:47:18 +02:00
Hannu Nyman
4cdc7d1cec collectd: update to 5.10.0
Update collectd to 5.10.0
* leave new plugins as disabled for now (procevent, sysevent)
* refresh patches. Remove unenecessary version fix

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-11-16 14:46:05 +02:00
Hannu Nyman
b295c9cff2 collectd: adjust reaction to ntp time at boot time
Adjust the reaction to a polling interval timestamp that references
to a past time.

Past timestamps can happen when ntpd adjusts router's time after network
connectivity is obtained after boot. Collectd shows warnings for each plugin
as it tries to enter new values with the same timestamp as the previous one.

This patch adjusts the next polling time to be now+2 seconds for the main
loop and for the plugin-specific read loops. That avoids the warnings, but
does not overreact in case there are shorter polling intervals or the time
gets adjusted for other reasons.

Additionally some debug statements are aded, but they are visible only
when --enable-debug configure option is used in Makefile.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-11-03 17:54:22 +02:00
Hannu Nyman
fa9163824b collectd: fix upstream bug in 5.9.2 version string
Fix the missing version bump in the upstream source code
to display the correct version 5.9.2

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-10-13 11:21:24 +03:00
Hannu Nyman
213969e6e4 collectd: update to 5.9.2
Update collectd to 5.9.2

Mainly bug fixes:
dfb9dd09fe/ChangeLog

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-10-09 20:56:21 +03:00
Florian Eckert
b84edbe2c7 collectd: bump PKG_PACKAGE version
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-20 16:12:26 +02:00
Florian Eckert
f4349995e6 collectd: add reload and service trigger
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-20 16:09:26 +02:00
Florian Eckert
2b221b5b06 collectd: add logfile plugin definitions
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-20 16:09:24 +02:00
Rosen Penev
ea350a3b4c
Merge pull request #10018 from ja-pa/treewide-cpe-id
treewide: add PKG_CPE_ID for better cvescanner coverage
2019-09-17 13:35:49 -07:00
Jan Pavlinec
299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Florian Eckert
47bfef3d7a collectd: bump PKG_PACKAGE version
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-17 10:16:39 +02:00
Florian Eckert
6141aa2f23 collectd: add iptables uci config
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-17 10:15:46 +02:00
Florian Eckert
7d3cbda4af collectd: add network uci config
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-17 10:15:34 +02:00
Florian Eckert
1205ab461b collectd: add curl uci config
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-17 10:15:26 +02:00
Florian Eckert
55eb459887 collectd: add apcups uci config
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-17 10:15:18 +02:00
Florian Eckert
8260ce1789 collectd: bump PKG_RELEASE number
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-13 13:02:27 +02:00
Florian Eckert
1082477fbc collectd: add new memory config values
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-13 13:01:23 +02:00
Florian Eckert
cae6563091 collectd: add new cpu config values
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-09-13 13:00:49 +02:00
Yousong Zhou
af2e419c26 collectd: bump PKG_RELEASE to 4
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-08-10 09:52:22 +08:00
Yousong Zhou
2f66fa5c23 collectd: remove the patch scaling ping_droprate from 0-1 to 0-100
Upstream project's behaviour of reporting this data source in range 0-1
is used by at least CentOS 7 collectd 5.8.1, very likely the same
behaviour is also in widely use by other distributions.

The change is important for providing consistent experience across
collectd deployments on different environments

Ref: https://github.com/collectd/collectd/pull/3244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-08-10 09:52:22 +08:00
Yousong Zhou
6583414797 collectd: use uname to get default Hostname
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-08-10 09:52:22 +08:00
Yousong Zhou
02840f4c2a collectd: log stderr output
Collectd without log type plugin loaded will write log lines to stderr.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-08-10 09:52:22 +08:00
Florian Eckert
4eaf3e4642 collectd: enable threshold plugin
The only action the Threshold plugin takes itself is to generate and
dispatch a notification. Other plugins can register to receive
notifications and perform appropriate further actions.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-30 12:36:37 +02:00
Sven Roederer
4261f45734 collectd: build RouterOS modules
This allows collectd to get data of Mikrotik devices in a improved way than via SNMP.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2019-07-15 00:19:32 +02:00
Florian Eckert
6c64f8f4ba collectd: move jshn.sh include to remove warning
Redmine-patch-id: 3680
If I build an image with the imagebuilder I get the following output
during image building:

../root-x86/etc/init.d/collectd: line 4: /usr/share/libubox/jshn.sh:
No such file or directory

To remove this messsage move include to the needed postion, so that the
message does not occur during image building on the host system anymore.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-04 13:14:40 +02:00
Hannu Nyman
08d759f14a collectd: update to 5.9.0
Update collectd to version 5.9.0

* remove backported upstream patches (sensors, modbus)
* remove lua patch that has been been implemented upstream
  (See collectd PR 3144)
* refresh patches and accommodate into upstream path changes
* place the 'stations' datatype for iwinfo in alpbetically
  correct place in types.db
* add libmnl dependency to 'processes' plugin required for the
  new Linux process Delay Accounting capability.
  (Alternatively the capability & requirement might be patched away
   in Makefile.am, HAVE_LIBTASKSTATS from collectd_4ea7a572)

* new plugins (disabled): ampq1, gpu_nvidia, pcie_errors,
                          write_stackdriver, write_syslog

compile-tested: ar71xx/WNDR3700 (all plugins)
run-tested: ar71xx/WNDR3700 (selected plugins)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-16 22:18:04 +03:00
Florian Eckert
3d15ebca31 collectd: add uci config support
Add uci config support.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-25 13:01:42 +02:00
Florian Eckert
d826eb27f4 collectd: update forgotten PKG_RELEASE number after last change
Update PKG_RELEASE mumber.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-25 12:57:54 +02:00
Florian Eckert
6382a043b0
Merge pull request #8138 from TDT-AG/pr/20190206-collectd
collectd: enable lua support
2019-04-25 12:44:31 +02:00
Florian Eckert
30db5cc1c1 collectd: fix lua callback registration
If you want to register more than one lua plugin, you cannot start the
collectd.

You get always the error message:

"The read function "lua/(null)" is already registered. Check for
duplicates in your configuration!"

This is not what I expect and what the documenation says.
With this change it is now possible to registrate more then one lua
Script.

See https://github.com/collectd/collectd/pull/2379

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-25 11:13:52 +02:00
Florian Eckert
be86e43e22 collectd: enable lua support
This will enable the lua support for collectd.
The new package name is collectd-mod-lua

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-25 11:13:52 +02:00
Daniel Golle
f70364df8b collectd: backport modbus improvements
* 938897a2 Add scale and shift to modbus plugin
 * 60280b80 correcting all the wrongs
 * a00ab529 Add support for RS485 to modbus plugin

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-04-14 03:18:24 +02:00
Hannu Nyman
1f0a005722 collectd: remove lm-sensors version upper limit
Backport an upstream patch to remove the upper limit of
lm-sensors version check, so that using lm-sensors 3.5.0
will work.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-01-12 10:39:24 +02:00
Petko Bordjukov
dbdd7ead23 collectd: Introduce collectd-mod-ethstat
The ethstat plugin for collectd provides a convenient way to track a large list
of variables associated with network interfaces such as channel busy time and
many others.

A list of the available variables for a given interface may be acquired by
running ethtool -S <interface>

Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>
2018-11-28 12:34:33 +02:00
Hannu Nyman
29eac13d8f collectd: update to 5.8.1
Update collectd to version 5.8.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-10-26 21:46:24 +03:00
Yousong Zhou
e38c100612 treewide: remove obsolete references to avr32
This is a long overdue followup commit to openwrt/openwrt@5d9eeab
("build: remove obsolete references to cris and avr32")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-28 12:03:20 +08:00
Hannu Nyman
3d4c3c3246
Merge pull request #6424 from micmac1/collectd-uclibc-iconv
collectd: fix uclibc build issue
2018-07-15 21:01:25 +03:00
Sebastian Kemper
b695c1150a collectd: include nls.mk for mysql plugin
libmariadb 10.2 needs to be linked in together with iconv.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-13 22:46:48 +02:00
Marc Benoit
b33ec70c95 utils/collectd: run with low priority
Even on a powerful platform a collectd process'
activities are sometimes affecting throoughput and
latency. This is a backgroud process, that should not
be running with default priority.
Even if it is a little deplayed, that is not a worry in
this case. The routing should be the main priority,
stats collection can wait a bit.

Tested on Netgear R7800
Signed-off-by: Marc Benoit <marcb62185@gmail.com>
Make niceness more moderate, bump version.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-07-08 10:14:35 +03:00
Sebastian Kemper
511868f004 collectd: enable mysql plugin
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-29 10:25:11 +02:00
Daniel Golle
59ec4cc5d7 collectd: modbus: backport support for little-endian values
Support for little-endian word-order of 32-bit fields was added
upstream recently. Import the corresponding PR
https://github.com/collectd/collectd/pull/2660
into a local patch and bump package release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-02-28 12:51:28 +01:00
Hannu Nyman
f893929455 collectd: enable MQTT plugin
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-02-15 09:27:02 +02:00
Jonathan McDowell
4ba4d8232d utils/collectd: Re-add option to enable encrypted network output
The collectd network plugin has the ability to sign and/or encrypt its
traffic, allowing secure interaction with other collectd instances. This
had been disabled due to issues with the collectd build system.
Fix up the configure parameters to work correctly and re-add the option.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
2018-01-17 22:03:32 +00:00
Thomas Huehn
55e530747f collectd: upgrade package collectd to version 5.8.0
This patch upgrades the collectd package from 5.7.2 to 5.8.2.
All openwrt patches got either updated or deleted in case they
are already included into upstream collectd.
The new collectd 5.8.0 package compiles and got tested on current
lede trunk with latest luci on an PCengines APU. All default plugins
(enabled via Openwrt  Makefile) - so also iwinfo - are running fine
with the new version.

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>

Amended with the following changes:

* preserve git file history by avoiding unnecessary patch renames
* mark new plugins introduced with 5.8 branch as disabled

Compile tested all plugins with ipq806x

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-12-06 10:44:11 +02:00
Hannu Nyman
63a45e6de3 collectd: uptime plugin: apply fix from upstream
Uptime plugin fails to adjust for system time changes after boot.
As Openwrt/LEDE routers usually do not have a RTC, the system time
gets adjusted with NTP possibly after collectd has already started.
But collectd continues to use the initial time set by 'sysfixtime',
which can lead to incorrect uptime calculations.

Apply a proposed fix from upstream that uses /proc/uptime
Reference to https://github.com/collectd/collectd/pull/2034

Fixes #4819

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-09-15 00:18:34 +03:00
Hannu Nyman
afeb8d0caa collectd: update to 5.7.2
* update collectd to 5.7.2
* drop backported upstream patch that is now in release
* refresh patches

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-06-10 22:12:52 +03:00
Hannu Nyman
b3ed64c441 collectd: build cpufreq also for armvirt target
Enable collectd-mod-cpufreq also for armvirt to make it
available for ipq806x devices in LEDE buildbot snapshots.

LEDE phase2 buildbot for arm_cortex-a15_neon-vfpv4 that is
the package arch for ipq806x, uses armvirt SDK instead of
ipq806x SDK.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-28 19:07:27 +03:00
Hannu Nyman
b7ae80dc69 collectd: upstream fix for vulnerability in network plugin
Import an upstream fix for a DDoS vulnerability in the
network plugin: CVE-2017-7401

Refresh patches.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-20 18:52:08 +03:00
Hannu Nyman
f213e6dd2d collectd: disable plugin for the depracated madwifi driver
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-03-01 09:54:23 +02:00
Miroslav Lichvar
e4bf8b7c32 collectd: package chrony and match plugins
Signed-off-by: Miroslav Lichvar <mlichvar0@gmail.com>
2017-02-23 10:53:14 +01:00
Hannu Nyman
ca4706eedc collectd: disable libyajl detection
Disable also detection for libyajl that buildbot picked up.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-06 19:20:15 +02:00
Hannu Nyman
d1441d0424 collectd: avoid libcap dependency
Buildbot revealed that Collectd 5.7.1 uses libcap to evaluate system
capabilities and display advice on some plugins (dns, iptables, exec,
ping, ceph, turbostat).

Disable the check in configure.ac in order to avoid a dependency
for libcap. (It is not that big, only 6 kB .ipk, but still avoid that.)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-06 16:40:43 +02:00
Hannu Nyman
616520a76e collectd: remove encryption feature from network plugin
Remove the encryption functionality from the network plugin.
It is a non-core functionality and causes a need for additional
dependency on the main program when enabled in 5.7.1.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-06 11:32:38 +02:00
Hannu Nyman
a3b019fce5 collectd: fix 5.7.1 compilation with encrypted network
The encrypted network feature seems to have changed between 5.5.3 and 5.7.1.
Adjust Makefile to enable compilation with that feature.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-06 11:32:38 +02:00
Hannu Nyman
2fc5a82b48 collectd: update to 5.7.1
Update collectd to version 5.7.1

* replace 003-remove-werror.patch with configure option
* remove 200-fix-git-describe-error.patch that is now unnecessary
* reformat other patches due to whitespace changes
* add new plugins to the list as disabled

* correct download & homepage links
* add myself as the second maintainer

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-06 11:32:38 +02:00
Daniel Dickinson
a23c4e85c5 net/nut: Build optional separate packages and ucify
With a LuCI app (of which I have one written) ucification makes
sense (and is in fact needed), so ucify the initscripts.

Also, rather than making selection of things to include an image
a matter of selecting compile-time config options, make optional
things into seperate packages that are built in default builds,
and leave selection of what to include or not up to the user
(e.g. using ImageBuilder, or adding packages via opkg).

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
2017-01-11 18:53:58 -05:00
Hannu Nyman
ea44014936 collectd: update to 5.5.3
Update collectd to 5.5.3

Release notes at https://github.com/collectd/collectd/releases/tag/collectd-5.5.3

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-22 17:25:05 +02:00
Hannu Nyman
450101bea2 collectd: enable cpufreq plugin also for ipq806x
Enable cpufreq plugin also for ipq806x,
as IPQ8065 supports CPU frequency scaling.

Run-tested with Netgear R7800.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-10 16:04:02 +02:00
Chris Blake
32b7bce818 utils/collectd: Add cpufreq module
This change enables building of the built-in cpufreq module within Collectd, which is very useful on x86 and mvebu targets that support CPU frequency scaling. Note that luci-app-statistics currently does not have support for rendering this.

Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
2016-10-11 02:05:13 -05:00
Hannu Nyman
cac355eae1 collectd: Enable tail_csv plugin
Enable tail_csv plugin that "follows" (tails) and parses CSV files.
Compile-tested with ar71xx.
This closes #3083

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-22 17:54:10 +03:00
Hannu Nyman
5148a67262 collectd: bump version to 5.5.2
* Bump collectd version to 5.5.2.
* Refresh patches.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-14 12:10:26 +03:00
Jo-Philipp Wich
9843f170d7 treewide: replace my defunct email address
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-07 12:00:59 +02:00
Daniel Dickinson
817fba835c utils/collectd: Disable libudev linking
At least when building with OpenWrt SDK, if libudev is present
(even if not actually used by the system), then at least the
disk plugin attempts to link against udev, which results in
packages failure due to lack of dependencies, and it's not
desirable to add a dependency on udev just because udev
was built for the SDK, so we disable libudev support
explicity.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

Conflicts:
	utils/collectd/Makefile
2016-05-15 20:38:20 -04:00
Jo-Philipp Wich
ea01eccee0 collectd: ensure that /var/lib/collectd exists
With the conversion to procd a required mkdir has been dropped, readd it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-27 21:45:36 +02:00
Jo-Philipp Wich
8228cee3f3 collectd: stop service on shutdown
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-15 12:33:32 +02:00
Daniel Dickinson
ad7147839c utils/collectd: Add option to enable encrypted network output
The network plugin has the option of encrypting traffic; add a
config option to allow enabling encrypting network plugin traffic.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

Conflicts:
	utils/collectd/Makefile
2016-03-13 09:46:31 -04:00
Hannu Nyman
a62ff02b8d collectd: use procd
Change collectd to use procd for startup.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-03 19:00:14 +02:00
Hannu Nyman
11d3b98950 collectd: Update to 5.5.1
Update collectd, the backbone of Luci statistics, to 5.5.1

Refresh patches. Main changes:
 - Remove 500-upstream-parallel-build-fix.patch (implemented upstream)
 - Add 600-fix-libmodbus-detection.patch to revert an upstream change
   that broke libmodbus detection in collectd's configure script

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-03 18:59:37 +02:00
Daniel Dickinson
4fc1ad88f7 utils/collectd: Really prevent perl bindings
--with-perl-bindings= is insufficient, --without-perl-bindings is required
to actually prevent perl bindings when perl has been built for the target.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2016-01-11 03:57:44 -05:00
David Woodhouse
69e92a9bef collectd: enable nut plugin
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2015-11-22 12:42:51 +00:00
Oliver Middleton
1df252e4c8 collectd: add $(INSTALL_DIR) $(1)/etc/collectd/conf.d
/etc/collectd/conf.d is referenced in the default config so should be installed to prevent the following in syslog every boot:
Fri Oct  9 02:09:38 2015 user.emerg : configfile: stat (/etc/collectd/conf.d) failed: No such file or directory

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
2015-10-28 01:35:20 +00:00
Hannu Nyman
91041ead33 collectd: Delay first data read cycle by 1s
Some collectd plugins launch third-party plugins that have variation in
initialisation time (like libpcap). Recently (since kernel bump to 4.1)
the DNS plugin has been causing collectd to crash semi-randomly at startup
on MIPS based WNDR3700.

Debugging led to realisation that the DNS plugin seems to require at least
0.1s time to start, before the first data reading attempt starts.

By default, the first data read cycle starts immediately, while apaprently
some of the plugins may still be asyncronously initialising. To make things
safe, this patch adds 1 second delay before the first data read cycle.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-07 12:51:33 +03:00
Hannu Nyman
e2699e23f6 collectd: backport parallel build fix from upstream
Backport a fix for parallel build from upstream,
where it has been commited to both trunk and 5.5 branch.

https://github.com/collectd/collectd/issues/1146
780e6a7602

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-02 20:31:42 +03:00
Tim Harvey
a8c37348b2 collectd: disable perl bindings from dev host
if a user's env has PERL_MM_OPT defined collect will fail to build. Adding
--with-perl-bindings="" will override this env var.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2015-10-01 20:39:03 +02:00
Kevin Darbyshire-Bryant
a79e1d9369 collectd: netlink module remove ip package dependency
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
2015-09-21 15:48:43 +01:00