Commit Graph

163 Commits

Author SHA1 Message Date
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
Kevin Darbyshire-Bryant c7277c42ec collectd: netlink module re-enabled
Collectd netlink module re-enabled and libnl library dependency
satisfied with mini libmnl.

$(eval $(call BuildPlugin,netlink,netlink
input,netlink,+PACKAGE_collectd-mod-netlink:ip
+PACKAGE_collectd-mod-netlink:libmnl))

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
2015-09-21 10:59:42 +01:00
Hannu Nyman 8e944a0826 collectd: Clarify config file example/placeholder
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>
2015-08-30 10:51:37 +03:00
Hannu Nyman 35552db4ee collectd: Enable entropy plugin
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>
2015-08-26 21:35:35 +03:00
Hannu Nyman d91cd622c0 collectd: interface plugin: revert to Linux defaults from BSD-like operations
Change the interface plugin to operate with collectd's default way for Linux
instead of trying to use BSD functionality with patches.

Openwrt's collectd Makefile has set "enable-getifaddrs" option since r7980
(in 2007, no explanations given for the reasons to add that config option),
causing the addition of 110-net-device-stats.patch in 2010 to fix things,
and then later (with 5.4.1 upgrade in 2014) 150-fix-interface-af-link
to undo BSD-specific changes in collectd code meant for only BSD systems
(as AF_LINK does not exist in Linux).

Revert to collectd's intended way in Linux by removing the config option
and deleting the two corresponding patches.

The same data fieds should be provided, so there is no visbile change to users.

References:
===========

Collectd changes introducing/explaining the option and later breaking things:
http://git.verplant.org/?p=collectd.git;a=commit;h=a05e34a0d4fdb2c15db8226689268a27f6f7163d
http://git.verplant.org/?p=collectd.git;a=commit;h=14740db4b415655abc58307352e406442f9933a0
http://git.verplant.org/?p=collectd.git;a=commitdiff;h=645dadb3fcc466e8880fda4eb23b21ad433631fc

Openwrt:
intro at r7980: https://dev.openwrt.org/changeset/7980
fix1 due to kernel 2.6.36 at r23467: https://dev.openwrt.org/changeset/23467
fix2 due to collectd 5.4.1: https://github.com/openwrt/packages/pull/298

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-19 00:34:03 +03:00
Hannu Nyman 106fd6a3a2 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 15:15:22 +03:00
Michael Heimpold f59d4a76f8 collectd: unbreak collectd-mod-modbus
I tested it successfully on a Asus WL-500gP V2, querying
a Modbus TCP server.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-03-13 22:41:47 +01:00
Hannu Nyman 5dfdf5374c collectd: update to 5.4.2
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>
2015-03-02 19:52:46 +02:00
Jo-Philipp Wich 68e57c7b49 collectd: unbreak collectd-mod-sensors
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-29 21:58:09 +01:00
Hannu Nyman 1b0bd00838 collectd: Update to 5.4.1
-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>
2014-09-09 19:45:14 +03:00
Steven Barth e373aa5868 Disable various plugins with mising dependencies
Signed-off-by: Steven Barth <steven@midlink.org>
2014-07-18 12:01:33 +02:00
Jo-Philipp Wich 56fd1eaa78 collectd: import from packages, add myself as maintainer
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-11 16:43:00 +02:00