Auf meinem FHEM-Server (ein anderer RPI3, ebenfalls mit Raspbian Stretch) nutze ich lokal SYSMON schon seit einem Jahr und lasse mir verschiedene Readings in Plots darstellen.
Nun will ich die verschiedenen RPI im Haus auch mittels SYSMON und SSH remote überwachen. Auf den schon länger laufenden RPI1 und 2 hat das auch auf Anhieb funktioniert. Nur ein frisch aufgesetzter RPI3 mit Raspbian Stretch liefert mir unvollständige Daten. So bekomme ich zwar die Readings cpu*_idle_stat, cpu_core_count, idletime*, loadavg, ram* und zum Filesystem geliefert, aber cpu_temp fehlt.
Was muss auf dem Remotesystem vorhanden sein, damit SYSMON auch die Temperatur bekommt? Führe ich unter dem User, über den SYSMON per SSH auf den neuen RPI3 zugreift "vcgencmd measure_temp" aus, bekomme ich die Temperatur geliefert.
Die in der Doku genannten Power-Readings liefert mir keiner meiner RPI über SYSMON, auch nicht die lokale Instanz. Was braucht es dazu auf den jeweiligen RPI?
Gruß
Christian
cpu_temp wird mit folgendem Befehl ausgelesen:
cat /sys/class/thermal/thermal_zone0/temp
Klappt das bei der Eingabe in der Console?
Bei mir funktioniert das mit Kernel Version 4.9.35
Kann sich je nach Systemversion auch ändern.
Ja, die entfernten Raspis liefern mir darüber (mit dem Benutzer, der auch die SSH-Verbindung aufbaut) 45464, 49388 und 51920, was dem Temperaturbereich entspricht, in dem ich sie (gerade gelangweilt) erwartet hätte.
Hallo,
ich kriege auch von meinem Raspi Zero mit Stretch keine gescheiten Werte an einen Raspi 3 Jessie geliefert.
Der Zugriff per SSH ist eingerichtet und klappt z.B. mit dem XiaomiBTLESens vom Raspi 3 per SSH auf den Zero ansonsten problemlos.
Internals:
CFGFN
DEF ssh:oelidoc@192.168.178.57:45147
HOST 192.168.178.57
INTERVAL_BASE 60
INTERVAL_MULTIPLIERS 1 1 1 10
MODE ssh
NAME RaspiZero
NR 2403
PORT 45147
STATE Active
TYPE SYSMON
USER oelidoc
READINGS:
2018-08-29 20:04:17 cpu_core_count 1
2018-08-29 20:04:17 eth0 not available
2018-08-29 20:04:17 eth0_diff not available
2018-08-29 20:04:17 ram n/a
2018-08-29 20:00:17 root Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at / (not available)
2018-08-29 20:04:17 swap n/a
2018-08-29 20:04:17 wlan0 not available
2018-08-29 20:04:17 wlan0_diff not available
helper:
proc_fs 0
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_core_num 1
sys_cpu_freq_rpi_bbb 0
sys_cpu_num 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)
excludes:
shadow_map:
cpu_core_count 1
eth0 not available
eth0_diff not available
ram n/a
root Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at / (not available)
swap n/a
wlan0 not available
wlan0_diff not available
Attributes:
disable 0
icon RPi
room Garten
Wie man sieht, sind die Readings ein bischen dürftig - insbesondere würden mich nämlich die Temperaturen des Zero interessieren.
Oder hab ich bloß was falsch konfiguriert?
Gruß
oelidoc
Hier funktioniert anscheinend gar nichts. Ich tippe trotzdem auf ein Berechtigungsproblem. Klappt es mit dem verwendeten Benutzer genau die Befehle zum Auslesen von z.B. CPU-Temperatur remote auszuführen?
Hier ist meine Ausgabe, auch remote per ssh auf einem Raspi3:
Internals:
CFGFN ./FHEM/000_sys.cfg
DEF ssh:alex@192.168.0.17 1 1 1 10
HOST 192.168.0.17
INTERVAL_BASE 60
INTERVAL_MULTIPLIERS 1 1 1 10
MODE ssh
NAME sysmon_r3
NR 2607
PORT 22
STATE Initialized
TYPE SYSMON
USER alex
READINGS:
2018-08-29 20:17:40 cpu0_freq 1200
2018-08-29 20:17:40 cpu0_freq_stat 0.00 1200.00 1199.99
2018-08-29 20:17:40 cpu0_idle_stat 0.00 99.31 95.60
2018-08-29 20:17:40 cpu1_freq 1200
2018-08-29 20:17:40 cpu1_freq_stat 0.00 1200.00 1134.09
2018-08-29 20:17:40 cpu1_idle_stat 0.00 99.68 97.09
2018-08-29 20:17:40 cpu2_freq 1200
2018-08-29 20:17:40 cpu2_freq_stat 0.00 1200.00 1199.99
2018-08-29 20:17:40 cpu2_idle_stat 0.00 99.65 97.50
2018-08-29 20:17:40 cpu3_freq 600
2018-08-29 20:17:40 cpu3_freq_stat 0.00 1200.00 1009.85
2018-08-29 20:17:40 cpu3_idle_stat 0.00 99.78 98.09
2018-08-26 00:04:02 cpu_bogomips 76.80
2018-08-29 20:17:40 cpu_core_count 4
2018-08-29 20:17:40 cpu_freq 1200
2018-08-29 20:17:40 cpu_freq_stat 0.00 1200.00 1199.99
2018-08-29 20:17:40 cpu_idle_stat 0.00 99.59 97.08
2018-08-26 00:04:02 cpu_model_name ARMv7 Processor rev 4 (v7l)
2018-08-29 20:17:40 cpu_temp 51.54
2018-08-29 20:17:40 cpu_temp_avg 52.3
2018-08-29 20:17:40 cpu_temp_stat 0.00 69.29 52.32
2018-08-29 20:17:40 eth0 RX: 3485.82 MB, TX: 1492.79 MB, Total: 4978.61 MB
2018-08-29 20:17:40 eth0_diff RX: 0.16 MB, TX: 0.21 MB, Total: 0.37 MB
2018-08-29 20:17:40 eth0_ip 192.168.0.17
2018-08-29 20:17:40 eth0_rx 3655146411
2018-08-29 20:17:40 eth0_speed 100
2018-08-29 20:17:40 eth0_tx 1565300176
2018-08-29 20:10:37 fs_root Total: 7393 MB, Used: 3410 MB, 49 %, Available: 3657 MB at /
2018-08-29 20:17:40 idletime 3333847 96.51 %
2018-08-29 20:17:40 idletime_text 38 days, 14 hours, 04 minutes (96.51 %)
2018-08-29 20:17:40 loadavg 0.45 0.29 0.16
2018-08-29 20:17:40 ram Total: 970.93 MB, Used: 363.28 MB, 37.42 %, Free: 607.65 MB
2018-08-29 20:17:40 ram_used_stat 67.79 581.60 362.42
2018-08-29 20:17:40 starttime 1532112264
2018-08-29 20:17:40 starttime_text 20.07.2018 20:44:24
2018-08-29 20:17:40 stat_cpu 21521627 1633646 10050833 1333540163 534724 0 682765
2018-08-29 20:17:40 stat_cpu0 6470494 590793 3026943 323169746 224014 0 680481
2018-08-29 20:17:40 stat_cpu0_diff 150 2 58 5350 1 0 13
2018-08-29 20:17:40 stat_cpu0_percent 2.69 0.04 1.04 95.98 0.02 0.00 0.23
2018-08-29 20:17:40 stat_cpu0_text user: 2.69 %, nice: 0.04 %, sys: 1.04 %, idle: 95.98 %, io: 0.02 %, irq: 0.00 %, sirq: 0.23 %
2018-08-29 20:17:40 stat_cpu1 4707678 369071 2308315 337098172 94486 0 697
2018-08-29 20:17:40 stat_cpu1_diff 108 11 30 5585 0 0 0
2018-08-29 20:17:40 stat_cpu1_percent 1.88 0.19 0.52 97.40 0.00 0.00 0.00
2018-08-29 20:17:40 stat_cpu1_text user: 1.88 %, nice: 0.19 %, sys: 0.52 %, idle: 97.40 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
2018-08-29 20:17:40 stat_cpu2 5199082 337578 2424096 336548244 113988 0 811
2018-08-29 20:17:40 stat_cpu2_diff 39 8 33 5665 0 0 0
2018-08-29 20:17:40 stat_cpu2_percent 0.68 0.14 0.57 98.61 0.00 0.00 0.00
2018-08-29 20:17:40 stat_cpu2_text user: 0.68 %, nice: 0.14 %, sys: 0.57 %, idle: 98.61 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
2018-08-29 20:17:40 stat_cpu3 5144373 336204 2291479 336724001 102236 0 776
2018-08-29 20:17:40 stat_cpu3_diff 14 0 32 5686 6 0 0
2018-08-29 20:17:40 stat_cpu3_percent 0.24 0.00 0.56 99.09 0.10 0.00 0.00
2018-08-29 20:17:40 stat_cpu3_text user: 0.24 %, nice: 0.00 %, sys: 0.56 %, idle: 99.09 %, io: 0.10 %, irq: 0.00 %, sirq: 0.00 %
2018-08-29 20:17:40 stat_cpu_diff 311 21 153 22286 7 0 13
2018-08-29 20:17:40 stat_cpu_percent 1.36 0.09 0.67 97.78 0.03 0.00 0.06
2018-08-29 20:17:40 stat_cpu_text user: 1.36 %, nice: 0.09 %, sys: 0.67 %, idle: 97.78 %, io: 0.03 %, irq: 0.00 %, sirq: 0.06 %
2018-08-29 20:17:40 swap n/a
2018-08-29 20:17:40 swap_used_stat 0.00 0.11 0.01
2018-08-29 20:17:40 uptime 3454387
2018-08-29 20:17:40 uptime_text 39 days, 23 hours, 33 minutes
2018-08-29 20:17:40 wlan0 RX: 0.00 MB, TX: 0.00 MB, Total: 0 MB
2018-08-29 20:17:40 wlan0_diff RX: 0.00 MB, TX: 0.00 MB, Total: 0.00 MB
2018-08-29 20:17:40 wlan0_rx 0
2018-08-29 20:17:40 wlan0_tx 0
helper:
net_eth0_stat_class 1
net_wlan0_stat_class 1
proc_fs 1
sys_cpu0_freq 1
sys_cpu0_temp 0
sys_cpu1_freq 1
sys_cpu1_temp 0
sys_cpu2_freq 1
sys_cpu2_temp 0
sys_cpu3_freq 1
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_core_num 4
sys_cpu_freq_rpi_bbb 1
sys_cpu_num 1
sys_cpu_temp_bbb 0
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_freq CPU frequency (core 2)
cpu2_freq_stat CPU frequency (core 2) stat
cpu2_idle_stat CPU2 min/max/avg (idle)
cpu3_freq CPU frequency (core 3)
cpu3_freq_stat CPU frequency (core 3) stat
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 Ethernet
eth0_diff Ethernet (diff)
eth0_ip Ethernet (IP)
eth0_ip6 Ethernet (IP6)
eth0_rx Ethernet (RX)
eth0_speed Ethernet (speed)
eth0_tx Ethernet (TX)
fhemstarttime Fhem start time
fhemstarttime_text Fhem start time
fhemuptime System up time
fhemuptime_text FHEM up time
fs_root Root
fs_root_free Root (free)
fs_root_used Root (used)
fs_root_used_percent Root (used %)
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
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 WLAN
wlan0_diff WLAN (diff)
wlan0_ip WLAN (IP)
wlan0_ip6 WLAN (IP6)
wlan0_rx WLAN (RX)
wlan0_speed WLAN (speed)
wlan0_tx WLAN (TX)
excludes:
shadow_map:
cpu0_freq 1200
cpu0_freq_stat 0.00 1200.00 1199.99
cpu0_idle_stat 0.00 99.31 95.66
cpu1_freq 600
cpu1_freq_stat 0.00 1200.00 962.12
cpu1_idle_stat 0.00 99.68 97.06
cpu2_freq 1200
cpu2_freq_stat 0.00 1200.00 1199.99
cpu2_idle_stat 0.00 99.65 97.18
cpu3_freq 1200
cpu3_freq_stat 0.00 1200.00 1146.46
cpu3_idle_stat 0.00 99.78 97.69
cpu_core_count 4
cpu_freq 1200
cpu_freq_stat 0.00 1200.00 1199.99
cpu_idle_stat 0.00 99.59 96.91
cpu_temp 52.62
cpu_temp_avg 52.5
cpu_temp_stat 0.00 69.29 52.58
eth0 RX: 3485.52 MB, TX: 1492.45 MB, Total: 4977.97 MB
eth0_diff RX: 0.18 MB, TX: 0.20 MB, Total: 0.38 MB
eth0_ip 192.168.0.17
eth0_rx 3654828792
eth0_speed 100
eth0_tx 1564944024
fs_root Total: 7393 MB, Used: 3410 MB, 49 %, Available: 3657 MB at /
idletime 3333765 96.51 %
idletime_text 38 days, 14 hours, 02 minutes (96.51 %)
loadavg 0.43 0.24 0.13
ram Total: 970.93 MB, Used: 362.95 MB, 37.38 %, Free: 607.98 MB
ram_used_stat 67.79 581.60 362.22
starttime 1532112264
starttime_text 20.07.2018 20:44:24
stat_cpu 21521001 1633615 10050528 1333507767 534716 0 682744
stat_cpu0 6470224 590791 3026837 323161976 224013 0 680460
stat_cpu0_diff 122 1 37 3449 12 0 7
stat_cpu0_percent 3.36 0.03 1.02 95.07 0.33 0.00 0.19
stat_cpu0_text user: 3.36 %, nice: 0.03 %, sys: 1.02 %, idle: 95.07 %, io: 0.33 %, irq: 0.00 %, sirq: 0.19 %
stat_cpu1 4707481 369054 2308243 337090056 94485 0 697
stat_cpu1_diff 114 9 43 3585 0 0 0
stat_cpu1_percent 3.04 0.24 1.15 95.57 0.00 0.00 0.00
stat_cpu1_text user: 3.04 %, nice: 0.24 %, sys: 1.15 %, idle: 95.57 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
stat_cpu2 5198986 337566 2424028 336540007 113988 0 811
stat_cpu2_diff 60 3 53 3623 0 0 0
stat_cpu2_percent 1.60 0.08 1.42 96.90 0.00 0.00 0.00
stat_cpu2_text user: 1.60 %, nice: 0.08 %, sys: 1.42 %, idle: 96.90 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
stat_cpu3 5144310 336204 2291420 336715729 102230 0 776
stat_cpu3_diff 80 0 47 3627 0 0 0
stat_cpu3_percent 2.13 0.00 1.25 96.62 0.00 0.00 0.00
stat_cpu3_text user: 2.13 %, nice: 0.00 %, sys: 1.25 %, idle: 96.62 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
stat_cpu_diff 376 13 180 14283 12 0 7
stat_cpu_percent 2.53 0.09 1.21 96.05 0.08 0.00 0.05
stat_cpu_text user: 2.53 %, nice: 0.09 %, sys: 1.21 %, idle: 96.05 %, io: 0.08 %, irq: 0.00 %, sirq: 0.05 %
swap n/a
swap_used_stat 0.00 0.11 0.01
uptime 3454302
uptime_text 39 days, 23 hours, 31 minutes
wlan0 RX: 0.00 MB, TX: 0.00 MB, Total: 0 MB
wlan0_diff RX: 0.00 MB, TX: 0.00 MB, Total: 0.00 MB
wlan0_rx 0
wlan0_tx 0
Attributes:
event-on-update-reading cpu_temp,cpu_temp_avg,cpu_freq,eth0_diff,loadavg,ram,fs_.*,stat_cpu_percent,power_ac_stat,power_battery_stat,cpu._freq
filesystems fs_root:/:Root
group system
network-interfaces eth0:eth0:Ethernet,wlan0:wlan0:WLAN
nonblocking 1
room Technik
sortby 17
Oha,
brauch ich bei ssh denn auch libnet-telnet-perl? Hab ich nämlich noch nicht nachinstalliert... :-[
Glaube eher nicht, SYSMON übergibt einfach den ssh-Befehl an das Betriebsystem zum ausführen.
Probiere mit dem Benutzer(!), mit dem FHEM läuft, ein entsprechendes ssh-Remote-Befehl mit dem remote(!) user auszuführen.
in meinen Fall wäre das z.B.
sudo -u fhem ssh alex@192.168.0.17 "cat /sys/class/thermal/thermal_zone0/temp"
Okay,
installier gerade libnet-telnet-perl...
Also:
sudo -u fhem ssh -p 45147 oelidoc@192.168.178.57 "cat /sys/class/thermal/thermal_zone0/temp"
69674
Klappt also,oder?
ich ahne was... moment...
probiere mal bitte die angehängte Version
Vielen Dank für die prompte Hilfe! Jetzt kommen die Daten...
Aber: Der STATE macht mir jetzt sorgen:
Internals:
DEF ssh:oelidoc@192.168.178.57:45147
HOST 192.168.178.57
INTERVAL_BASE 60
INTERVAL_MULTIPLIERS 1 1 1 10
MODE ssh
NAME RaspiZero
NR 465
PORT 45147
STATE Error: Blocking call aborted (timeout)
TYPE SYSMON
USER oelidoc
READINGS:
2018-08-29 21:16:29 cpu0_freq 1000
2018-08-29 21:16:29 cpu0_freq_stat 1000.00 1000.00 1000.00
2018-08-29 21:14:18 cpu_bogomips 997.08
2018-08-29 21:16:29 cpu_core_count 1
2018-08-29 21:16:29 cpu_freq 1000
2018-08-29 21:16:29 cpu_freq_stat 1000.00 1000.00 1000.00
2018-08-29 21:16:29 cpu_idle_stat 36.67 55.62 41.41
2018-08-29 21:14:18 cpu_model_name ARMv6-compatible processor rev 7 (v6l)
2018-08-29 21:16:29 cpu_temp 74.52
2018-08-29 21:16:29 cpu_temp_avg 74.2
2018-08-29 21:16:29 cpu_temp_stat 73.98 74.52 74.21
2018-08-29 21:16:29 eth0 not available
2018-08-29 21:16:29 eth0_diff not available
2018-08-29 21:16:29 idletime 2194 92.91 %
2018-08-29 21:16:29 idletime_text 0 days, 00 hours, 36 minutes (92.91 %)
2018-08-29 21:16:29 loadavg 1.38 1.05 0.46
2018-08-29 21:16:29 ram Total: 433.46 MB, Used: 21.78 MB, 5.02 %, Free: 345.24 MB
2018-08-29 21:16:29 ram_used_stat 21.69 21.78 21.74
2018-08-29 21:16:29 root Total: 7260 MB, Used: 1126 MB, 17 %, Available: 5808 MB at /
2018-08-29 21:16:29 starttime 1535567808
2018-08-29 21:16:29 starttime_text 29.08.2018 20:36:48
2018-08-29 21:16:29 stat_cpu 9105 0 7727 219601 153 0 286
2018-08-29 21:16:29 stat_cpu_diff 1706 0 1323 3850 4 0 39
2018-08-29 21:16:29 stat_cpu_percent 24.65 0.00 19.11 55.62 0.06 0.00 0.56
2018-08-29 21:16:29 stat_cpu_text user: 24.65 %, nice: 0.00 %, sys: 19.11 %, idle: 55.62 %, io: 0.06 %, irq: 0.00 %, sirq: 0.56 %
2018-08-29 21:16:29 swap Total: 100.00 MB, Used: 0.00 MB, 0.00 %, Free: 100.00 MB
2018-08-29 21:16:29 swap_used_stat 0.00 0.00 0.00
2018-08-29 21:16:29 uptime 2362
2018-08-29 21:16:29 uptime_text 0 days, 00 hours, 39 minutes
2018-08-29 21:16:29 wlan0 RX: 0.76 MB, TX: 0.69 MB, Total: 1.45 MB
2018-08-29 21:16:29 wlan0_diff RX: 0.13 MB, TX: 0.12 MB, Total: 0.25 MB
2018-08-29 21:16:29 wlan0_ip 192.168.178.57
2018-08-29 21:16:29 wlan0_rx 795456
2018-08-29 21:16:29 wlan0_speed 21.6
2018-08-29 21:16:29 wlan0_tx 724994
helper:
sys_cpu0_freq 1
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 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_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
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:
disable 0
icon RPi
room Garten
Oder hilft da attribute nonblocking 1?
update: nein, scheint nicht zu helfen...
Gruß und Dank
oelidoc
Du hast ein Bug gefunden bei der Verwendung von nicht Standard-Ports. Bis jetzt hat sich in den jahren niemand beschwert ;D
Attribut "nonblocking 1" ist ein Überbleibsel, es ist jetzt per Default so. Hilft also nicht. Die Meldung bedeutet, dass die Abfrage nach einem Timeout beendet wurde (fester Wert von 55 Sekunden). Irgendwas dauert also sehr lang bei den Abfragen auf Deinen Systemen oder im Netzwerk. Begrenze ggf. auf das, was Du wirklich brauchst (exclude).
Vielen Dank für deine schnelle Hilfe - wirklich super!
Ich ändere eigentlich auf allen meinen Raspi immer zuerst username und ssh port ;D
Nach einem (zweiten) shutdown restart ist jetzt erstaunlicherweise Ruhe
Internals:
DEF ssh:oelidoc@192.168.178.57:45147
HOST 192.168.178.57
INTERVAL_BASE 60
INTERVAL_MULTIPLIERS 1 1 1 10
MODE ssh
NAME RaspiZero
NR 465
PORT 45147
STATE Active
TYPE SYSMON
USER oelidoc
READINGS:
2018-08-29 21:39:24 cpu0_freq 1000
2018-08-29 21:39:24 cpu0_freq_stat 1000.00 1000.00 1000.00
2018-08-29 21:34:58 cpu_bogomips 997.08
2018-08-29 21:39:24 cpu_core_count 1
2018-08-29 21:39:24 cpu_freq 1000
2018-08-29 21:39:24 cpu_freq_stat 1000.00 1000.00 1000.00
2018-08-29 21:39:24 cpu_idle_stat 36.67 85.87 82.42
2018-08-29 21:34:58 cpu_model_name ARMv6-compatible processor rev 7 (v6l)
2018-08-29 21:39:24 cpu_temp 70.75
2018-08-29 21:39:24 cpu_temp_avg 70.7
2018-08-29 21:39:24 cpu_temp_stat 70.21 74.52 70.77
2018-08-29 21:39:24 eth0 not available
2018-08-29 21:39:24 eth0_diff not available
2018-08-29 21:39:24 idletime 3241 86.46 %
2018-08-29 21:39:24 idletime_text 0 days, 00 hours, 54 minutes (86.46 %)
2018-08-29 21:39:24 loadavg 0.41 0.39 0.52
2018-08-29 21:39:24 ram Total: 433.46 MB, Used: 23.98 MB, 5.53 %, Free: 329.20 MB
2018-08-29 21:39:24 ram_used_stat 21.69 24.19 23.99
2018-08-29 21:39:24 root Total: 7260 MB, Used: 1127 MB, 17 %, Available: 5807 MB at /
2018-08-29 21:39:24 starttime 1535567806
2018-08-29 21:39:24 starttime_text 29.08.2018 20:36:46
2018-08-29 21:39:24 stat_cpu 27375 0 22013 324313 281 0 736
2018-08-29 21:39:24 stat_cpu_diff 454 0 371 3260 2 0 9
2018-08-29 21:39:24 stat_cpu_percent 11.08 0.00 9.06 79.59 0.05 0.00 0.22
2018-08-29 21:39:24 stat_cpu_text user: 11.08 %, nice: 0.00 %, sys: 9.06 %, idle: 79.59 %, io: 0.05 %, irq: 0.00 %, sirq: 0.22 %
2018-08-29 21:39:24 swap Total: 100.00 MB, Used: 0.00 MB, 0.00 %, Free: 100.00 MB
2018-08-29 21:39:24 swap_used_stat 0.00 0.00 0.00
2018-08-29 21:39:24 uptime 3749
2018-08-29 21:39:24 uptime_text 0 days, 01 hours, 02 minutes
2018-08-29 21:39:24 wlan0 RX: 2.86 MB, TX: 2.81 MB, Total: 5.67 MB
2018-08-29 21:39:24 wlan0_diff RX: 0.08 MB, TX: 0.09 MB, Total: 0.17 MB
2018-08-29 21:39:24 wlan0_ip 192.168.178.57
2018-08-29 21:39:24 wlan0_rx 3001663
2018-08-29 21:39:24 wlan0_speed 14.4
2018-08-29 21:39:24 wlan0_tx 2941797
helper:
sys_cpu0_freq 1
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 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_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
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:
disable 0
icon RPi
room Garte
Also für mich jetzt gelöst - Dank deiner vorbildlichen Unterstützung!
Vielen Dank
oelidoc
freut mich :) höre ich gern ;D
Gerne doch! 8)