Commit graph

78 commits

Author SHA1 Message Date
Hannu Nyman
3603e27e30 i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-07-27 19:40:47 +03:00
bobmseagithub
2145b7b33b luci-app-statistics: Voltage graphs - AC and DC
The Voltage graph combines Battery, Input Voltage and Output Voltage.
The Y-Axis scale masks changes in Input/Output voltages over time.
This patch splits the graphs into 2 graphs.
This makes it possible to see variations in AC Input/Output voltages.

Signed-off-by: Bob Meizlik <bobmseagithub@squakmt.com>
2017-07-23 20:44:44 -07:00
guidosarducci
808f261793 luci-app-statistics: add support for apcups plugin
OpenWRT/LEDE support for APC UPSes is only partial: although the collectd
apcups plugin is included, related lua/luci code is missing. These changes
add the lua side and have been used for ~2 years, both on OpenWRT and LEDE.

Reworked from patches submitted by James Klaas to the luci development list
in 2015.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2017-07-04 16:07:14 -07:00
Hannu Nyman
afa7a14caf luci-app-statistics: set logfile as first item in collectd.conf
Force logfile plugin to be evaluated first so that it gets placed
first in the collectd.conf file.

Reference to https://collectd.org/wiki/index.php/Plugin:LogFile

Fixes #1219

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-07-02 23:22:26 +03:00
Jo-Philipp Wich
cace1d80ed luci-app-statistics: support specifying line width in graph definitions
This allows a graph definition to explicitely request LINE1, LINE2 or
LINE3 for a data source.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-10 20:37:29 +02:00
Jo-Philipp Wich
b1d307d3f5 luci-app-statistics: support graph menu entries without corresponding labels
Properly render menu items for plugin instances that do not have a
corresponding label defined.

This allows for registering new graph pages solely by dropping files
into /usr/lib/lua/luci/statistics/rrdtool/definitions/

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-10 20:32:47 +02:00
Hannu Nyman
d04f667383 luci-app-statistics: check that uci config sections exist
A missing or faulty luci_statistics config file may prevent
LuCI access completely already at the login phase as
the statistics config is parsed already then.

The error is like:
  .../statistics/datatree.lua:16: attempt to index upvalue 'sections' (a nil value)

User may be completely locked out of LuCI until he figures out
the need to have a proper luci_statistics config file.

Prevent the error by checking for the existence of
the uci config sections before trying to use values from them.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-10 19:15:52 +03:00
Hannu Nyman
0a6ce20423 luci-app-statistics: processes: fix graph visibility
Fix graph visibility on processes page based on plugin
instance. The overview instance is empty, while monitored
processes have their own instances.

Original version of the patch created by @koblack and
discussed in #1021

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-09 09:46:50 +03:00
INAGAKI Hiroshi
86a708b06b i18n: Sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-05-02 19:12:32 +09:00
Hannu Nyman
2bc2f935a0 luci-app-statistics: fix whitespace
* fix whitespace in config file
* place the contextswitch item corerrctly
  in the sorted options list

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-02 10:07:30 +03:00
Hannu Nyman
b737831e56 luci-app-statistics: processes plugin: add labels, correct data
Enhance processes statistics page:
* add proper labels to graphs
* correct RSS memory stats title, add VSZ stats

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-30 19:05:19 +03:00
fantom-x
5bf636732e Support for collectd-mod-contextswitch
Signed-off-by: Marc Benoit marcb6218@gmail.com
2017-04-29 12:38:23 -04:00
liushuyu
e741857fc8
luci-app: Improve zh-CN translations 2017-04-18 14:00:07 -06:00
Hannu Nyman
3c988cf16c treewide: cleanup references to madwifi from LuCI
Remove the code related to the deprecated madwifi driver.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-28 18:55:11 +02:00
Luiz Angelo Daros de Luca
fe9d39c06c i18n: complete pt-br translation
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2017-02-22 20:34:38 -03:00
Hannu Nyman
298f838d39 luci-app-statistics: remove non-functional links from graphs
The statistics graphs on the pages with multiple data sources
have contained links to the data sources, but those links
have not worked. Remove the links as they are unnecessary.

This commit fixes #1006

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-13 19:10:51 +02:00
INAGAKI Hiroshi
8f4339d09e luci-app-statistics: Update Japanese translation
Added some Japanese translations and fixed some mistranslations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-24 15:08:48 +09:00
INAGAKI Hiroshi
66e3d0c9e7 luci-app-statistics: Sync translations
Synchronized translation of each language po file and po templates
with Lua source.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-24 14:46:30 +09:00
Hannu Nyman
eaafb4508c luci-app-statistics: add advice about data directory permissions
Add advice about the permissions needed for the data directory:

  Pages are rendered as user 'nobody', so the *.rrd files,
  data directory and all its parent directories need to be
  world readable.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-01-23 19:31:40 +02:00
Daniel Dickinson
6a7eaeb486 Merge pull request #938 from cshore-firmware/pull-request-statistics-df
app-statistics: df: Don't separate disk usage types
2017-01-12 10:19:37 -05:00
INAGAKI Hiroshi
88350f9ace luci-app-statistics: Fix mistranslations for Japanese
Fixed some mistranslations for Japanese.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2016-12-23 15:08:13 +09:00
INAGAKI Hiroshi
6f2a68455d luci-app-statistics: fix mistranslation of Japanese
Fixed some mistranslations of Japanese.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2016-12-23 14:35:06 +09:00
INAGAKI Hiroshi
ef970bd783 luci-app-statistics: Update Japanese translation
Added translations for each plugins.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2016-12-22 21:17:53 +09:00
Hannu Nyman
e65f6512e7 i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-10 14:34:30 +02:00
Hannu Nyman
dad185e2c9 Fix config files getting overwritten in opkg install
Commit 39ff053890 accidentally removed the conffiles definitions
from luci-base, statistics, splash and diag-devinfo apps.

That has caused existing config files to get overwritten if the
package has been reinstalled via opkg. Additionally, the splash
text files have not been saved in sysupgrade or backup as they
are located outside /etc/config

This commit adds back the conffiles definitions to the respective
packages.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-10 11:20:01 +02:00
Daniel Dickinson
388c84fa06 app-statistics: df: Don't separate disk usage types
The df plugin wasn't displaying useful lables for the space
used vs free vs reserved due to title override.  This patch
fixes that issues by removing the per-instance setting.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
2016-12-07 03:45:21 -05:00
Hannu Nyman
1c27f6b462 luci-app-statistics: add support for thermal stats
Add support for temperature data from collect-mod-thermal

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-19 16:10:57 +02:00
Hannu Nyman
d4bbf44fbb luci-app-statistics: adjust cpufreq graph for single/dual-core CPUs
The original data model definition assumed data from a quad-core CPU,
which caused errors with single- and dual-core processors.
Adjust the data model to work with also them.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-10 20:34:08 +02:00
Hannu Nyman
4343b2f13d luci-app-statistics: tweak 'cpufreq' number formatting
Adjust number formatting to display >1GHz values better.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-08 22:54:44 +02:00
Hannu Nyman
df3c8728b9 luci-app-statistics: add support for CPU frequency scaling stats
Add support for 'cpufreq' plugin in collectd, which monitors
the CPU cores' frequencies. Some platforms enable dynamic
frequency scaling according to CPU load.

'cpufreq' plugin can currently be built for x86 and mvebu.
(and it should likely be enabled also for ipq806x)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-08 22:24:56 +02:00
Jo-Philipp Wich
95358ab99d Merge pull request #776 from cshore/pull-request-statistics-nut
luci-app-statistics: nut: Add additional stats some UPSes report
2016-10-24 11:30:50 +02:00
Hannu Nyman
cad07f62d5 Merge pull request #770 from arturdm/patch-1
luci-app-statistics: Fix missing title in df graphs
2016-09-29 11:59:13 +03:00
Hannu Nyman
a69bd4202e luci-app-statistics: Add cpu and memory plugins to the default set
Add cpu and memory statistics plugins to the default set included
in Luci statistics and enable them in the default config. They are
useful small collectd plugins for resource usage monitoring.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-09-04 13:18:59 +03:00
Daniel Dickinson
c9cd869168 luci-app-statistics: nut: Add additional stats some UPSes report
Different UPSes report differents stats; here we add graphing
of some additional statistics supports by some models.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
2016-08-13 20:38:56 -04:00
Artur Stepniewski
a21bcb5113 Fix missing title in df graphs
It used data source instance name instead of plugin instance name.

Signed-off-by: Artur Stepniewski <artur.stepniewski+openwrt@gmail.com>
2016-08-11 01:07:16 +02:00
Hannu Nyman
f4af114dbc i18n: sync translations
sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-30 10:24:47 +03:00
Hannu Nyman
b213573682 luci-app-statistics: option for max/avg data when not rrasingle
Introduce option that enables the user to select max values
instead of averages for graphs if the user has disabled RRAsingle.

The option defaults to average values, which have been the default
in Luci statistics.

Remove 'optional' from RRASingle, as it is a key option for statistics.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-12 10:26:59 +03:00
Kevin Darbyshire-Bryant
f960a52868 Graph the max value rather than avg if rrdsingle disabled
With rrdsingle the average values are used for graphing. As the
timescale increases (say over a day or month) the average values
progressively reduce.  Using the maximum value over the longer periods
is arguably no less deceptive but it does produce more informative
graphs.

V2 - Invert the default path logic related to rra.single

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
2016-05-11 13:41:54 +01:00
Daniel Dickinson
6d2163eb62 luci-app-statistics: Fix disk usage graphing
Disk usage graphing was broken.  This fixes it.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2016-03-25 04:04:58 -04:00
Hannu Nyman
8f8957f90f luci-app-statistics: Remove usually empty std.dev. graph from ping page
Remove the usually empty standard deviation graph from the ping page.

The graph is empty for most users as collectd measures standard deviation
of individual pings inside the general interval of statistics collection.
Default setting for both ping interval and general collection interval
is 30s in Luci statistics, meaning just 1 ping per interval, which
leads to empty graph.

(To provide relveant data, the ping interval should be 1/4-1/5 of the
general collection interval. Even then the graph does not look very
informative due to different scaling than the latency graph.)

Note that this commit does not change collectd itself, which continues
to collect and calculate also the std.dev. data, which can be fetched
with 'rrdtool' if needed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-02 14:34:10 +02:00
Jo-Philipp Wich
8eaac4b637 Use numeric prefixes for uci-defaults scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-27 16:50:19 +01:00
Hannu Nyman
edf352efa2 i18n: sync translations
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-12-20 11:47:08 +02:00
Kristoffer Grundström
ea8479ca22 luci-app-statistics: Edited Swedish translation
Signed-off-by: Kristoffer Grundström <kristoffer.grundstrom1983@gmail.com>
2015-12-18 05:25:10 +01:00
Daniel Dickinson
c481f3f343 validation: Add option ipv4only option to host and hostport datatypes
Some applications only support ipv4 so add ipv4only option
to host and hostport datatypes so that for thos applications
that when an IP address is specified only and ipv4 ip address
gets accepted.
2015-12-15 20:41:01 -05:00
Hannu Nyman
53d767de5e luci-app-statistics: Adjust ping graphs to show target hosts separately
Ping statistics plugin allows the user to define multiple ping targets.
The graphs have so far shown multiple hosts in a stacked way.
Adjust graphs to show the target hosts separately (overlay=true).

Clarify the plugin definition with some additional line spacing.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-25 10:19:26 +02:00
Hannu Nyman
dccf485922 luci-app-statistics: improve scaling of the associated stations graph
Improve scaling of the associated stations graph on the wireless page.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-25 10:11:35 +02:00
Hannu Nyman
7b00a4a765 i18n: Sync translations
Sync translations to the current strings.

Changes in luci-app-ddns, luci-app-mjpg-streamer, luci-app-qos,
luci-app-shadowsocks-libev, luci-app-statistics and luci-base

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-13 12:35:57 +03:00
Jo-Philipp Wich
5e9da8240f Globally convert headline anchors into name attributes.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-06 13:30:33 +02:00
Jo-Philipp Wich
78c61d6de0 luci-app-statistics: reorder interface, netlink and openvpn datasources
This aligns the order and grouping of RX and TX network datasources.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-05 19:11:51 +02:00
Jo-Philipp Wich
c8c4a343c2 luci-app-statistics: add support for sorting RRD data sources
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-05 19:11:13 +02:00