Commit graph

174 commits

Author SHA1 Message Date
soma
ccdc6535a9 add support for splash leases plugin 2014-10-10 10:52:41 +02:00
Jo-Philipp Wich
0dc160db71 collectd: Update luci-statistics / collectd to 5.4.1 - Luci
[PATCH 1/2] [packages] collectd: Update luci-statistics / collectd to 5.4.1 -
packages
[PATCH 2/2] [luci] collectd: Update luci-statistics / collectd to 5.4.1 - Luci

Collectd, the backbone of Luci statistics module, has been recently updated
already to 5.4.1, while Openwrt is still with 4.10.8.

5.0-5.4 branches have been released in 2011-2013 and the last Collectd
release in January 2014 only contained 5.4.1. 4.10.x is being "phased out"
and new commits have been made only rarely. No 4.10.x release for ages.

My ar71xx/wndr3700 build has been using 5.4.1 since March (and used 5.3.1
long before that).

I have compile-tested (with ar71xx) all collectd modules, and I have verified
the real-life functionality of the following plugins: Conntrack,
CPU/Processor, DNS, Interfaces, Memory, Ping, Processes, TCP Connections,
System Load, Uptime, Wireless.

The version bump requires changes both to "collectd" in the packages feed and
to "luci-statistics" in the luci feed, as some of the data items have changed
name or file structure.

I am including two separate patches: one for collectd in packages and one for
luci-statistics in Luci trunk.

Collectd:
Explanation of main changes in the patches for collectd in packages feed:

Patches to be removed:

- 120-fix_kernel_2.6.37.patch is unnecessary. The file to be patched has been
removed upstream.

- 130-timeleft-max.patch is included upstream. Patch removed.
http://git.verplant.org/?p=collectd.git;a=commitdiff;h=d5b09f2bb673ac9396da52b85bcbd16c98b3d633

Changed patches:

- 003-remove-werror.patch: Quilt choked on some -Werror related changes, so I
removed them.

- 900-add-iwinfo-plugin.patch: Changed to patch configure.ac instead of
configure.in

New patches:

- 140-fix-fqdnlookup.patch : FQDNLookup option has been turned on by default
since 5.1. If that option is enabled, it causes collectd to refuse to start
in a basic Openwrt box as typically a fully qualified domain name does not
exist for the router. (That error related can only be properly seen when
console is used to start collectd. Otherwise Luci statistics collectd simply
dies immediately after starting it.) That option should be false by default.
I included a new patch 140-fix-fqdnlookup.patch to turn the option off by
default.
http://git.verplant.org/?p=collectd.git;a=commit;h=e58f85bb68b4c45130bb6fdf40b51db95d2b71e5

- 150-fix-interface-af-link : a FreeBSD10-specific change broke build for me,
so I reverted the change.
http://git.verplant.org/?p=collectd.git;a=commitdiff;h=645dadb3fcc466e8880fda4eb23b21ad433631fc

- 905-disable-sigrok-glib: libsigrok checks for a glib-related macro that
breaks configure. Bypass the invalid macro. I have also added a disabling
option in Makefile.

Luci:
Data presentation in luci-statistics requires three changes in the Luci sources:

-conntrack result data has changed name from "entropy" to "value".
-ping result data has changed name from "ping" to "value".
http://git.verplant.org/?p=collectd.git;a=commitdiff;h=77a6905147798210ec17173bd5e4410adcc3a112

-interface plugin has changed rrd data file structure so that the plugin
instances (=interfaces) have separate data files. Luci needs to draw the
graph for each plugin instance, not for each data instance.
http://git.verplant.org/?p=collectd.git;a=commitdiff;h=cc3640ba512862cd5745446f1f1a997dd4344454

My previous patches for upgrading to earlier 5.x series can be marked as
superseeded in Patchwork.
http://patchwork.openwrt.org/patch/2457/
http://patchwork.openwrt.org/patch/3300/
http://patchwork.openwrt.org/patch/4204/
http://patchwork.openwrt.org/patch/4205/

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-09-18 13:29:11 +00:00
Jo-Philipp Wich
6f8881d48d applications/luci-statistics: fix xhtml entity error introduced with r9926 2013-12-03 23:58:15 +00:00
Patrick Grimm
12ede3f2d9 applications/luci-statistics: fix img url 2013-10-18 10:42:15 +00:00
Jo-Philipp Wich
4960caf90e Add support for collectd-mod-uptime to luci-statistics
collectd-mod-uptime is already there, but there has been no Luci support for
it, so no graphs are shown.

Based on forum discussion (see
https://forum.openwrt.org/viewtopic.php?id=42478 ), I submit a patch to add
the support to luci-statistics.

Patch is for Luci trunk and the functionality can be enabled by selecting
collectd-mod-uptime in menuconfig.

signed-off-by: hannu.nyman@iki.fi
2013-04-23 10:09:19 +00:00
Manuel Munz
4dec885167 applications/luci-statistics: Change datatype to host to allow ipv4 or ipv6 addresses or hostnames, #432 2013-01-06 17:20:50 +00:00
Jo-Philipp Wich
5a23297f9d applications/luci-statistics: render graph menus in alphabetic order 2012-12-25 02:31:28 +00:00
Jo-Philipp Wich
99a8b2826e luci_statistics: Add y_min, y_max, units_exponent options and clean up some graphs
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-12-14 21:53:03 +00:00
Jo-Philipp Wich
ac472f9ebc luci-statistics: add transform_rpn option to graphs, use it for nut battery life
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-12-14 13:27:43 +00:00
Jo-Philipp Wich
1461a0dba1 luci-statistics: don't plot data points where there are no data.
Converting NaN to zero for the sake of the cumulative stack in non-overlay
mode is all very well. But we shouldn't then use that for displaying the
graph. Make another variable %s_plot which *preserves* NaN from the input
data, and then we don't get bogus data points drawn. Especially at the end
of the graph this was problematic.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-12-14 13:27:39 +00:00
Jo-Philipp Wich
900515f0a6 applications/luci-statistics: convert nut plugin to minutes 2012-12-11 14:05:57 +00:00
Jo-Philipp Wich
61e5292c34 applications/luci-statistics: add missing nut plugin entry to config menu 2012-12-11 13:49:07 +00:00
Jo-Philipp Wich
5a54cc575a Add NUT UPS support to luci-statistics 2012-12-11 13:27:37 +00:00
Jo-Philipp Wich
a9d48d56e2 applications/luci-statistics: fix typo in collectd cbi 2012-12-02 13:32:54 +00:00
Jo-Philipp Wich
848e43a5b4 remove .i18n annotations from controller files 2012-11-26 12:53:43 +00:00
Jo-Philipp Wich
1aa81b4ae0 applications/luci-statistics: add missing return in _expand() 2012-09-07 16:17:43 +00:00
Jo-Philipp Wich
0a96f6de35 applications/luci-statistics: cope with uci list values, thanks Bluse for reporting this 2012-09-06 20:15:05 +00:00
Jo-Philipp Wich
bbc2c69965 applications/luci-statistics: avoid global vars, avoid nil indexing, get rid of counter variable 2012-02-19 17:05:09 +00:00
Patrick Grimm
ad7aecad88 applications/luci-statistics: make host selectable if collectd-mod-network server is on 2012-02-19 15:11:23 +00:00
Jo-Philipp Wich
a8024bc0da applications/luci-statistics: add iwinfo config 2011-12-14 15:48:59 +00:00
Jo-Philipp Wich
1623363363 applications/luci-statistics: add iwinfo support to stat-genconfig 2011-12-13 14:06:02 +00:00
Jo-Philipp Wich
c833c96750 applications/luci-statistics: fix controller (#7344) 2011-12-12 14:13:07 +00:00
Jo-Philipp Wich
6c487cde9a applications/luci-statistics: drop support for wireless plugin, add iwinfo replacement 2011-12-07 21:08:49 +00:00
Jo-Philipp Wich
b39ea9e637 applications/luci-statistics: remove plugin overview pages, jump to first plugin of each category instead 2011-12-07 21:00:40 +00:00
Jo-Philipp Wich
e046455389 applications/luci-statistics: rework handling of index and detail graphs
Instead of coding the display logic into the graph models, simply annotate
graph models with .detail = true/false and let the renderer decide which
to pick when.
2011-12-05 14:09:24 +00:00
Manuel Munz
79c3de4ea6 applications/luci-statistics: Sort menu items alphabetically 2011-11-28 16:08:16 +00:00
Manuel Munz
e47c84ffaa applications/luci-statistics: Add olsrd to the default config 2011-11-28 15:58:56 +00:00
Manuel Munz
f72e3fbea3 applications/luci-statistics: Fix spelling 2011-11-28 15:54:51 +00:00
Manuel Munz
da9929e2cb applications/luci-statistics: Saner defaults for processes to monitor and add helptext 2011-11-28 15:50:57 +00:00
Manuel Munz
44a18906e5 applications/luci-statistics: Remove default listener and network server entries 2011-11-28 15:27:57 +00:00
Manuel Munz
431787975e applications/luci-statistics: Add missing translations to exec cbi model 2011-11-28 15:19:11 +00:00
Manuel Munz
bc42562317 applications/luci-statistics: Disable exec plugin by default, remove nonexistant scripts 2011-11-28 15:17:50 +00:00
Manuel Munz
8bea1337a9 applications/luci-statistics: Add dns graph-model 2011-11-28 14:56:57 +00:00
Jo-Philipp Wich
f09ffc2850 applications/luci-statistics: add support for conntrack plugin 2011-11-28 04:50:54 +00:00
Manuel Munz
6acb5c2ab4 applications/luci-statistics: Add support for memory plugin and initial support for conntrack 2011-11-28 04:42:50 +00:00
Jo-Philipp Wich
20c24b09b2 applications/luci-statistics: remove the 10min rra from default config, saves some precious ram 2011-11-28 04:24:26 +00:00
Jo-Philipp Wich
466298351d applications/luci_statistics: add missing translations to cbi models 2011-11-28 04:19:38 +00:00
Jo-Philipp Wich
ee0ef6df98 applications/luci-statistics: add olsr plugin cbi model 2011-11-28 04:01:20 +00:00
Jo-Philipp Wich
b96367228f applications/luci-statistics: add support for olsr and madwifi plugin parameters 2011-11-28 03:58:02 +00:00
Jo-Philipp Wich
b2774f0cc6 applications/luci-statistics: display all instances on index pages, introduce is_index flag for models, add olsrd plugin menu 2011-11-28 03:33:16 +00:00
Jo-Philipp Wich
70a4a61664 applications/luci-statistics: change i18n helper to accept model provided titles, remove magic translations 2011-11-28 03:28:05 +00:00
Jo-Philipp Wich
5d4191c848 applications/luci-statistics: move all models to the per-plugin level, provide titles and labels, provide model for disk plugin 2011-11-28 03:26:59 +00:00
Jo-Philipp Wich
ef9df734c3 applications/luci-statistics: drop definitions.lua 2011-11-28 03:25:28 +00:00
Jo-Philipp Wich
a0715ee819 applications/luci-statistics: remove support for per-datatype models and builtin definitions, drop dependency on definitions.lua, support user provided title for datasources 2011-11-28 03:24:37 +00:00
Jo-Philipp Wich
bbd5aa1831 applications/luci-statistics: cope with rules having no target in iptables plugin config 2011-08-22 20:52:31 +00:00
Jo-Philipp Wich
86c32d917c applications/luci-statistics: fix translation issues in controller 2011-08-13 21:12:19 +00:00
Jo-Philipp Wich
1d76d8a215 applications, modules: remove i18n handling from controller modules as it moved to the themes now 2011-08-12 13:16:27 +00:00
Jo-Philipp Wich
7e9b472ea9 revert accidentally committed changes 2011-01-29 03:33:48 +00:00
Jo-Philipp Wich
ae8769ce7b po: sync radvd translations 2011-01-29 03:32:06 +00:00
Jo-Philipp Wich
6811edb3d9 applications: revise uci-defaults scripts 2011-01-14 17:48:44 +00:00