Sysmon: zeigt keine remote-Temp / falsche Werte (HP Prolinat Micro Gen8)

Begonnen von caldir65, 14 März 2021, 21:27:15

Vorheriges Thema - Nächstes Thema

caldir65

Hallo,

geplant ist folgenses Szenario:

Master-fhem läuft auf einem Raspi4 - 4GB. Mittels Sysmon wollte ich jetzt remote insbesondere Temperaturen abfragen. Es kommen auch Werte, aber ausgerechnet die CPU-Temperaturen fehlen.
Internals:
   CFGFN     
   DEF        ssh:fhem@freenas 1 1 1 0
   FUUID      604e58d7-f33f-378b-9313-56fc7d04ca375cac
   HOST       freenas
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 0
   MODE       ssh
   NAME       sysmon_freenas
   NR         9359
   PORT       22
   STATE      Initialized
   TYPE       SYSMON
   USER       fhem
   READINGS:
     2021-03-14 20:09:33   cpu0_idle_stat  82.07 98.98 96.62
     2021-03-14 20:09:33   cpu1_idle_stat  82.48 98.97 97.12
     2021-03-14 21:16:45   cpu_core_count  1
     2021-03-14 20:09:33   cpu_idle_stat   82.64 98.96 96.88
     2021-03-14 20:06:33   cpu_model_name  Intel(R) Celeron(R) CPU G1610T @ 2.30GHz
     2021-03-14 21:16:45   eth0            not available
     2021-03-14 21:16:45   eth0_diff       not available
     2021-03-14 20:09:33   fhemstarttime   1615741390
     2021-03-14 20:09:33   fhemstarttime_text 14.03.2021 18:03:10
     2021-03-14 20:09:33   fhemuptime      7322
     2021-03-14 20:09:33   fhemuptime_text 0 days, 02 hours, 02 minutes
     2021-03-14 20:09:33   idletime        1182 0.02 %
     2021-03-14 20:09:33   idletime_text   0 days, 00 hours, 19 minutes (0.02 %)
     2021-03-14 20:09:33   loadavg         0.05 0.07 0.08
     2021-03-14 21:16:45   ram             n/a
     2021-03-14 20:51:07   root            Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at / (not available)
     2021-03-14 20:09:33   starttime       1610811920
     2021-03-14 20:09:33   starttime_text  16.01.2021 16:45:20
     2021-03-14 20:09:33   stat_cpu        4426949 55252 5462755 968513405 7375502 0 399759
     2021-03-14 20:09:33   stat_cpu0       2211585 28178 2643323 483705805 4417086 0 126678
     2021-03-14 20:09:33   stat_cpu0_diff  47 0 15 5933 1 0 0
     2021-03-14 20:09:33   stat_cpu0_percent 0.78 0.00 0.25 98.95 0.02 0.00 0.00
     2021-03-14 20:09:33   stat_cpu0_text  user: 0.78 %, nice: 0.00 %, sys: 0.25 %, idle: 98.95 %, io: 0.02 %, irq: 0.00 %, sirq: 0.00 %
     2021-03-14 20:09:33   stat_cpu1       2215364 27074 2819432 484807599 2958416 0 273081
     2021-03-14 20:09:33   stat_cpu1_diff  43 0 20 5929 5 0 1
     2021-03-14 20:09:33   stat_cpu1_percent 0.72 0.00 0.33 98.85 0.08 0.00 0.02
     2021-03-14 20:09:33   stat_cpu1_text  user: 0.72 %, nice: 0.00 %, sys: 0.33 %, idle: 98.85 %, io: 0.08 %, irq: 0.00 %, sirq: 0.02 %
     2021-03-14 20:09:33   stat_cpu_diff   89 0 35 11863 6 0 1
     2021-03-14 20:09:33   stat_cpu_percent 0.74 0.00 0.29 98.91 0.05 0.00 0.01
     2021-03-14 20:09:33   stat_cpu_text   user: 0.74 %, nice: 0.00 %, sys: 0.29 %, idle: 98.91 %, io: 0.05 %, irq: 0.00 %, sirq: 0.01 %
     2021-03-14 21:16:45   swap            n/a
     2021-03-14 20:09:33   uptime          4936791
     2021-03-14 20:09:33   uptime_text     57 days, 03 hours, 19 minutes
     2021-03-14 21:16:45   wlan0           not available
     2021-03-14 21:16:45   wlan0_diff      not available
   helper:
     error_msg 
     sys_cpu0_freq 0
     sys_cpu0_temp 0
     sys_cpu1_freq 0
     sys_cpu1_temp 0
     sys_cpu2_freq 0
     sys_cpu2_temp 0
     sys_cpu3_freq 0
     sys_cpu3_temp 0
     sys_cpu4_freq 0
     sys_cpu4_temp 0
     sys_cpu5_freq 0
     sys_cpu5_temp 0
     sys_cpu6_freq 0
     sys_cpu6_temp 0
     sys_cpu7_freq 0
     sys_cpu7_temp 0
     sys_cpu_freq_rpi_bbb 0
     sys_cpu_temp_bbb 0
     sys_cpu_temp_rpi 0
     sys_fb     0
     sys_power_ac 0
     sys_power_bat 0
     sys_power_usb 0
     u_first_mark 1
     cur_readings_map:
       cpu0_idle_stat CPU0 min/max/avg (idle)
       cpu1_idle_stat CPU1 min/max/avg (idle)
       cpu2_idle_stat CPU2 min/max/avg (idle)
       cpu3_idle_stat CPU3 min/max/avg (idle)
       cpu4_idle_stat CPU4 min/max/avg (idle)
       cpu5_idle_stat CPU5 min/max/avg (idle)
       cpu6_idle_stat CPU6 min/max/avg (idle)
       cpu7_idle_stat CPU7 min/max/avg (idle)
       cpu_bogomips BogoMIPS
       cpu_core_count Number of CPU cores
       cpu_idle_stat CPU min/max/avg (idle)
       cpu_model_name CPU model name
       date       Date
       eth0       Network adapter eth0
       eth0_diff  Network adapter eth0 (diff)
       eth0_ip    Network adapter eth0 (IP)
       eth0_ip6   Network adapter eth0 (IP6)
       eth0_rx    Network adapter eth0 (RX)
       eth0_speed Network adapter eth0 (speed)
       eth0_tx    Network adapter eth0 (TX)
       fhemstarttime Fhem start time
       fhemstarttime_text Fhem start time
       fhemuptime System up time
       fhemuptime_text FHEM up time
       idletime   Idle time
       idletime_text Idle time
       io_sda     TEST
       io_sda_diff TEST
       io_sda_raw TEST
       loadavg    Load average
       loadavg_1  Load average 1
       loadavg_15 Load average 15
       loadavg_5  Load average 5
       ram        RAM
       ram_free   RAM free
       ram_free_percent RAM free %
       ram_total  RAM total
       ram_used   RAM used
       ram_used_stat RAM used stat
       root       Filesystem /
       starttime  System start time
       starttime_text System start time
       stat_cpu   CPU statistics
       stat_cpu0  CPU0 statistics
       stat_cpu0_diff CPU0 statistics (diff)
       stat_cpu0_percent CPU0 statistics (diff, percent)
       stat_cpu0_text CPU0 statistics (text)
       stat_cpu1  CPU1 statistics
       stat_cpu1_diff CPU1 statistics (diff)
       stat_cpu1_percent CPU1 statistics (diff, percent)
       stat_cpu1_text CPU1 statistics (text)
       stat_cpu2  CPU2 statistics
       stat_cpu2_diff CPU2 statistics (diff)
       stat_cpu2_percent CPU2 statistics (diff, percent)
       stat_cpu2_text CPU2 statistics (text)
       stat_cpu3  CPU3 statistics
       stat_cpu3_diff CPU3 statistics (diff)
       stat_cpu3_percent CPU3 statistics (diff, percent)
       stat_cpu3_text CPU3 statistics (text)
       stat_cpu4  CPU4 statistics
       stat_cpu4_diff CPU4 statistics (diff)
       stat_cpu4_percent CPU4 statistics (diff, percent)
       stat_cpu4_text CPU4 statistics (text)
       stat_cpu5  CPU5 statistics
       stat_cpu5_diff CPU5 statistics (diff)
       stat_cpu5_percent CPU5 statistics (diff, percent)
       stat_cpu5_text CPU5 statistics (text)
       stat_cpu6  CPU6 statistics
       stat_cpu6_diff CPU6 statistics (diff)
       stat_cpu6_percent CPU6 statistics (diff, percent)
       stat_cpu6_text CPU6 statistics (text)
       stat_cpu7  CPU7 statistics
       stat_cpu7_diff CPU7 statistics (diff)
       stat_cpu7_percent CPU7 statistics (diff, percent)
       stat_cpu7_text CPU7 statistics (text)
       stat_cpu_diff CPU statistics (diff)
       stat_cpu_idle_percent CPU statistics idle %
       stat_cpu_io_percent CPU statistics io %
       stat_cpu_irq_percent CPU statistics irq %
       stat_cpu_nice_percent CPU statistics nice %
       stat_cpu_percent CPU statistics (diff, percent)
       stat_cpu_sirq_percent CPU statistics sirq %
       stat_cpu_sys_percent CPU statistics sys %
       stat_cpu_text CPU statistics (text)
       stat_cpu_user_percent CPU statistics user %
       swap       swap
       swap_free  swap free
       swap_total swap total
       swap_used  swap used
       swap_used_percent swap used %
       swap_used_stat swap used stat
       uptime     System up time
       uptime_text System up time
       wlan0      Network adapter wlan0
       wlan0_diff Network adapter wlan0 (diff)
       wlan0_ip   Network adapter wlan0 (IP)
       wlan0_ip6  Network adapter wlan0 (IP6)
       wlan0_rx   Network adapter wlan0 (RX)
       wlan0_speed Network adapter wlan0 (speed)
       wlan0_tx   Network adapter wlan0 (TX)
Attributes:
   DbLogExclude .*
   event-on-change-reading cpu.*
   group      Rechnerpark
   room       System->System


Jetzt habe ich mir auf dem HP-Server eine fhem-Instanz angelegt und sysmon hier auch einmal definiert - in diesem Fall bekomme ich zwar Temperaturen, jedoch mit etwas merkwürdigen Werten.
Internals:
   DEF        1 0 0 0
   FUUID      604e59d9-f33f-5295-db24-5859876015c292fa
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 0 0 0
   MODE       local
   NAME       sysmon_omv
   NR         20
   STATE      Initialized
   TYPE       SYSMON
   READINGS:
     2021-03-14 21:14:12   cpu0_freq       1819
     2021-03-14 21:14:12   cpu0_freq_stat  1639.00 2298.00 1961.72
     2021-03-14 21:14:12   cpu0_idle_stat  81.83 99.03 95.90
     2021-03-14 21:14:12   cpu1_freq       2295
     2021-03-14 21:14:12   cpu1_freq_stat  1637.00 2296.00 2138.33
     2021-03-14 21:14:12   cpu1_idle_stat  82.34 98.98 96.32
     2021-03-14 21:14:12   cpu_core_count  8192
     2021-03-14 21:14:12   cpu_freq        1819
     2021-03-14 21:14:12   cpu_freq_stat   1639.00 2298.00 1961.72
     2021-03-14 21:14:12   cpu_idle_stat   82.27 98.96 96.11
     2021-03-14 20:02:12   cpu_model_name  Intel(R) Celeron(R) CPU G1610T @ 2.30GHz
     2021-03-14 21:14:12   cpu_temp        8.30
     2021-03-14 21:14:12   cpu_temp_avg    8.3
     2021-03-14 21:14:12   cpu_temp_stat   8.30 8.30 8.30
     2021-03-14 21:14:12   fhemstarttime   1615741390
     2021-03-14 21:14:12   fhemstarttime_text 14.03.2021 18:03:10
     2021-03-14 21:14:12   fhemuptime      11462
     2021-03-14 21:14:12   fhemuptime_text 0 days, 03 hours, 11 minutes
     2021-03-14 21:14:12   idletime        1183 0.02 %
     2021-03-14 21:14:12   idletime_text   0 days, 00 hours, 19 minutes (0.02 %)
     2021-03-14 21:14:12   loadavg         0.05 0.09 0.09
     2021-03-14 20:02:12   perl_version    v5.28.1
     2021-03-14 21:14:12   starttime       1610811919
     2021-03-14 21:14:12   starttime_text  16.01.2021 16:45:19
     2021-03-14 21:14:12   stat_cpu        4436500 55252 5466700 969308120 7394225 0 399803
     2021-03-14 21:14:12   stat_cpu0       2216411 28178 2645305 484101055 4428489 0 126711
     2021-03-14 21:14:12   stat_cpu0_diff  42 0 23 5930 1 0 0
     2021-03-14 21:14:12   stat_cpu0_percent 0.70 0.00 0.38 98.90 0.02 0.00 0.00
     2021-03-14 21:14:12   stat_cpu0_text  user: 0.70 %, nice: 0.00 %, sys: 0.38 %, idle: 98.90 %, io: 0.02 %, irq: 0.00 %, sirq: 0.00 %
     2021-03-14 21:14:12   stat_cpu1       2220088 27074 2821395 485207064 2965736 0 273091
     2021-03-14 21:14:12   stat_cpu1_diff  48 0 17 5923 5 0 0
     2021-03-14 21:14:12   stat_cpu1_percent 0.80 0.00 0.28 98.83 0.08 0.00 0.00
     2021-03-14 21:14:12   stat_cpu1_text  user: 0.80 %, nice: 0.00 %, sys: 0.28 %, idle: 98.83 %, io: 0.08 %, irq: 0.00 %, sirq: 0.00 %
     2021-03-14 21:14:12   stat_cpu_diff   91 0 40 11853 5 0 1
     2021-03-14 21:14:12   stat_cpu_percent 0.76 0.00 0.33 98.86 0.04 0.00 0.01
     2021-03-14 21:14:12   stat_cpu_text   user: 0.76 %, nice: 0.00 %, sys: 0.33 %, idle: 98.86 %, io: 0.04 %, irq: 0.00 %, sirq: 0.01 %
     2021-03-14 21:14:12   uptime          4940932
     2021-03-14 21:14:12   uptime_text     57 days, 04 hours, 28 minutes
   helper:
     sys_cpu0_freq 1
     sys_cpu0_temp 0
     sys_cpu1_freq 1
     sys_cpu1_temp 0
     sys_cpu2_freq 0
     sys_cpu2_temp 0
     sys_cpu3_freq 0
     sys_cpu3_temp 0
     sys_cpu4_freq 0
     sys_cpu4_temp 0
     sys_cpu5_freq 0
     sys_cpu5_temp 0
     sys_cpu6_freq 0
     sys_cpu6_temp 0
     sys_cpu7_freq 0
     sys_cpu7_temp 0
     sys_cpu_freq_rpi_bbb 1
     sys_cpu_temp_rpi 1
     sys_fb     0
     sys_power_ac 0
     sys_power_bat 0
     sys_power_usb 0
     u_first_mark 1
     cur_readings_map:
       cpu0_freq  CPU frequency (core 0)
       cpu0_freq_stat CPU frequency (core 0) stat
       cpu0_idle_stat CPU0 min/max/avg (idle)
       cpu1_freq  CPU frequency (core 1)
       cpu1_freq_stat CPU frequency (core 1) stat
       cpu1_idle_stat CPU1 min/max/avg (idle)
       cpu2_idle_stat CPU2 min/max/avg (idle)
       cpu3_idle_stat CPU3 min/max/avg (idle)
       cpu4_idle_stat CPU4 min/max/avg (idle)
       cpu5_idle_stat CPU5 min/max/avg (idle)
       cpu6_idle_stat CPU6 min/max/avg (idle)
       cpu7_idle_stat CPU7 min/max/avg (idle)
       cpu_bogomips BogoMIPS
       cpu_core_count Number of CPU cores
       cpu_freq   CPU frequency
       cpu_freq_stat CPU frequency stat
       cpu_idle_stat CPU min/max/avg (idle)
       cpu_model_name CPU model name
       cpu_temp   CPU temperature
       cpu_temp_avg Average CPU temperature
       cpu_temp_stat CPU temperature stat
       date       Date
       eth0       Network adapter eth0
       eth0_diff  Network adapter eth0 (diff)
       eth0_ip    Network adapter eth0 (IP)
       eth0_ip6   Network adapter eth0 (IP6)
       eth0_rx    Network adapter eth0 (RX)
       eth0_speed Network adapter eth0 (speed)
       eth0_tx    Network adapter eth0 (TX)
       fhemstarttime Fhem start time
       fhemstarttime_text Fhem start time
       fhemuptime System up time
       fhemuptime_text FHEM up time
       idletime   Idle time
       idletime_text Idle time
       io_sda     TEST
       io_sda_diff TEST
       io_sda_raw TEST
       loadavg    Load average
       loadavg_1  Load average 1
       loadavg_15 Load average 15
       loadavg_5  Load average 5
       perl_version Perl Version
       ram        RAM
       ram_free   RAM free
       ram_free_percent RAM free %
       ram_total  RAM total
       ram_used   RAM used
       ram_used_stat RAM used stat
       root       Filesystem /
       starttime  System start time
       starttime_text System start time
       stat_cpu   CPU statistics
       stat_cpu0  CPU0 statistics
       stat_cpu0_diff CPU0 statistics (diff)
       stat_cpu0_percent CPU0 statistics (diff, percent)
       stat_cpu0_text CPU0 statistics (text)
       stat_cpu1  CPU1 statistics
       stat_cpu1_diff CPU1 statistics (diff)
       stat_cpu1_percent CPU1 statistics (diff, percent)
       stat_cpu1_text CPU1 statistics (text)
       stat_cpu2  CPU2 statistics
       stat_cpu2_diff CPU2 statistics (diff)
       stat_cpu2_percent CPU2 statistics (diff, percent)
       stat_cpu2_text CPU2 statistics (text)
       stat_cpu3  CPU3 statistics
       stat_cpu3_diff CPU3 statistics (diff)
       stat_cpu3_percent CPU3 statistics (diff, percent)
       stat_cpu3_text CPU3 statistics (text)
       stat_cpu4  CPU4 statistics
       stat_cpu4_diff CPU4 statistics (diff)
       stat_cpu4_percent CPU4 statistics (diff, percent)
       stat_cpu4_text CPU4 statistics (text)
       stat_cpu5  CPU5 statistics
       stat_cpu5_diff CPU5 statistics (diff)
       stat_cpu5_percent CPU5 statistics (diff, percent)
       stat_cpu5_text CPU5 statistics (text)
       stat_cpu6  CPU6 statistics
       stat_cpu6_diff CPU6 statistics (diff)
       stat_cpu6_percent CPU6 statistics (diff, percent)
       stat_cpu6_text CPU6 statistics (text)
       stat_cpu7  CPU7 statistics
       stat_cpu7_diff CPU7 statistics (diff)
       stat_cpu7_percent CPU7 statistics (diff, percent)
       stat_cpu7_text CPU7 statistics (text)
       stat_cpu_diff CPU statistics (diff)
       stat_cpu_idle_percent CPU statistics idle %
       stat_cpu_io_percent CPU statistics io %
       stat_cpu_irq_percent CPU statistics irq %
       stat_cpu_nice_percent CPU statistics nice %
       stat_cpu_percent CPU statistics (diff, percent)
       stat_cpu_sirq_percent CPU statistics sirq %
       stat_cpu_sys_percent CPU statistics sys %
       stat_cpu_text CPU statistics (text)
       stat_cpu_user_percent CPU statistics user %
       swap       swap
       swap_free  swap free
       swap_total swap total
       swap_used  swap used
       swap_used_percent swap used %
       swap_used_stat swap used stat
       uptime     System up time
       uptime_text System up time
       wlan0      Network adapter wlan0
       wlan0_diff Network adapter wlan0 (diff)
       wlan0_ip   Network adapter wlan0 (IP)
       wlan0_ip6  Network adapter wlan0 (IP6)
       wlan0_rx   Network adapter wlan0 (RX)
       wlan0_speed Network adapter wlan0 (speed)
       wlan0_tx   Network adapter wlan0 (TX)
     excludes:
Attributes:
   event-on-change-reading cpu.*,cpu_.*
   room       System


Zum Vergleich habe ich mir mal Werte von seosors angeschaut:
sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +32.0°C  (high = +87.0°C, crit = +91.0°C)
Core 0:        +32.0°C  (high = +87.0°C, crit = +91.0°C)
Core 1:        +28.0°C  (high = +87.0°C, crit = +91.0°C)

Diese Werte sind auch nicht unbedingt exakt, kommen der Wahrheit schon entschieden näher ;)

Im Log erscheint:
PERL WARNING: Use of uninitialized value $mode in string eq at ./FHEM/42_SYSMON.pm line 4031.
2021.03.14 21:04:01 3: eval: {SYSMON_isCPUTempRPi($defs{'sysmonOctoprint'})}
2021.03.14 21:04:01 1: PERL WARNING: Use of uninitialized value $mode in string eq at ./FHEM/42_SYSMON.pm line 4078.
2021.03.14 21:04:01 3: eval: {SYSMON_isCPUTempRPi($defs{'sysmonOctoprint'})}
2021.03.14 21:04:13 1: PERL WARNING: Use of uninitialized value $d in hash element at fhem.pl line 4555.
2021.03.14 21:04:13 3: eval: {use Data::Dumper;Dumper(SYSMON_getCPUTemp_RPi($defs{'sysmonOctoprint'},{}))}


Was kann ich tun? Habe ich ggf. etwas übersehen bei der Installation, fehlt noch etwas?

Vielen Dank, Christoph
Alte Techniker-Regel: "kaum macht man es richtig, funktioniert es auch"
------
Dell Wyse5070 ThinClient 16GBRam, 64GB SSD, Lubuntu 22.04LTS, fhem (aktuell), debmatic, Homematic-Devs, ConBee II und deConz, viele Shellys, Rademacher, NextCloud-Anbindung, FullyKioskBrowser+FUIP uvm.