Commit graph

1020 commits

Author SHA1 Message Date
Hannu Nyman
9a06498dbd statistics: memory plugin - improve graph by better scaling of y-axis
Utilise alt_autoscale_max to make the memory chart y-axis to scale better
for devices with e.g. 128 MB RAM.

Also fix the axis min value to 0.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-23 21:12:56 +03:00
Hannu Nyman
86ff4bd3a4 statistics: support rrdtool's alt_autoscale and alt_autoscale_max options
Implement support for alternative scaling of the y-axis.
By default, rrdtool will autoscale to 1,2,5,10,20,50,100,200,... etc.,
which is not always suitable (e.g. memory charts for device with 128 MB).

Rrdtool 1.0.50 already supports alternative autoscaling that creates
a tighter y-axis. Implement graph-level options in Luci statistics to
support those boolean options as "alt_autoscale" and "alt_autoscale_max".

info at http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-23 21:02:14 +03:00
Srdjan Rosic
82fecb7709 Enable setting --script-security in client mode.
This is useful in client mode as well, since it allows one to use --route-noexec and --up <cmd> or --route-up <cmd> to create routes manually instead of relying on whatever routes vpn server pushes down to the client.
  mode=server dependency in luci was introduced together with script_security by mmunz back in 2011.with no explanation in the commit why mode=server was there.
2015-08-22 09:27:25 +01:00
Hannu Nyman
b7b6ed740b statistics: fix ping graph label regression
Earlier update to collectd 5.4.1 changed the field from "ping" to "value",
which was changed in the graph definition here, but the label definition
was forgotten. Field's label now reads "ping_IPaddr_value".

Correct the label definition to show only IPaddr like the other two graphs.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-19 10:56:30 +03:00
Hannu Nyman
ff9da6cb76 statistics: fix conntrack regression caused by collectd 5.5.0
Collectd 5.5.0 introduced new data to conntrack plugin:
In addition to the number of tracked connections there is also
the static max conntrack value and the calculated use percentage.

Luci's conntrack plugin intrepretes "conntrack-max" as a new data instance
and includes it in the graph in addition to the real "conntrack" number.

Eliminate "max" from graph by specifying empty "" instance as data source.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-18 23:05:00 +03:00
Jian Chang
966d87b79b luci-app-shadowsocks-libev: update package
support for shadowsocks-libev v2.2.3

Signed-off-by: Jian Chang <aa65535@live.com>
2015-07-23 00:52:27 +08:00
Michael Marley
b1b0ba5ba9 luci-app-vnstat: Fix blank graphs for iface names with underscores
The regex used to process the iface query string argument in
vnstat.htm was stripping underscores, which caused the graph not to
display for interfaces with names containing underscores.  This
patch adds the underscore to that regex so that the interface name
will be correct and the graph will be displayed.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
2015-07-12 11:45:23 -04:00
Jian Chang
74501038e4 luci-app-shadowsocks-libev: add package
This adds support for configuring shadowsocks-libev

Signed-off-by: Jian Chang <aa65535@live.com>
2015-07-03 15:17:38 +08:00
kdarbyshirebryant
387a06bb73 Delete luci-upnp
Stop sys upgrade automatically disabling miniupnpd on first boot after upgrade.
I spent a lot of time tracking this behaviour down which only occurs if you have luci-app-upnp installed.
2015-06-22 18:58:58 +01:00
Daniel Golle
ba897c6a20 luci-app-olsr: depend on luci-lib-json
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-16 17:41:23 +02:00
Jo-Philipp Wich
37a9d6aee7 Merge pull request #414 from maz-1/mjpg-update
add chinese translations for luci-app-mjpg-streamer
2015-06-16 09:56:30 +02:00
Christian Schoenebeck
3429097437 Merge pull request #409 from oneru/fwknop-qr
Luci-app-fwknopd:add a couple config options to the interface
2015-06-14 12:22:48 +02:00
maz-1
8e43ab3770 add chinese translations for luci-app-mjpg-streamer 2015-06-11 10:35:21 +02:00
maz-1
0b00986cfc add chinese translations for luci-app-privoxy 2015-06-11 10:29:55 +02:00
Jonathan Bennett
9d69f61f4c Luci-app-fwknopd:add a couple config options to the interface
Minor tweaks to uci-defaults
refresh translation files
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-06-10 16:10:56 -05:00
Hannu Nyman
1d477abc54 luci-app-qos: remove l7 options
Cleanup luci-app-qos, as it still contains references to l7 functionality
that has been removed both from kernel and from qos-scripts.

Qos config page has a non-functional "Service" option and every visit to
qos config page generates currently an error as no l7 files can be found.
   daemon.err uhttpd[2285]: find: /etc/l7-protocols/: No such file or directory

Patch removes "Service" option and the l7 file search.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-06-06 10:41:23 +03:00
Christian Schoenebeck
22f40d392b luci-app-privoxy: fixed function ipkg_ver_compare()
fixed function ipkg_ver_compare()

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-04 20:59:21 +02:00
Christian Schoenebeck
e2d6ee7822 luci-app-radicale: fixed function ipkg_ver_compare
fixed function ipkg_ver_compare()

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-04 20:50:08 +02:00
Manuel Munz
0fe4e4696e applications/splash: remove set -x from splash.sh 2015-05-31 01:13:30 +02:00
Manuel Munz
7f26be3628 applications/olsr: change config file download on olsr overview page to use seperate v4 and v6 config files 2015-05-30 22:53:11 +02:00
Manuel Munz
516ea62f73 applications/olsr: redirect errors on jsoninfo connects with netcat to /dev/null to avoid spamming the log 2015-05-30 21:04:50 +02:00
Manuel Munz
cc39eaa681 applications/olsr: Get jsoninfo source port prom olsrd/olsrd6 config file 2015-05-30 20:48:57 +02:00
Jo-Philipp Wich
d6d0926aee Merge pull request #388 from oneru/fwknop-qr
Luci-app-fwknopd: Update uci-defaults as key-gen is now exposed in th…
2015-05-26 17:14:24 +02:00
Christian Schoenebeck
740ce09fb9 luci-app-ddns: fixed version check
fixed version checking in function ipkg_ver_compare()
Reported issue #387 and openwrt/packages issue 1285

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-24 20:03:52 +02:00
Jonathan Bennett
30b8097f65 Luci-app-fwknopd: Update uci-defaults as key-gen is now exposed in the fwknopd binary
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-22 12:48:06 -05:00
Jo-Philipp Wich
ec48d2d01f Merge pull request #385 from oneru/fwknop-qr
luci-app-fwknopd: Add qr code support
2015-05-20 20:26:59 +02:00
Jonathan Bennett
4ccb221f6d luci-app-fwknopd: Add qr code support
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-20 13:02:11 -05:00
Christian Schoenebeck
754ca290e5 Merge pull request #382 from chris5560/master
luci-app-ddns: reflect changes on ddns-scripts
2015-05-14 09:02:40 +02:00
Jonathan Bennett
fd130d0ce7 Add initial luci-app-fwknopd - a way to control the firewall knock daemon from luci
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-12 21:10:00 -05:00
Christian Schoenebeck
d3b6c375ce luci-app-ddns: reflect changes on ddns-scripts
* reflect updated language file for zh-cn
* change default for retry_count to 0 compatible to ddns-scripts 2.4.2-1
* addition to retry_count help description
* modified dependency on ddns-scripts 2.4.2-1

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-12 20:31:30 +02:00
Christian Schoenebeck
e6804f0a93 luci-app-radicale: New app to support Radicale CalDAV/CardDAV server
New Application
!!! Dependency not set because there are two packages "radicale-py2" and
"radicale-py3" (currently BROKEN) available !!!

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-03 18:05:32 +02:00
Syrone Wong
775182ce28 luci-app-ddns: fix Simplified Chinese translations
fix typos and elegant zh_CN translations
2015-04-28 21:52:27 +08:00
郭传鈜
26b1b6d65d luci-app-ddns:Fix Simplified Chinese translation for luci-app-ddns 2015-04-24 13:34:23 +08:00
Christian Schoenebeck
42dffa5636 Revert "luci-app-ddns:Fix Simplified Chinese translation." 2015-04-23 20:18:19 +02:00
Christian Schoenebeck
52bf535ddd Merge pull request #367 from 981213/translate_pull_request
luci-app-ddns:Fix Simplified Chinese translation.
Many Thanks
Christian
2015-04-23 20:16:04 +02:00
郭传鈜
3d5c630ff3 luci-app-ddns:Fix Simplified Chinese translation. 2015-04-23 13:10:19 +08:00
Christian Schoenebeck
2fdd19524d fix wrong xhtml tags in po files
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-04-21 21:26:00 +02:00
Jo-Philipp Wich
6a13d73c29 Synchronize translations
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-20 10:35:08 +02:00
Jo-Philipp Wich
661c33ba91 luci-app-ahcp: remove leftover po templates
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-20 10:08:23 +02:00
Christian Schoenebeck
3902988878 luci-app-ddns: fix errors in global.lua
fix dispatcher and validation errors in global.lua

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-20 09:06:11 +01:00
Jo-Philipp Wich
dd2b05289b Merge pull request #304 from nmav/ocserv-crypt
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
2015-03-10 18:55:46 +01:00
Jo-Philipp Wich
6f56c69d63 Merge pull request #338 from chris5560/master-app-privoxy
luci-app-privoxy: cleanup and fixes for #298 #334 #335
2015-03-10 18:54:24 +01:00
Jo-Philipp Wich
d539eb4d13 Merge pull request #337 from chris5560/master-app-ddns
luci-app-ddns: patches for #298 #334 #335
2015-03-10 18:49:10 +01:00
Hannu Nyman
83973f28c3 luci-statistics: fix uhttpd log spam from extra png close
Fix log spam that uhttpd logging change has brought to surface.

Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute call dispatcher target for entry '/admin/statistics/graph/conntrack'.
Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: The called action terminated with an exception:
Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: .../luci/controller/luci_statistics/luci_statistics.lua:153: attempt to use a closed file

Closing the png file explicitly on line 153 is unnecessary, as
ltn12's source.file method already closes the file after use.
https://github.com/openwrt/luci/blob/master/modules/luci-base/luasrc/ltn12.lua#L119

More info at https://dev.openwrt.org/ticket/19083#comment:2

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-03-02 19:04:16 +02:00
Christian Schoenebeck
37cf3e0ef1 luci-app-privoxy: cleanup and fixes for #298 #334 #335
* remove extra apperror.lua page
* so no nore need for extra directory inside model/cbi
* add option temporary_directory needed for external filters
* remove special handling of bootstrap theme #298 #334
* modified version handling suggested in #335

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-01 20:37:00 +01:00
Christian Schoenebeck
df05909723 luci-app-ddns: patches for #298 #334 #335
* remove usage of opkg via system call for version handling
thanks to Jo-Philipp Wich #335
* remove special handling of bootstrap theme #298 #334

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-01 20:08:45 +01:00
Jo-Philipp Wich
cf4b89b06b luci-app-upnp: supress stderr when listing MINIUPNPD chain
Current OpenWrt trunk now relays uhttpd stderr to syslog, so don't spam
it with "iptables: No chain/target/match by that name." when miniupnpd
is not configured but its status is queried by an overview page applet.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-02-28 19:07:36 +01:00
Jo-Philipp Wich
f47be40cd4 Merge pull request #325 from chris5560/master-app-ddns
luci-app-ddns: update to version 2.2.0-1
2015-02-28 13:25:57 +01:00
Manuel Munz
9cac3f4ec1 applications/luci-splash: fix fac0228313 | ipt module was missing and the new functions didn't return anything 2015-02-20 14:20:55 +01:00
Manuel Munz
47603a37ed applications/olsr-services: fix error on public services page 2015-02-19 20:33:26 +01:00