CPU temp + ID отсутствует Dashboard Webmin
Вы можете попробовать следующую команду для применения патча:
cd /usr/share/webmin && curl https://github.com/webmin/webmin/commit/a85fa2f8c281fd28e1a4a80c44d08231681be077.patch | git apply --reject --whitespace=fix
… затем не забудьте перезапустить Webmin вручную с помощью systemctl restart webminкоманда и, наконец, принудительное обновление системной информации с помощью верхней правой кнопки обновления в приборной панели.
Показывает ли он информацию о температуре процессора сейчас?
Сам текст патча (a85fa2f8c281fd28e1a4a80c44d08231681be077.patch) скопировать и вставить в файл можно:
From a85fa2f8c281fd28e1a4a80c44d08231681be077 Mon Sep 17 00:00:00 2001
From: Ilia Ross <ilia@ross.gdn>
Date: Thu, 19 Oct 2023 20:35:57 +0300
Subject: [PATCH] Fix Cortex CPU detection in `sensors` output
https://forum.virtualmin.com/t/cpu-temp-id-missing-dashboard/123096 [build]
---
proc/linux-lib.pl | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/proc/linux-lib.pl b/proc/linux-lib.pl
index 0061f03e68..ff0caea441 100755
--- a/proc/linux-lib.pl
+++ b/proc/linux-lib.pl
@@ -500,7 +500,7 @@ sub get_current_cpu_data
my @fans;
my @cputhermisters;
if (&has_command("sensors")) {
- my ($cpu, $cpu_aux, $cpu_package, $cpu_broadcom, $cpu_amd);
+ my ($cpu, $cpu_aux, $cpu_unnamed, $cpu_package, $cpu_broadcom, $cpu_amd);
my $fh = "SENSORS";
# Examples https://gist.github.com/547451c9ca376b2d18f9bb8d3748276c
@@ -563,7 +563,7 @@ sub get_current_cpu_data
else {
# Auxiliary CPU temperature and fans were already captured
- next if ($cpu_aux);
+ next if ($cpu_aux && !$cpu_unnamed);
# CPU types
($cpu_broadcom) = $_ =~ /cpu_thermal-virtual-[\d]+/i if (!$cpu_broadcom);
@@ -598,6 +598,13 @@ sub get_current_cpu_data
'temp' => int($2)
});
}
+ elsif (/cpu\s+temp(.*?):\s+([\+\-][0-9\.]+)/i) {
+ $cpu_unnamed++;
+ push(@cpu,
+ { 'core' => $cpu_unnamed,
+ 'temp' => int($2)
+ });
+ }
}
# AMD