DBLog + LogProxy + SysMon -> split value benötigt z.B. bei cpu_idle_stat, ...

Begonnen von markus1407, 10 November 2017, 21:26:21

Vorheriges Thema - Nächstes Thema

markus1407

Hallo,

ich logge mit dem sysmon die werte auf meinem system.
Da gibt es z.B. das Reading:
cpu_idle_stat = "2.3 3.4 4.5"

Dann der DBLog landet dann der ganze String als value.
Leider gibt es bei der DBLog das Array @fld nicht, sondern nur $val.

Vor dem Plotten muss nun $val gesplittet werden und z.B. der erste Wert ausgewählt werden.

Kann mir jemand weiterhelfen?

Mein Eintrag im Plot sieht so aus:  (geht aber nicht)

LoggingDatabase,predict,extend=24*60*60:SystemMonitor:cpu_idle_stat:::$val=(split(/\s+/,$val))[0]

Beispiel:
$val="2.3 3.4 4.5"
nacher soll der erste oder zweite Wert rauskommen, also $val="2.3" oder $val="3.4".


Danke,

Markus


markus1407

Leider habe ich keine echte Lösung gefunden.
Jedoch habe umgehe ich nun das Problem mit userReadings.

Zum splitten habe ich in myUtils folgende Funktion hinzugefügt:



###############################################################################
# Markus1407, 2017-12-06
#
# splits a string by given value and retrun the choosen element, index [0,1,...]
#
# splitAndReturnElement($stringToSplit,$splitByValue,$returnIndex)
# splitAndReturnElement("This is some string to split", " ", 2)  -> returns "some"
#
# http://rextester.com/l/perl_online_compiler
###############################################################################
sub splitAndReturnElement($$$){
   my ($stringToSplit,$splitByValue,$returnIndex) = @_;
   my @splittedValues = split("$splitByValue", "$stringToSplit");
   
   if (exists $splittedValues[$returnIndex])
   {
       return $splittedValues[$returnIndex];
   }
   else
   {   # index does not exist
       return "0";
   }
}


Die userReadings sehen so aus:

attr SystemMonitor userReadings cpu_idle_stat_select_0:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_idle_stat","ReadError"), " ", 0);;;;}, \
cpu_idle_stat_select_1:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_idle_stat","ReadError"), " ", 1);;;;}, \
cpu_idle_stat_select_2:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_idle_stat","ReadError"), " ", 2);;;;}, \
\
ram_used_stat_select_0:ram_used_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","ram_used_stat","ReadError"), " ", 0);;;;}, \
ram_used_stat_select_1:ram_used_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","ram_used_stat","ReadError"), " ", 1);;;;}, \
ram_used_stat_select_2:ram_used_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","ram_used_stat","ReadError"), " ", 2);;;;}, \
\
cpu_temp_stat_select_0:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_temp_stat","ReadError"), " ", 0);;;;}, \
cpu_temp_stat_select_1:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_temp_stat","ReadError"), " ", 1);;;;}, \
cpu_temp_stat_select_2:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("SystemMonitor","cpu_temp_stat","ReadError"), " ", 2);;;;},\
\
eth0_diff_select_tx:eth0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","eth0_diff","ReadError"), " ", 1);;;;},\
eth0_diff_select_rx:eth0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","eth0_diff","ReadError"), " ", 4);;;;},\
eth0_diff_select_total:eth0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","eth0_diff","ReadError"), " ", 7);;;;},\
\
wlan0_diff_select_tx:wlan0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","wlan0_diff","ReadError"), " ", 1);;;;},\
wlan0_diff_select_rx:wlan0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","wlan0_diff","ReadError"), " ", 4);;;;},\
wlan0_diff_select_total:wlan0_diff.* { splitAndReturnElement(ReadingsVal("SystemMonitor","wlan0_diff","ReadError"), " ", 7);;;;},\
\
fs_root_select_Available:fs_root.* { splitAndReturnElement(ReadingsVal("SystemMonitor","fs_root","ReadError"), " ", 9);;;;},\
fs_root_select_Usage:fs_root.* { splitAndReturnElement(ReadingsVal("SystemMonitor","fs_root","ReadError"), " ", 6);;;;},\
\



Vielleicht hilft es jemand ....



simonberry

Hallo

also bei mir funktioniert dein Regexp zum splitten der Spalten... Danke!

So sieht es jetzt in meiner gplot Datei aus

# SYSMON
#
# Anzeige verschiedener Statistiken aus SYSMON (DbLog)
#

set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title 'CPU Idle'
set ytics 0% 0,20% 20, 40% 40, 60% 60, 80% 80, 100% 100
set y2tics 0% 0,20% 20, 40% 40, 60% 60, 80% 80, 100% 100
set grid ytics y2tics
set ylabel ""
set y2label ""
set yrange "[-10:170]"
set y2range "[-10:170]"

#db_nuc_fhem sysmon_nuc:stat_cpu_percent:::$val=(split(/\s+/,$val))[3]
#db_nuc_fhem sysmon_nuc:stat_cpu_percent:::$val=(split(/\s+/,$val))[0]
#db_nuc_fhem sysmon_nuc:ram:::$val=(split(/\s+/,$val))[6]
#db_nuc_fhem sysmon_nuc:root:::$val=(split(/\s+/,$val))[6]


plot \
   "<IN>"  using 1:2 ls l1 axes x1y2 title 'CPU idle '   lw 1 with lines \
   "<IN>"  using 1:2 ls l2 axes x1y2 title 'CPU user ' lw 1 with lines \
   "<IN>"  using 1:2 ls l3 axes x1y2 title 'Ram ' lw 1 with lines \
   "<IN>"  using 1:2 ls l4 axes x1y2 title 'Root     ' lw 1 with lines \



viele Grüße
Simonberry
NUC5i3RYK#DBLOG; MYSQL; LIRC; MPD; HM-CFG-HM-USB-2: HM-divers; MQTT2; Signalduino; Shelly; Sonoff; dash_dhcp; FS20; IT; FroniusWR; Somfy RTS; NFS-Server
Rpi B#: nfsmount; ser2net CUL868; CUL433; GPIO4:DS18B20; WEMOS-D1-MINI#JVC-via-IR;

en-trust

Ich habe mir mal erlaub die userreadings 1:1 und die util von Markus zu kopieren. Ich hätte dann erwartet, dass ich in den Readings nun die neuen ram_used_stat_select_0... sehe. Was aber nicht der Fall ist.

list
Internals:
   .lastTimecpu_temp 1606300730.54732
   DEF        1 1 1 10
   FUUID      5fa50232-f33f-e9d9-a37f-a0b09eb462dabc4e
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 10
   MODE       local
   NAME       System.Monitoring
   NR         1236
   STATE      Active
   TYPE       SYSMON
   .attraggr:
   .attreour:
     cpu_temp
     cpu_temp_avg
     cpu_freq
     eth0_diff
     loadavg
     ram
     fs_.*
   .attrminint:
     cpu_temp:60
   .userReadings:
     HASH(0x518ba38)
   Helper:
     DBLOG:
       cpu_temp:
         DBLogging:
           TIME       1606300730.56553
           VALUE      52.62
   READINGS:
     2020-11-25 11:39:49   cpu0_freq       1200
     2020-11-25 11:39:49   cpu0_freq_stat  600.00 1200.00 1128.57
     2020-11-25 11:39:50   cpu0_idle_stat  19.87 99.55 94.58
     2020-11-25 11:39:49   cpu1_freq       1200
     2020-11-25 11:39:49   cpu1_freq_stat  600.00 1200.00 1128.57
     2020-11-25 11:39:50   cpu1_idle_stat  30.76 99.67 95.32
     2020-11-25 11:39:49   cpu2_freq       1200
     2020-11-25 11:39:49   cpu2_freq_stat  600.00 1200.00 1128.57
     2020-11-25 11:39:50   cpu2_idle_stat  19.86 99.71 95.64
     2020-11-25 11:39:49   cpu3_freq       1200
     2020-11-25 11:39:49   cpu3_freq_stat  600.00 1200.00 1128.57
     2020-11-25 11:39:50   cpu3_idle_stat  38.92 99.87 93.93
     2020-11-25 11:38:50   cpu_bogomips    76.80
     2020-11-25 11:39:50   cpu_core_count  256
     2020-11-25 11:39:49   cpu_freq        1200
     2020-11-25 11:39:49   cpu_freq_stat   600.00 1200.00 1128.57
     2020-11-25 11:39:50   cpu_idle_stat   32.90 98.74 94.86
     2020-11-25 11:38:50   cpu_model_name  ARMv7 Processor rev 4 (v7l)
     2020-11-25 11:39:50   cpu_temp        52.08
     2020-11-25 11:39:50   cpu_temp_avg    52.1
     2020-11-25 11:39:50   cpu_temp_stat   45.08 56.38 52.03
     2020-11-25 11:39:50   eth0            RX: 724.15 MB, TX: 416.11 MB, Total: 1140.26 MB
     2020-11-25 11:39:50   eth0_diff       RX: 0.04 MB, TX: 0.06 MB, Total: 0.10 MB
     2020-11-25 11:39:50   eth0_ip         192.168.178.27
     2020-11-25 11:39:50   eth0_rx         759325234
     2020-11-25 11:39:50   eth0_speed      100
     2020-11-25 11:39:50   eth0_tx         436322973
     2020-11-25 11:39:50   fhemstarttime   1606300672
     2020-11-25 11:39:50   fhemstarttime_text 25.11.2020 11:37:52
     2020-11-25 11:39:50   fhemuptime      117
     2020-11-25 11:39:50   fhemuptime_text 0 days, 00 hours, 01 minutes
     2020-11-25 11:38:50   fs_boot         Total: 253 MB, Used: 54 MB, 22 %, Available: 199 MB at /boot
     2020-11-25 11:38:50   fs_root         Total: 29648 MB, Used: 5811 MB, 21 %, Available: 22584 MB at /
     2020-11-25 11:38:50   fs_usb1         Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at /media/usb1 (not available)
     2020-11-25 11:39:50   idletime        1116 1.47 %
     2020-11-25 11:39:50   idletime_text   0 days, 00 hours, 18 minutes (1.47 %)
     2020-11-25 11:39:50   loadavg         0.14 0.24 0.19
     2020-11-25 11:38:50   perl_version    v5.28.1
     2020-11-25 11:39:50   ram             Total: 912.70 MB, Used: 338.84 MB, 37.13 %, Free: 291.72 MB
     2020-11-25 11:39:50   ram_used_stat   278.38 650.39 356.43
     2020-11-25 11:39:50   starttime       1606224603
     2020-11-25 11:39:50   starttime_text  24.11.2020 14:30:03
     2020-11-25 11:39:50   stat_cpu        411518 20646 297693 28581731 63391 0 11404
     2020-11-25 11:39:50   stat_cpu0       87687 5960 71036 7161646 18606 0 2658
     2020-11-25 11:39:50   stat_cpu0_diff  218 0 77 5504 9 0 4
     2020-11-25 11:39:50   stat_cpu0_percent 3.75 0.00 1.32 94.70 0.15 0.00 0.07
     2020-11-25 11:39:50   stat_cpu0_text  user: 3.75 %, nice: 0.00 %, sys: 1.32 %, idle: 94.70 %, io: 0.15 %, irq: 0.00 %, sirq: 0.07 %
     2020-11-25 11:39:50   stat_cpu1       111962 4653 76091 7134904 13128 0 3230
     2020-11-25 11:39:50   stat_cpu1_diff  21 0 44 5737 0 0 2
     2020-11-25 11:39:50   stat_cpu1_percent 0.36 0.00 0.76 98.85 0.00 0.00 0.03
     2020-11-25 11:39:50   stat_cpu1_text  user: 0.36 %, nice: 0.00 %, sys: 0.76 %, idle: 98.85 %, io: 0.00 %, irq: 0.00 %, sirq: 0.03 %
     2020-11-25 11:39:50   stat_cpu2       106977 4799 75434 7142372 15335 0 2814
     2020-11-25 11:39:50   stat_cpu2_diff  15 0 56 5739 1 0 2
     2020-11-25 11:39:50   stat_cpu2_percent 0.26 0.00 0.96 98.73 0.02 0.00 0.03
     2020-11-25 11:39:50   stat_cpu2_text  user: 0.26 %, nice: 0.00 %, sys: 0.96 %, idle: 98.73 %, io: 0.02 %, irq: 0.00 %, sirq: 0.03 %
     2020-11-25 11:39:50   stat_cpu3       104891 5233 75132 7142808 16320 0 2702
     2020-11-25 11:39:50   stat_cpu3_diff  56 0 160 5576 14 0 3
     2020-11-25 11:39:50   stat_cpu3_percent 0.96 0.00 2.75 95.99 0.24 0.00 0.05
     2020-11-25 11:39:50   stat_cpu3_text  user: 0.96 %, nice: 0.00 %, sys: 2.75 %, idle: 95.99 %, io: 0.24 %, irq: 0.00 %, sirq: 0.05 %
     2020-11-25 11:39:50   stat_cpu_diff   310 0 336 22555 25 0 10
     2020-11-25 11:39:50   stat_cpu_percent 1.33 0.00 1.45 97.07 0.11 0.00 0.04
     2020-11-25 11:39:50   stat_cpu_text   user: 1.33 %, nice: 0.00 %, sys: 1.45 %, idle: 97.07 %, io: 0.11 %, irq: 0.00 %, sirq: 0.04 %
     2020-11-25 11:39:50   swap            Total: 100.00 MB, Used: 9.00 MB,  9.00 %, Free: 91.00 MB
     2020-11-25 11:39:50   swap_used_stat  0.00 61.00 8.98
     2020-11-25 11:39:50   uptime          76185
     2020-11-25 11:39:50   uptime_text     0 days, 21 hours, 09 minutes
     2020-11-25 11:39:50   wlan0           RX: 7.26 MB, TX: 0.12 MB, Total: 7.38 MB
     2020-11-25 11:39:50   wlan0_diff      RX: 0.01 MB, TX: 0.00 MB, Total: 0.01 MB
     2020-11-25 11:39:50   wlan0_ip        192.168.178.41
     2020-11-10 08:41:09   wlan0_ip6       fe80::cd53:1779:f124:2eaa
     2020-11-25 11:39:50   wlan0_rx        7612224
     2020-11-25 11:39:50   wlan0_speed     24
     2020-11-25 11:39:50   wlan0_tx        123994
   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 256
     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_boot    Filesystem /boot
       fs_boot_free Filesystem /boot (free)
       fs_boot_used Filesystem /boot (used)
       fs_boot_used_percent Filesystem /boot (used %)
       fs_root    Root
       fs_root_free Root (free)
       fs_root_used Root (used)
       fs_root_used_percent Root (used %)
       fs_usb1    USB-Stick
       fs_usb1_free USB-Stick (free)
       fs_usb1_used USB-Stick (used)
       fs_usb1_used_percent USB-Stick (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
       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
       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      WiFi
       wlan0_diff WiFi (diff)
       wlan0_ip   WiFi (IP)
       wlan0_ip6  WiFi (IP6)
       wlan0_rx   WiFi (RX)
       wlan0_speed WiFi (speed)
       wlan0_tx   WiFi (TX)
     excludes:
       stat_.*    1
     shadow_map:
       cpu0_idle_stat 19.87 99.55 94.58
       cpu1_idle_stat 30.76 99.67 95.32
       cpu2_idle_stat 19.86 99.71 95.64
       cpu3_idle_stat 38.92 99.87 93.93
       cpu_core_count 256
       cpu_idle_stat 32.90 98.74 94.86
       cpu_temp   52.08
       cpu_temp_avg 52.1
       cpu_temp_stat 45.08 56.38 52.03
       eth0       RX: 724.15 MB, TX: 416.11 MB, Total: 1140.26 MB
       eth0_diff  RX: 0.04 MB, TX: 0.06 MB, Total: 0.10 MB
       eth0_ip    192.168.178.27
       eth0_rx    759325234
       eth0_speed 100
       eth0_tx    436322973
       fhemstarttime 1606300672
       fhemstarttime_text 25.11.2020 11:37:52
       fhemuptime 117
       fhemuptime_text 0 days, 00 hours, 01 minutes
       idletime   1116 1.47 %
       idletime_text 0 days, 00 hours, 18 minutes (1.47 %)
       loadavg    0.14 0.24 0.19
       ram        Total: 912.70 MB, Used: 338.84 MB, 37.13 %, Free: 291.72 MB
       ram_used_stat 278.38 650.39 356.43
       starttime  1606224603
       starttime_text 24.11.2020 14:30:03
       stat_cpu   411518 20646 297693 28581731 63391 0 11404
       stat_cpu0  87687 5960 71036 7161646 18606 0 2658
       stat_cpu0_diff 218 0 77 5504 9 0 4
       stat_cpu0_percent 3.75 0.00 1.32 94.70 0.15 0.00 0.07
       stat_cpu0_text user: 3.75 %, nice: 0.00 %, sys: 1.32 %, idle: 94.70 %, io: 0.15 %, irq: 0.00 %, sirq: 0.07 %
       stat_cpu1  111962 4653 76091 7134904 13128 0 3230
       stat_cpu1_diff 21 0 44 5737 0 0 2
       stat_cpu1_percent 0.36 0.00 0.76 98.85 0.00 0.00 0.03
       stat_cpu1_text user: 0.36 %, nice: 0.00 %, sys: 0.76 %, idle: 98.85 %, io: 0.00 %, irq: 0.00 %, sirq: 0.03 %
       stat_cpu2  106977 4799 75434 7142372 15335 0 2814
       stat_cpu2_diff 15 0 56 5739 1 0 2
       stat_cpu2_percent 0.26 0.00 0.96 98.73 0.02 0.00 0.03
       stat_cpu2_text user: 0.26 %, nice: 0.00 %, sys: 0.96 %, idle: 98.73 %, io: 0.02 %, irq: 0.00 %, sirq: 0.03 %
       stat_cpu3  104891 5233 75132 7142808 16320 0 2702
       stat_cpu3_diff 56 0 160 5576 14 0 3
       stat_cpu3_percent 0.96 0.00 2.75 95.99 0.24 0.00 0.05
       stat_cpu3_text user: 0.96 %, nice: 0.00 %, sys: 2.75 %, idle: 95.99 %, io: 0.24 %, irq: 0.00 %, sirq: 0.05 %
       stat_cpu_diff 310 0 336 22555 25 0 10
       stat_cpu_percent 1.33 0.00 1.45 97.07 0.11 0.00 0.04
       stat_cpu_text user: 1.33 %, nice: 0.00 %, sys: 1.45 %, idle: 97.07 %, io: 0.11 %, irq: 0.00 %, sirq: 0.04 %
       swap       Total: 100.00 MB, Used: 9.00 MB,  9.00 %, Free: 91.00 MB
       swap_used_stat 0.00 61.00 8.98
       uptime     76185
       uptime_text 0 days, 21 hours, 09 minutes
       wlan0      RX: 7.26 MB, TX: 0.12 MB, Total: 7.38 MB
       wlan0_diff RX: 0.01 MB, TX: 0.00 MB, Total: 0.01 MB
       wlan0_ip   192.168.178.41
       wlan0_rx   7612224
       wlan0_speed 24
       wlan0_tx   123994
Attributes:
   DbLogExclude .*
   DbLogInclude cpu_temp
   disable    0
   event-min-interval cpu_temp:60
   event-on-update-reading cpu_temp,cpu_temp_avg,cpu_freq,eth0_diff,loadavg,ram,fs_.*
   exclude    stat_.*
   filesystems fs_boot:/boot,fs_root:/:Root,fs_usb1:/media/usb1:USB-Stick
   group      RPi
   icon       system_fhem
   network-interfaces eth0:eth0:Ethernet,wlan0:wlan0:WiFi
   nonblocking 0
   room       System->Hardware,System->Monitoring
   userReadings cpu_idle_stat_select_0:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_idle_stat","ReadError"), " ", 0);;;;}, \
cpu_idle_stat_select_1:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_idle_stat","ReadError"), " ", 1);;;;}, \
cpu_idle_stat_select_2:cpu_idle_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_idle_stat","ReadError"), " ", 2);;;;}, \
\
ram_used_stat_select_0:ram_used_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","ram_used_stat","ReadError"), " ", 0);;;;}, \
ram_used_stat_select_1:ram_used_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","ram_used_stat","ReadError"), " ", 1);;;;}, \
ram_used_stat_select_2:ram_used_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","ram_used_stat","ReadError"), " ", 2);;;;}, \
\
cpu_temp_stat_select_0:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_temp_stat","ReadError"), " ", 0);;;;}, \
cpu_temp_stat_select_1:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_temp_stat","ReadError"), " ", 1);;;;}, \
cpu_temp_stat_select_2:cpu_temp_stat.* { splitAndReturnElement(ReadingsVal("System.Monitoring","cpu_temp_stat","ReadError"), " ", 2);;;;},\
\
eth0_diff_select_tx:eth0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","eth0_diff","ReadError"), " ", 1);;;;},\
eth0_diff_select_rx:eth0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","eth0_diff","ReadError"), " ", 4);;;;},\
eth0_diff_select_total:eth0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","eth0_diff","ReadError"), " ", 7);;;;},\
\
wlan0_diff_select_tx:wlan0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","wlan0_diff","ReadError"), " ", 1);;;;},\
wlan0_diff_select_rx:wlan0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","wlan0_diff","ReadError"), " ", 4);;;;},\
wlan0_diff_select_total:wlan0_diff.* { splitAndReturnElement(ReadingsVal("System.Monitoring","wlan0_diff","ReadError"), " ", 7);;;;},\
\
fs_root_select_Available:fs_root.* { splitAndReturnElement(ReadingsVal("System.Monitoring","fs_root","ReadError"), " ", 9);;;;},\
fs_root_select_Usage:fs_root.* { splitAndReturnElement(ReadingsVal("System.Monitoring","fs_root","ReadError"), " ", 6);;;;},\


Liegt es vielleicht an den kopierten \ ?