Age | Commit message (Collapse) | Author |
|
The users plugin is functional and useful, but requires usage of custom
built packages of busybox, dropbear, openssh, or other console/shell
access mechanisms.
Signed-off-by: Joel Johnson <mrjoel@lixil.net>
|
|
This commit adds UI to configure the Mqtt plugin of the luci-app-statistics.
Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
|
|
Signed-off-by: Paul Donald <newtwen@gmail.com>
|
|
Currently graphs are redrawn only based on the refresh interval
(never or every 5/30/60 seconds).
Since the image size is calculated based on the window size,
redraw graphs (once) also after resizing the window.
This also captures window resize due to orientation change
(e.g., for mobile).
Since multiple resize events are fired when dragging the window
border, there is a 250ms delay for debouncing.
Signed-off-by: Rani Hod <rani.hod@gmail.com>
Tested-by: Paul Donald <newtwen@gmail.com>
|
|
Add a backup/restore capability for rrd data storage in
luci_statistics. The data storage is typically in /tmp and does not
survive reboot or sysupgrade. This adds an option for the
administrator to configure the RRD plugin, so that the RRD data are
are preserved with a backup copy in the overlay file system.
This works for shutdown/reboot, sysupgrade (backup config files,
restore config files, and true sysupgrade).
Also fix a bug where starting luci_statistics for the first time would
not get a restart a running collectd: during install of the package
when it is not included in the base flashed image, collectd might be
started when it got installed/configured before this package gets
installed/configured. So we need to check if it's running, and
restart it to use the luci_statistics configuration.
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
|
|
Make hiding the 'free' memory configurable.
Set default as disabled, shown in graph which always scales to 100%.
If enabled, the graph scales to actually used memory,
which enables a more detailed view to memory usage.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Added missing graphs for voltage, current, power and fanspeed sensors.
No new or modified translation strings.
Signed-off-by: Carsten Spieß <mail@carsten-spiess.de>
|
|
To setup (n) -> To set(v) up
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
|
|
Modernize tcpconns plugin to match the features in collectd:
* Support summary of all ports
* 'All listening ports' can be concurrent to specified ports,
not just alternative
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
This fixes graph generation for sensors that provide humidity data.
Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
|
|
MaxMissed was implemented with positive integers only, whereas I think it should also allow the option of "-1" (disabled state)
Signed-off-by: tew42 <2049715+tew42@users.noreply.github.com>
[slightly edited the proposed text]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Increase the default number of data items in the RRD database
from 144 to 288. This leads to smaller summarising/averaging periods,
visible especially in the day & week graphs. The averaging intervals
will be: 30s, 5min, 35min, 2h35min, 1d6h30min
(Note: this change only applies in a live router if the RRD database is
empty. E.g after reboot or after emptying the RRD database dir.)
Reference to discussion at #4065
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Plugins that provide both detail and non-detail instances led to a mismatch
between the instance list to render and the plugin instance list, causing
tab captions to be wrongly assigned.
Fixes: #5387
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
|
|
Existing javascript did not read a non-default statistics hostname due to
incorrect config ids.
Signed-off-by: Anderson McKinley <coyoso@tuta.io>
|
|
Existing Lua code incorrectly stated that the "Host" option takes a space
sparated list of hostnames which is not the case since the collect plugin
does not handle multiple hosts.
This change reverts the configuration to a simple value as proposed by
the original PR and adjusts the config summary accordingly, while retaining
the translation string.
Ref: https://github.com/openwrt/luci/pull/5010#issuecomment-827285319
Fixes: dd5d96afd ("luci-app-statistics: fix APC UPS host configuration")
Fixes: e7d22dce5 ("luci-app-statistics: convert collectd configuration to client side views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Ensure that list of hosts is stored as space separated list, like it was
done in the previous Lua implementation.
Fixes: #5010
Fixes: e7d22dce5 ("luci-app-statistics: convert collectd configuration to client side views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fix the newly added ipstatistics plugin
* add config definition
* add configSummary
* remove unnecessary option config form
(no plugin-specific options)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
|
Add IPv6 statistics.
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
|
Add initial support for chrony statistics.
At this point introduce time offset and stratum stats.
There is something strange with the host option.
Anything else than 'localhost' or '127.0.0.1' causes an error at
collectd start, even when /tmp/collectd/conf is directly edited
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Up do now only an ip address was a allowd.
Fixes: #4288
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Add clarifying help text to the RRD time span definition.
Only a few strings are allowed and it is easy to cause uninteded
results especially with minutes as only "min" is for minute while
("m" or "month") are for month.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Adjust the defaults shown in the LuCI user interface to match
the real default values in the default config file.
(If a plugin is disabled and config values get deleted from
the config file, user has been offered incorrect default
values from UI defaults when the plugin is later re-enabled.)
* dns: set br-lan as the interface
* email: socket in /var/run/collectd/ dir
* interface: set br-lan as the interface
* ping: TTL 127, interval 30
* rrdtool: 1hour as shortest period, 144 RRArows
* tcpconns: Do not monitor all, only 22 80
* unixsock: socket in /var/run/collectd/ dir
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Add the dhcpleases plugin:
https://github.com/openwrt/packages/pull/14204
Added-Frontend-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Nick Hainke <vincent@systemli.org>
[Minor changes to graph: alt_autoscale, precision, label]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
* Add functionality to hide the metric of 'idle' state
from the chart and data table. Many routers are mostly idle,
and the 98% 'idle' dominates the graph reducing its usefulness.
Without 'idle', the smaller CPU usage spikes are visible.
* Hide 'idle' by default. Provide config option to show it.
(note: the option in inside LuCI, and has no impact on actual
data collection by collectd.)
* Tweak the defaults to use the percentage data by default.
It makes more sense to average users than jiffies.
* Set the current LuCI defaults also in the config file.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
|
|
Suggested-by: ce-4 <chr.egger@gmail.com>
[reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Fix cfgvalue loading in IRQ selection
- Fix cfgbalue loading in OpenVPN status file selection
- Fix typo in OpenVPN config translation string
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Add a per-plugin overview tab that contains the (non-detail) graphs of
each plugin instance, similar to the old Lua based implementation
- Numerically order plugin instances starting with numbers
- Avoid multiple renderings of the same graphs
- Fix legend of tcpconns graphs
- Move cpufreq distribution and transition charts to detail tabs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Remove redundant form flags
- Fix various default values
- Add some new collect options and remove options that do not exist anymore
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3658
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3657
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Synchronize enabled checkboxes in overview and modals
- Auto-open modal if enabling plugin with extended config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
This conversion requires cgi-io >= version 17 and uhttpd version >= 2020-02-12
to function properly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|