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>
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>
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>
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>
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/2034Fixes#4819
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
--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>
/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>
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>
The config file shipped with collectd dates from 2010 and
leads to error messages if luci-statistics & collectd are installed,
as it references several plugins not usually installed, or such ones
that have been renamed since then.
For most users, this file is just a placeholder during collectd installation,
as /usr/bin/stat-genconfig from /etc/init.d/luci_statistics will overwrite it.
Sanitize and shorten the placeholder config file:
* Reference actively only the default plugins installed by luci statistics.
* Match the placeholder config with the genuine config from luci statistics.
If somebody uses collectd separately from luci statistics, he will need to
edit these settings anyway.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Enable the entropy plugin that monitors the available entropy in a Linux system.
Works ok and has no library dependencies. Tested on ar71xx/WNDR3700.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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>
Update collectd, base of Luci statistics, to 5.4.2.
Patches have been refreshed.
905-fix-sigrok-upstream-patch-post-541 was removed as unnecessary.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
-update collectd to the current release 5.4.1
-fix sigrok glib check (upstream patch after 5.4.1)
Note:
Changes are required also to luci-statistics in Luci source.
Patch in http://patchwork.openwrt.org/patch/5303/
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>