summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/statistics
AgeCommit message (Collapse)Author
2015-01-08Rework LuCI build systemJo-Philipp Wich
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-10add support for splash leases pluginsoma
2014-09-18collectd: Update luci-statistics / collectd to 5.4.1 - LuciJo-Philipp Wich
[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>
2013-04-23Add support for collectd-mod-uptime to luci-statisticsJo-Philipp Wich
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
2012-12-14luci_statistics: Add y_min, y_max, units_exponent options and clean up some ↵Jo-Philipp Wich
graphs Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-12-14luci-statistics: add transform_rpn option to graphs, use it for nut battery lifeJo-Philipp Wich
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-12-14luci-statistics: don't plot data points where there are no data.Jo-Philipp Wich
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-11applications/luci-statistics: convert nut plugin to minutesJo-Philipp Wich
2012-12-11Add NUT UPS support to luci-statisticsJo-Philipp Wich
2012-11-26remove .i18n annotations from controller filesJo-Philipp Wich
2012-02-19applications/luci-statistics: avoid global vars, avoid nil indexing, get rid ↵Jo-Philipp Wich
of counter variable
2012-02-19applications/luci-statistics: make host selectable if collectd-mod-network ↵Patrick Grimm
server is on
2011-12-07applications/luci-statistics: drop support for wireless plugin, add iwinfo ↵Jo-Philipp Wich
replacement
2011-12-05applications/luci-statistics: rework handling of index and detail graphsJo-Philipp Wich
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-11-28applications/luci-statistics: Saner defaults for processes to monitor and ↵Manuel Munz
add helptext
2011-11-28applications/luci-statistics: Add dns graph-modelManuel Munz
2011-11-28applications/luci-statistics: add support for conntrack pluginJo-Philipp Wich
2011-11-28applications/luci-statistics: Add support for memory plugin and initial ↵Manuel Munz
support for conntrack
2011-11-28applications/luci-statistics: change i18n helper to accept model provided ↵Jo-Philipp Wich
titles, remove magic translations
2011-11-28applications/luci-statistics: move all models to the per-plugin level, ↵Jo-Philipp Wich
provide titles and labels, provide model for disk plugin
2011-11-28applications/luci-statistics: drop definitions.luaJo-Philipp Wich
2011-11-28applications/luci-statistics: remove support for per-datatype models and ↵Jo-Philipp Wich
builtin definitions, drop dependency on definitions.lua, support user provided title for datasources
2011-01-29revert accidentally committed changesJo-Philipp Wich
2011-01-29po: sync radvd translationsJo-Philipp Wich
2010-12-05applications/luci-statistics: repair rrdtool i18n handlingJo-Philipp Wich
2009-07-31application/luci-statistics: fix i18n binding, use string() instead of translateJo-Philipp Wich
2009-07-19convert luci.fs users to nixio.fs apiJo-Philipp Wich
2009-06-27applications/luci-statistics: adept datatree class to nixio.fs apiJo-Philipp Wich
2008-12-07applications/luci-statistics: improve diagram labelsJo-Philipp Wich
2008-11-23apps/luci-statistics: fix evaluation of RRASingle option in rrdtool backendJo-Philipp Wich
2008-10-29* luci/app/statistics:Jo-Philipp Wich
- build datatree from rrd directory structure, allows "virtual" plugins - flush index cache on statistics reload - whitespace cleanup in config generator
2008-10-08* luci/app/statistics: fix dns plugin diagram - proper graph model will ↵Jo-Philipp Wich
follow later
2008-08-31* luci/applications: statistics: pick up new rrdtool translations in ↵Jo-Philipp Wich
controller and rrdtool-i18n binding
2008-08-26UCI API changesSteven Barth
2008-08-14libs/core: Remove deprecated luci.bits which got replaced by bitlibSteven Barth
2008-06-14* Rewrote Luci to be coroutine-safe allowing the use of non-forking webserversSteven Barth
* Setting base version to 0.7
2008-06-08* luci/statistics: implement support for the load pluginJo-Philipp Wich
2008-06-08* luci/statistics: replace load() with loadc() since german translation is ↵Jo-Philipp Wich
now available
2008-06-05* Merged Luci to use native UCI-librarySteven Barth
2008-06-03* luci/statistics: made definition fallbacks for date w/o digram model ↵Jo-Philipp Wich
working again
2008-06-03* luci/statistics: definitions.lua: remove all defs handled by diagram ↵Jo-Philipp Wich
models, removed duplicate date (saves ~1000 loc ;-) )
2008-06-03* luci/statistics: remove unneeded processes/ps_state diagram definitionJo-Philipp Wich
2008-06-03* luci/statistics: added missing iptables/ipt_bytes definition, svn property ↵Jo-Philipp Wich
fixups
2008-06-03* luc/statistics: add file/license headersJo-Philipp Wich
2008-06-03some error handling for fs.dir(...) == nilFelix Fietkau
2008-06-03make use of the new features in the binding for uci v0.4.0 - fixes remaining ↵Felix Fietkau
dependencies of libuci.lua on the cli
2008-06-03* luci/statistics: implement timespan selection in public interfaceJo-Philipp Wich
2008-06-01* luci/statistics: let rrdtool.lua use values from the configuration, added ↵Jo-Philipp Wich
irq diagram model
2008-05-30* luci/statistics: added diagram models for process and df plugins, ↵Jo-Philipp Wich
adept controller to recent luci core, support models with per instance diagrams and index diagrams, added new strings to language file
2008-05-28* luci/statistics: implement initial i18n support, added first translations, ↵Jo-Philipp Wich
removed hardcoded strings from models