Oleksandr Mazur
777e2b26a8
Revert "revert "public_ip_lookup" patch"
...
This reverts commit fdeb2b8b85 .
2024-03-26 11:24:35 +02:00
John Crispin
01e80a671e
add delta counters for upstream vlan interfaces
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-10-05 10:22:09 +02:00
John Crispin
d42d7c0ca0
add delta counters to state messages
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-10-03 09:15:34 +02:00
John Crispin
fdeb2b8b85
revert "public_ip_lookup" patch
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-09-28 14:52:40 +02:00
John Crispin
b2998010ad
unify the state uci file
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-09-28 14:52:40 +02:00
John Crispin
89efb8b035
trigger health/state via the new state daemon
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-09-28 14:52:40 +02:00
John Crispin
0220fbcaf7
fix a null expression in capabilities code
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-08-17 15:07:11 +02:00
John Crispin
249788ea23
fix state messages when no devices are configured
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-07-19 16:58:58 +02:00
John Crispin
f56f754c5f
allow multiple fixe country codes on an AP
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-07-14 16:18:37 +02:00
John Crispin
00d0403a55
add swconfig support
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-07-12 09:14:24 +02:00
John Crispin
5255152b28
use logical names instead of linux netdev ones inside state messages
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-07-10 07:21:59 +02:00
John Crispin
48ee8f025d
fix cpu core utilisation
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-06-14 14:38:23 +02:00
John Crispin
04ce23b667
fix udevstats counters
...
root@78cb2c0005fa:~# /usr/share/ucentral/state.uc
Reference error: left-hand side expression is null
In iface_add_counters(), file /usr/share/ucentral/state.uc, line 274, byte 30:
called from function [anonymous function] (/usr/share/ucentral/state.uc:507:48)
called from function foreach ([C])
called from anonymous function (/usr/share/ucentral/state.uc:514:22)
` counters.tx_bytes += vid.tx.bytes;`
Near here --------------------------^
Signed-off-by: John Crispin <john@phrozen.org >
2023-06-14 06:47:26 +02:00
John Crispin
11d7374f65
always set the developer mode flag when generating capabilities
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-19 14:03:18 +02:00
John Crispin
694fd64277
convert vlan_ifaces to an array
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-16 17:32:03 +02:00
John Crispin
e30b05f369
propagate reboot_cause
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-16 14:05:50 +02:00
John Crispin
11dff2ae46
add dynamic vlans to state messages
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-16 13:17:01 +02:00
John Crispin
689b111915
make crashlog handler generic for pstore items
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-12 15:56:45 +02:00
John Crispin
5d8e9b0a42
add boot time to the state message
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-11 15:10:37 +02:00
John Crispin
bc91b18ed1
fix public_ip syntax error
...
Syntax error: Expecting expression
In line 39, byte 16:
` let result = system(sprintf("/usr/bin/curl -m 3 %s -o %s", cfg.public_ip_lookup, public_ip_file));`
Near here ------^
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-05 09:01:45 +02:00
John Crispin
37d7a26975
add per core cpu_load to the state message
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-05 08:50:15 +02:00
Satya-sc
0af4f34a4e
Added support of retrieval of public IP if not existed and reporting in state msg
...
Signed-off-by: Satya-sc <Satya@shasta.cloud >
2023-05-02 17:44:07 +02:00
John Crispin
b918e6aef2
state: some devices will report temperature in milli celssius
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-11 09:10:48 +02:00
John Crispin
204341fafb
state: add port_id and port_desc to lldp state
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-03-09 16:37:32 +01:00
John Crispin
86dc187ec8
the developer mode indication should be in the top level of the capa dictionary
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-22 18:04:01 +01:00
John Crispin
f4aca9b5eb
indicate secure-rtty by default
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-22 17:52:03 +01:00
John Crispin
2ee157f4a1
fix health.uc: the events patch left a stray sprintf( breaking compile
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-21 13:57:28 +01:00
John Crispin
ac9e8cf2a2
capabilities: add developer mode info to restrictions
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-21 13:49:49 +01:00
John Crispin
bf8c3846fe
properly stream state in telemetry mode
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-20 08:42:44 +01:00
John Crispin
8c71638072
fix listing mesh interfaces inside state
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-13 10:36:36 +01:00
John Crispin
94543eeb61
state: cleanup and document the data model
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-13 09:02:09 +01:00
John Crispin
6056d32a90
state: add [ avg, max ] cpu thermal sensor
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-02-09 09:09:13 +01:00
John Crispin
a431b1a5fc
add telemetry and realtime event support to data model
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-01-24 16:08:10 +01:00
John Crispin
bb84cc80cc
add support for reading udevstats counters
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-01-23 10:29:39 +01:00
John Crispin
ec657b513d
improve stability of reading counters
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-01-13 14:02:10 +01:00
John Crispin
ad84690d77
only set port counter if they are available
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-01-09 08:24:04 +01:00
John Crispin
b5392037b4
include APVLAN associations inside state messages
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-14 14:54:29 +01:00
John Crispin
6049cd75c2
various state improvements
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-14 10:29:24 +01:00
John Crispin
53e3bb434a
radio.channel should not be an array
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-12 08:37:10 +01:00
John Crispin
e336aa487f
add username to captive state
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-12 08:19:56 +01:00
John Crispin
f3c99724dc
state: add ssid counters
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-08 17:11:20 +01:00
John Crispin
0329b383e8
state: make the tid-stats opt-in
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-08 16:31:52 +01:00
John Crispin
084fa1a01d
use ucode handler to get channel survey
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-12-07 09:59:51 +01:00
John Crispin
56fc58f636
add wifi band to the ssids inside state messages
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-11-15 16:39:26 +01:00
John Crispin
726987564c
add restrictions to capabilities
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-11-15 16:39:26 +01:00
John Crispin
5173c22f8e
add frequency to ssid inside state message
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-11-01 14:31:46 +01:00
John Crispin
e7d688ce0f
add band into state message phy sections
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-11-01 06:50:15 +01:00
John Crispin
85698d247b
move health_check settings tp the metric deictionary
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-10-27 17:01:36 +02:00
Jeffrey Han
2d8068e6da
[WIFI-5824] Fix 'state.interfaces[i].clients[j].last_seen'
...
Signed-off-by: Jeffrey Han <39203126+elludraon@users.noreply.github.com >
2022-10-26 17:30:16 +02:00
John Crispin
a27c545eaf
make health-check configurable
...
Signed-off-by: John Crispin <john@phrozen.org >
2022-10-15 17:17:58 +02:00