7215 Commits

Author SHA1 Message Date
Nicolas Hennion
d6943c269b Merge pull request #3628 from yogendrarau/fix/sensors-threshold-dispatch-3627
Sensors thresholds set in the configuration file are ignored when no critical level is defined #3627
2026-07-28 16:40:18 +02:00
yogendrarau
85635c1d51 Sensors thresholds set in the configuration file are ignored when no critical level is defined #3627
The dispatch selecting the thresholds only probed the critical level, so a
configuration defining careful and/or warning without critical was silently
discarded and the system thresholds were used instead. This affected both the
per sensor (#2058) and the per type (#3049) forms.

AMD k10temp reports no high/critical for Tctl on many boards, so the fallback
returned DEFAULT and the temperature was never highlighted, whatever the user
configured.

Check every criticality level instead, so the documented precedence (specific
sensor, then sensor type, then system) applies as soon as one threshold is set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 18:53:39 -04:00
nicolargo
a5f54c1ba3 Merge branch 'Matcinis-fix-get-ip-address-first-match' into develop 2026-07-25 09:14:21 +02:00
Martin Ďurana
3f3210d0fb Fix get_ip_address() returning the last interface instead of the first
The outer loop over network interfaces had no break, so ip_address was
overwritten by every subsequent up/non-loopback interface with a
matching address family. On hosts with Docker, this meant the bridge
IP (e.g. 172.18.0.1) was returned instead of the actual LAN address,
because virtual interfaces can sort after the real one in dict order.

Add a break once a match is found so the function returns the first
qualifying interface, plus regression tests covering the Docker case,
loopback/down-interface skipping, and the no-match case.

Fixes #3617

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015NJfi2d6yvmmDzvPmm4eof
2026-07-24 17:33:06 +02:00
nicolargo
fe6383e91a Add link to @yottajunaid launcher 2026-07-18 09:43:43 +02:00
Nicolas Hennion
872b551f2e Merge pull request #3614 from gabrielchangamire-arch/refactor/programlist-msg-curse-header
refactor(programlist): reduce cyclomatic complexity of _msg_curse_header
2026-07-18 09:32:29 +02:00
nicolargo
11d66bc6e8 Lint the code 2026-07-18 09:29:06 +02:00
Nicolas Hennion
a0bf70bddc Merge pull request #3609 from yogendrarau/fix/csv-network-desync-3606
Fix CSV export column desync when list-plugin items change at runtime…
2026-07-18 09:24:46 +02:00
Gabriel Changamire
81301ab573 refactor(programlist): use truthiness check for nb_log_core (pylint C1805) 2026-07-16 23:48:04 -07:00
Gabriel Changamire
7f4911181e refactor(programlist): reduce cyclomatic complexity of _msg_curse_header
Replace the long chain of per-column if blocks with a table-driven
approach: _header_columns returns the ordered column spec and
_msg_curse_header iterates it. The Irix-mode CPU label logic moves to
a dedicated _cpu_header_msg helper.

Cyclomatic complexity: 27 (D) -> 7 (B) per radon, with helpers at A.
No behaviour change: output verified identical to the previous
implementation across 840 combinations of sort key, Irix mode, core
count, standalone/cursor flags and disabled stats.

Related to #3460
2026-07-15 16:51:09 -07:00
nicolargo
a3b3a1396b Merge branch 'issue3611' into develop 2026-07-14 09:59:37 +02:00
nicolargo
3c016eb215 VideoCore (v3d) memory shows ~93% on Raspberry Pi 5 with gpu_mem=4M — misleading denominator from drm-total-memory #3611 2026-07-14 09:59:20 +02:00
nicolargo
0e55888a32 Update deps and WebUI 2026-07-11 19:01:35 +02:00
yogendrarau
af6a48695f Wrap long test lines (#3606)
Signed-off-by: yogendrarau <yogendra.rautela7@gmail.com>
2026-07-09 17:10:03 -04:00
yogendrarau
3500044454 Align CSV blocks by header field names to handle variable interface field counts (#3606)
Signed-off-by: yogendrarau <yogendra.rautela7@gmail.com>
2026-07-09 17:04:36 -04:00
yogendrarau
0dd4b1b94b Fix CSV export column desync when list-plugin items change at runtime (#3606)
Signed-off-by: yogendrarau <yogendra.rautela7@gmail.com>
2026-07-09 12:48:56 -04:00
nicolargo
e2d4d096a3 Simplify default CLAUDE.md file for agentic agents 2026-07-05 11:48:18 +02:00
nicolargo
2882fbb809 Merge branch 'GHSA-qcpp-8x79-hhp3' into develop 2026-07-05 09:47:09 +02:00
nicolargo
9c280eae54 Command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction 2026-07-05 09:46:55 +02:00
nicolargo
5c260ace31 Merge branch 'develop' of github.com:nicolargo/glances into develop 2026-07-04 17:26:50 +02:00
nicolargo
890858944a REST API CORS Credentials Guard Uses Exact-Match Instead of Membership Test — Bypassed by Any Multi-Origin Allowlist Containing the Wildcard 2026-07-04 17:26:38 +02:00
Nicolas Hennion
d02c730c9c Merge pull request #3579 from lphuc2250gma/maint/20260606064548
chore: improve glances maintenance path
2026-07-04 17:01:24 +02:00
nicolargo
a14fb302a7 Add MCP server in Docker run example 2026-07-04 16:24:58 +02:00
nicolargo
b8cce8f5ca Remove MCP server in Docker run example 2026-07-04 16:19:46 +02:00
nicolargo
23781e99bb Add MCP server in Docker run example 2026-07-04 16:17:42 +02:00
nicolargo
af1538ed87 Merge branch 'GHSA-59fj-m2j6-hcxh' into develop 2026-07-04 15:50:08 +02:00
nicolargo
5c07c0d964 Advisory draft — does not cover on-alert action commands (incomplete fix of GHSA-3vwc-qwhc-3mj7 / CVE-2026-53925) 2026-07-04 15:49:52 +02:00
nicolargo
65b27142f5 Merge branch 'GHSA-73wf-9vmv-5pv9' into develop 2026-07-04 15:19:51 +02:00
nicolargo
ea4cf2f54f Incomplete fix of CVE-2026-32608: action-template sanitizer is bypassed by nested stat values (process 'cmdline') → OS command injection 2026-06-28 22:29:01 +02:00
nicolargo
92156d0694 On the road of Glances 4.5.6 2026-06-13 16:17:51 +02:00
nicolargo
7a83294b8b Merge branch 'master' into develop 2026-06-13 16:15:40 +02:00
nicolargo
988cad6847 version 4.5.5 v4.5.5 2026-06-13 15:35:04 +02:00
nicolargo
402f9f48da Merge branch 'develop' 2026-06-13 15:31:16 +02:00
nicolargo
fc911f8543 Prepare Glances for release 2026-06-13 15:30:51 +02:00
Nicolas Hennion
ac7b1106c4 Merge pull request #3580 from gstangel/feat/tegra-jetson-gpu-sysfs-fallback
feat(gpu): support NVIDIA Jetson (Tegra) integrated GPU via sysfs
2026-06-08 10:13:24 +02:00
Gabriel St. Angel
3107c6ac51 feat(gpu): support NVIDIA Jetson (Tegra) integrated GPU via sysfs fallback
On Jetson (Tegra) the integrated GPU is enumerated by NVML
(nvidia-l4t-nvml) and reports its name (e.g. "Orin (nvgpu)"), but the
per-metric NVML queries return NVML_ERROR_NOT_SUPPORTED, so the GPU
plugin only ever showed N/A for proc/mem/temperature.

Add a Tegra sysfs backend (glances/plugins/gpu/cards/tegra.py) and wire
it into the NVIDIA card as a per-metric fallback: when NVML returns None
for a device detected as Tegra (name contains "nvgpu", or the Tegra GPU
sysfs node exists), read:

- proc:        /sys/devices/platform/gpu.0/load  (per-mille -> percent)
- temperature: the gpu-thermal /sys/class/thermal zone (milli-C -> C)

Memory stays N/A by design: the Tegra GPU shares system RAM, already
reported by the MEM plugin. Scales verified against tegrastats
(GR3D_FREQ and gpu@).

Adds unit tests with committed sysfs fixtures, a NEWS.rst entry and a
docs note.

Verified on JetPack 6.2.1 (L4T R36.4.7) and JetPack 7.2 (L4T R39.2):
identical sysfs node layout and gpu-thermal zone selection on both, with
temperature cross-checked against tegrastats on each.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 06:59:59 +00:00
nicolargo
6d72447181 Update docs 2026-06-06 14:50:00 +02:00
Noa Levi
528aea6cd6 chore: improve glances maintenance path 2026-06-06 06:46:24 +00:00
nicolargo
879658fb14 Merge branch 'GHSA-3vwc-qwhc-3mj7' into develop 2026-06-06 08:24:32 +02:00
nicolargo
813a4ec99b Arbitrary file write and command execution via redirection and chaining operators in AMP command configuration - GHSA-3vwc-qwhc-3mj7 - CVE-id-tbd 2026-06-06 08:24:14 +02:00
Nicolas Hennion
82d7dfbda3 Merge pull request #3578 from williamqwu/fix_amd_card_glob
Fix AMD GPU detection for multi-digit DRM card numbers.
2026-06-05 13:34:05 +02:00
William Wu
1d1202555a Fix AMD GPU detection for multi-digit DRM card numbers 2026-06-05 03:58:50 -04:00
Nicolas Hennion
bcc30d0c68 Merge pull request #3572 from arieleli01212/feat/issue-top10-slow-plugins
feat(issue): add top 10 slowest plugins summary at end of --issue output
2026-06-02 08:26:18 +02:00
Ariel Eli
ca916de57e feat(issue): add top 10 slowest plugins summary at end of --issue output 2026-06-01 20:27:30 +03:00
nicolargo
1f5aead12c Merge branch 'issue3559' into develop 2026-05-31 17:35:59 +02:00
nicolargo
2e5ab02bda Get back to default ThreadedIterableStreamer.sleep_duration to 0.1 second 2026-05-31 17:35:44 +02:00
nicolargo
e68e9f4452 Add unit test to containers/docker plugin 2026-05-31 17:34:25 +02:00
nicolargo
2353e49655 Make only one API call for multiple containers (use sparse=True option). Also correct behavor for Podman and LXD. 2026-05-31 17:33:37 +02:00
nicolargo
d050ab4151 Merge branch 'issue3559' into develop 2026-05-30 09:18:23 +02:00
nicolargo
476a26defc Try to reduce the time between two containers when stats are collected - #3559 2026-05-30 09:18:08 +02:00