Commit Graph

39 Commits

Author SHA1 Message Date
Paul Donald
b59e51a831 luci-mod-status: update syslog viewer to use the remodeled CBILogreadBox
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-20 21:11:11 +02:00
Andy Chiang
e67465da5e luci-mod-status: use localized time
use localized time

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
2025-10-20 20:40:46 +02:00
David Härdeman
50abd15e88 luci-mod-status,-network: remove checkUfpInstalled
Right now, the checkUfpInstalled RPC call is performed first, and only after
that can the other Promises be called. Simplify this by adding a single check
for /usr/sbin/ufpd in the rpcd ucode, and replace calls to checkUfpInstalled()
with simple L.hasSystemFeature('ufpd') check (which is only done once, and
cached).

This also allows the 'stat' permission to be removed from a couple of acls.

Signed-off-by: David Härdeman <david@hardeman.nu>
2025-10-16 01:24:42 +02:00
Paul Donald
40232e89ff luci-mod-status: routes; refactor and add routesj page for ip -j output
follow-up fix to 89ae891462

fs depends here should be OR, not AND :)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-13 20:28:06 +02:00
Paul Donald
ad6591fb4b luci-mod-status: routes; refactor and add routesj page for ip -j output
follow-up fix to 89ae891462

Should not have duplicate keys

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-12 19:51:29 +02:00
Paul Donald
89ae891462 luci-mod-status: routes; refactor and add routesj page for ip -j output
Refactor functions and variables to ES6 standard.

Detect whether one of the JSON enabled ip variants is installed, and
prefer it to display route information over the text handling. This is
handled by the acls and menu depends.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-12 19:43:57 +02:00
Christian Korber
7b07b93ff9 luci-mod-status: add vendor info in index file
In the overview page are all active dhcp leases displayed.
For easier recognition, the listed MAC addresses fo these leases are
resolved to their vendor names.

Signed-off-by: Christian Korber <ck@dev.tdt.de>
2025-09-25 13:25:33 +02:00
Christian Korber
70b7176fc2 luci-mod-status,luci-mod-network: support oui to vendor resolving
For easier definition of connected devices, this commit adds support
to identify them by vendor name.

Package `upf-neigh` is needed to lookup the vendor name in a hash table.
It implements a ubus-call `ubus call fingerprint fingerprint`:

```
root@<redacted> ~ # ubus call fingerprint fingerprint
{
        "7c:c2:55:XX:XX:XX": {
                "vendor": "Super Micro Computer, Inc."
        }
}
```

Fixes: #2065
Depends on: openwrt/packages#27257

Signed-off-by: Christian Korber <ck@dev.tdt.de>
2025-09-25 13:25:33 +02:00
Christian Korber
734442a10b luci-mod-status: display log_file in status if defined
Commit includes wrapper syslog in /usr/libexec. If a log file is configured, the output of this file is displayed. Otherwise the output of logread is displayed.

Signed-off-by: Christian Korber <ckorber@tdt.de>
2024-07-23 00:41:47 +02:00
Florian Eckert
428451357a luci-mod-status: fix spelling
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-05-08 08:29:12 +02:00
Florian Eckert
a4a7f0bc6a luci-mod-status: rename realtime graph display name traffic into bandwith
The corresponding file is also named bandwith.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-24 09:17:42 +02:00
Paul Donald
8be149c4ad Merge pull request #6724 from erikrk/channel-analysis-permissions
luci-mod-status: fix ACL for channel analysis
2023-12-18 00:20:05 +01:00
Christian Marangi
f1db42e670 luci-mod-status: add ACL entry for storage index
Add missing ACL entry for storage index page.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: expand storage index page with mount points

Expand storage index page with mount points. For custom mounts point we
use the device name and we reference the mount point between ().

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: ensure each storage getMountPoints result is unique

Signed-off-by: Paul Donald <newtwen@gmail.com>

Closes #2767
2023-12-07 00:15:33 +01:00
Erik Karlsson
72f1573458 luci-mod-status: fix ACL for channel analysis
Without this fix channel analysis will not work unless write access is
also granted to luci-mod-network-config

Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
2023-11-27 11:16:29 +01:00
Jo-Philipp Wich
575ce5512d luci-mod-status: add ACL to allow access to getBuiltinEthernetPorts
Fixes: ed059e4cd3 ("luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-10-25 23:15:16 +02:00
Jo-Philipp Wich
4e46624817 luci-mod-status: introduce ethernet port status view
This commit adds an ethernet port status overview to the main status page.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-07-27 13:07:26 +02:00
Jo-Philipp Wich
a27d2dbc32 luci-base, luci-mod-status: expose LuCI version via ubus
Instead of scraping the LuCI version from Lua sources, fetch it via ubus
in order to be independent from the Lua runtime.

Fixes: #6154
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-12-17 15:01:46 +01:00
Alexander Georgievskiy
88c62fe218 luci-mod-status: nftables.js: fix OOM on big nftables IP sets
Signed-off-by: Alexander Georgievskiy <galeksandrp@gmail.com>
2022-07-05 15:00:38 +03:00
Jo-Philipp Wich
2f80fe3767 luci-mod-status: hide iptables firewall status when nft is present
Do not expose the iptables status page as menu item when nftables is present
on the system. Instead add a warning banner to the nftables status page
directing the user to the hidden iptables status page when we encounter
legacy rules on the system.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27 13:19:48 +02:00
Jo-Philipp Wich
bf175fd51a luci-mod-status: add nftables status page
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-07 13:24:33 +01:00
Florian Eckert
1d26eb4200 luci-mod-status: move index acl into own file
The ACL file luci-mod-status.json is already quite long.
It is also a separate menu item in LuCI, so in my view it makes sense to
move it to a separate file. An additional positive effect is that the
file then becomes clearer.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-03 13:25:21 +02:00
Vladislav Grigoryev
a62a6c0f3b luci-mod-status: merge status/dmesg with status/syslog
Merge "Kernel Log" with "System Log" as an extra tab.
Consolidate logging facilities for more intuitive navigation.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-26 06:15:04 +03:00
Jo-Philipp Wich
57303e6483 Merge pull request #5235 from vgaetera/status-routing
luci-mod-status: status/routing support for pbr
2021-08-09 19:51:09 +02:00
Vladislav Grigoryev
fb7e48b752 luci-mod-status: fix description for luci-mod-status-channel_analysis
Update "modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json".
Fix incorrect description for "luci-mod-status-channel_analysis".

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-08 20:34:45 +03:00
Vladislav Grigoryev
5cd9209636 luci-mod-status: status/routing support for pbr
Provide comprehensive status information for routing.
Rename the "Status > Routes" page to "Status > Routing".
Unify sorting for the "Status" and "Network" menus.
Add tabs for IPv4 and IPv6 and reorganize the contents.
Display routing rules and their priorities for each protocol.

Policy-based routing is an increasingly popular problem.
Netifd natively supports policy-based routing:
* The interface-specific options "ip4table" and "ip6table".
* The routing rules using the "rule" and "rule6" sections.
LuCI is missing the information about routing rules.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-07 10:51:38 +03:00
Jo-Philipp Wich
a6d957d6f5 luci-mod-status: disable "Set static" lease action on readonly view
Fixes: f6b6a12927 ("luci-mod-status: add support for one-click static lease")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-07-07 17:15:37 +02:00
Andre Heider
8051510732 luci-mod-status: use the new ubus dsl metrics
This is significantly faster.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Tested-by: Martin Schiller <ms@dev.tdt.de>
2021-01-26 07:10:19 +01:00
Hannu Nyman
c49d33f6cb Merge pull request #4598 from Ansuel/wifi_chan
luci-mod-status: add new channel analysis page
2021-01-07 19:02:57 +02:00
Ansuel Smith
91a0008457 luci-mod-status: add channel analysis support
Add channel analysis support. This can be very useful as a user can directly use the webui to check wifi channel utilization without using external tool. This use data already provided by iwinfo.

Fixes: #4572
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-12-06 02:24:05 +01:00
Ansuel Smith
6cf849bcf6 luci-mod-status: add WPS control for wifi info
Add a way to trigger and get the WPS Push Button status from the webui if supported.

Fixes: #1072

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-17 17:47:50 +02:00
Jo-Philipp Wich
f4651cb129 treewide: fix trailing commans in ACL JSON files
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 23:40:14 +02:00
Jo-Philipp Wich
8f34e105c0 treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 12:40:31 +02:00
Jo-Philipp Wich
c099344013 treewide: reorganize base ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-09 23:23:33 +02:00
Jo-Philipp Wich
16d049f7cd luci-mod-status: reimplement route status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-29 23:03:58 +01:00
Jo-Philipp Wich
2417ad5d61 luci-mod-status: remove obsolete nameinfo route
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
939b371bc7 luci-mod-status: reimplement log pages as client side views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
b9bb34612e luci-mod-status: reimplement iptables status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
43a4481e10 luci-mod-status: replace iptables controller actions with cgi-io calls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
c698cd5ab9 luci-mod-status: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:18 +01:00