Ein Modul zur Erfassen von diversen RPi/Linux-Statistiken (SYSMON)

Begonnen von hexenmeister, 06 Dezember 2013, 17:44:38

Vorheriges Thema - Nächstes Thema

franky08

#1200
Wenn ich das richtig verstanden habe: network-interfaces <name>[:<interface>[:<comment>]],...
Mmh mit:
ethernet:enp1s0:Ethernet,wlan:wlp3s0:WiFi

bekomme ich:
ethernet unexpected format 2016-05-08 15:41:24
ethernet_diff unexpected format 2016-05-08 15:41:24


Dir ip Adresse bekomme ich als Reading, den "Rest" nicht
2016-05-08 16:24:24   eth0            unexpected format
     2016-05-08 16:24:24   eth0_diff       unexpected format
     2016-05-08 16:24:24   eth0_ip         192.168.2.49


VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1201
Ich habe mal ein File Merge über beide Dateien gemacht, zum ersten die ifconfig vom Wheezy und zum zweiten die ifconfig vom Ubuntu. Da sich die Readings unterscheiden, matchen die Suchstrings im Sysmon Modul natürlich nicht.
*** /Users/frdonath/Desktop/ifconfig_wheezy.txt 2016-05-08 15:15:02 +0000
--- /Users/frdonath/Desktop/ipconfig_ubuntu.txt 2016-05-08 15:18:18 +0000
***************
*** 0,12 ****
  eth0      Link encap:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx 
! eth0      Link encap:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx 
            inet Adresse:000.000.000.000  Bcast:192.168.2.255  Maske:255.255.255.0
!           inet6-Adresse: fe80::201:2eff:fe00:9f4c/64 Gültigkeitsbereich:Verbindung
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
!           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
!           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            Kollisionen:0 Sendewarteschlangenlänge:1000
!           RX bytes:0 (0.0 MiB)  TX bytes:0 (0.0 MiB)
 
  lo        Link encap:Lokale Schleife 
            inet Adresse:127.0.0.1  Maske:255.0.0.0
--- 0,12 ----
  eth0      Link encap:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx 
! enp1s0    Link encap:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx 
            inet Adresse:000.000.000.000  Bcast:192.168.2.255  Maske:255.255.255.0
!           inet6-Adresse: fe80::fb29:4829:8137:401e/64 Gültigkeitsbereich:Verbindung
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
!           RX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
!           TX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Träger:0
            Kollisionen:0 Sendewarteschlangenlänge:1000
!           RX-Bytes:0 (0.0 MB)  TX-Bytes:0 (0.0 MB)
 
  lo        Link encap:Lokale Schleife 
            inet Adresse:127.0.0.1  Maske:255.0.0.0
***************
*** 11,18 ****
            inet Adresse:127.0.0.1  Maske:255.0.0.0
            inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
            UP LOOPBACK RUNNING  MTU:65536  Metrik:1
!           RX packets:33465 errors:0 dropped:0 overruns:0 frame:0
!           TX packets:33465 errors:0 dropped:0 overruns:0 carrier:0
!           Kollisionen:0 Sendewarteschlangenlänge:0
!           RX bytes:6435405 (6.1 MiB)  TX bytes:6435405 (6.1 MiB)
--- 11,25 ----
            inet Adresse:127.0.0.1  Maske:255.0.0.0
            inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
            UP LOOPBACK RUNNING  MTU:65536  Metrik:1
!           RX-Pakete:2771 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
!           TX-Pakete:2771 Fehler:0 Verloren:0 Überläufe:0 Träger:0
!           Kollisionen:0 Sendewarteschlangenlänge:1
!           RX-Bytes:665667 (665.6 KB)  TX-Bytes:665667 (665.6 KB)
!
! wlp3s0    Link encap:Ethernet  Hardware Adresse d0:7e:35:67:00:70 
!           UP BROADCAST MULTICAST  MTU:1500  Metrik:1
!           RX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
!           TX-Pakete:0 Fehler:0 Verloren:0 Überläufe:0 Träger:0
!           Kollisionen:0 Sendewarteschlangenlänge:1000
!           RX-Bytes:0 (0.0 B)  TX-Bytes:0 (0.0 B)

Zum besseren Vergleich habe ich Readings auf Null bzw. xxx gesetzt.

Die statistic Readings sind unter:
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/enp1s0/statistics

oder unter /sys/class/net/enp1s0 hier ist enp1s0 ein Link auf /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/enp1s0/statistics
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1202
Habe Zeile 2728 in ---> if(index($_, 'RX-Bytes') und die Zeilen 2757/58 in ---> $dataThroughput =~ s/RX-Bytes://;
      $dataThroughput =~ s/TX-Bytes://;
geändert, damit habe ich die RX/TX sowie diff schon einmal.

speed und ip6 Addr. fehlt noch obwohl:
frank2@frank-ZBOX-UBUNTU:~$ cat /sys/class/net/enp1s0/speed
1000

das richtige Ergebnis liefert.

Warum geht das dann mit dieser Codezeile nicht?
my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/$nName/speed ] && cat /sys/class/net/$nName/speed 2>/dev/null || echo not available");
Wenn ich $nName hardcodiert nehme, funktioniert die speed Ausgabe
VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

hexenmeister

probiere mal die angehängte Version, sollte allgemeingültig funktionieren.

IPv6 / speed sollten eig. funktionieren... hast Du FHEM neugestartet oder nur SYSMON-Modul reloadet?

Was liefert denn
[ -f /sys/class/net/enp1s0/speed ] && cat /sys/class/net/enp1s0/speed 2>/dev/null || echo not available
auf der Console (ist genau das, was SYSMON auch aufruft) mit den gleichen Rechten,mit denen SYSMON läuft?

franky08

#1204
Immer mit Neustart  ;)
Mmh funktioniert leider nicht obwohl die Variable $nName an anderer Stelle korrekt funktioniert, lustig ist auch die negative Anzeige "ram".

Auf der Konsole funktioniert es, wie oben schon gepostet:
frank2@frank-ZBOX-UBUNTU:~$ [ -f /sys/class/net/enp1s0/speed ] && cat /sys/class/net/enp1s0/speed 2>/dev/null || echo not available
1000
frank2@frank-ZBOX-UBUNTU:~$
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

Wenn ich $nName hardcodiert nehme mit enp1s0, funktioniert die speed Ausgabe, ip6 probiere ich jetzt schon einige Stunden, bekomme ich aber nicht ausgelesen.

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1206
Ändere ich die Regex in Zeile 2720 in:
if($_=~ m/inet6-(Adresse:)*\s*(\S*)/) {
        $ip6=$2;


dann bekomme ich die ip6. Vielleicht hängt das mit der Perl Version auf dem Ubuntu zusammen, ist bei mir 5.22.1

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1207
Die infos zum RAM finden sich bei Ubuntu unter /proc/meminfo
frank2@frank-ZBOX-UBUNTU:~$ cat /proc/meminfo
MemTotal:        8064160 kB
MemFree:         6522060 kB
MemAvailable:    7224148 kB
Buffers:          105068 kB
Cached:           660784 kB
SwapCached:            0 kB
Active:          1016596 kB
Inactive:         342816 kB
Active(anon):     594672 kB
Inactive(anon):    92024 kB
Active(file):     421924 kB
Inactive(file):   250792 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       8278012 kB
SwapFree:        8278012 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        593568 kB
Mapped:           159676 kB
Shmem:             93140 kB
Slab:             101228 kB
SReclaimable:      71648 kB
SUnreclaim:        29580 kB
KernelStack:        6512 kB
PageTables:        26312 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    12310092 kB
Committed_AS:    3000752 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:    307200 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      126472 kB
DirectMap2M:     8151040 kB
frank2@frank-ZBOX-UBUNTU:~$


vmstat -s:

frank2@frank-ZBOX-UBUNTU:~$ vmstat -s
      8064160 K Gesamtspeicher
       679944 K benutzter Speicher
      1020696 K aktiver Speicher
       342744 K inaktiver Speicher
      6511464 K freier Speicher
       108156 K Pufferspeicher
       764596 K Auslagerungsspeicher-Cache
      8278012 K Gesamt-Auslagerungsspeicher
            0 K benutzter Auslagerungsspeicher
      8278012 K freier Auslagerungsspeicher
       245190 nicht-nice Benutzer-CPU-Ticks
         4532 nice-Benutzer-CPU-Ticks
        93655 System-CPU-Ticks
     44898365 Untätig-CPU-Ticks
        30689 E/A-Warten-CPU-Ticks
            0 IRQ-CPU-Ticks
         2290 softirq-CPU-Ticks
            0 Gestohlene CPU-Ticks
       658854 pages paged in
       797082 pages paged out
            0 pages swapped in
            0 pages swapped out
      5036175 Interrupts
      8529716 CPU-Kontext-Änderungen
   1462702367 Startzeit
        56959 Forks


free:
frank2@frank-ZBOX-UBUNTU:~$ free
              gesamt       benutzt     frei      gemns.  Puffer/Cache verfügbar
Speicher:     8064160      588576     6629832      205760      845752     7199412
Auslagerungsspeicher:     8278012           0     8278012
frank2@frank-ZBOX-UBUNTU:~$


Siehe auch: http://manpages.ubuntu.com/manpages/xenial/de/man5/proc.5.html
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

hexenmeister

Korrektur für ip und RAM, obwohl ich nicht verstehe, warum RAM nicht funktioniert...

franky08

Zitatobwohl ich nicht verstehe, warum RAM nicht funktioniert...

ich auch nicht, habe seit gestern deinen Code regelrecht "zerpflückt".

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1210
$nName hat leider noch nicht den Namen der Netzwerkschnittstelle und die Anzeige vom Ram ist leider auch noch nicht OK

Siehe Screenshot

Weiter oben hatte ich die Ausgaben von free, cat /proc/meminfo und vmstat -s schon einmal gepostet. Scheint ein schwieriger "Fall" zu sein  ;)

wenn ich:
my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/$nName/speed ] && cat /sys/class/net/$nName/speed 2>/dev/null || echo not available");
      if(defined($speed)) {
      $map->{$nName.SPEED_SUFFIX} = $speed;


in

my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/enp1s0/speed ] && cat /sys/class/net/enp1s0/speed 2>/dev/null || echo not available");
      if(defined($speed)) {
      $map->{$nName.SPEED_SUFFIX} = $speed;


ändere, wird das richtige Ergebnis ausgegeben. Vlt. doch eine Perl Versions Geschichte Wheezy mit 5.14 und Ubuntu mit 5.22.1?

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1211
Netzwerkgeschwindigkeit, wenn ich in einer sub (zum testen) folgenden Code ausführe:
sub speed_rw()

{
my ($hash) = @_;
my $speed;
my $nName = "enp1s0";

my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/$nName/speed ] && cat /sys/class/net/$nName/speed 2>/dev/null");
fhem "set Test_speed $speed";
}


bekomme ich das richtige Resultat.

Internals:
   CFGFN
   NAME       Test_speed
   NR         175
   STATE      1000
   TYPE       dummy
   Readings:
     2016-05-10 23:12:47   state           1000
Attributes:
   DbLogExclude .*
   room       Test


OK, so relevant ist der Test nicht, da im Array nicht drin ist

P.S. ip6 Adresse wird NICHT angezeigt, habe das SYSMON device mal gelöscht und nach einem reboot neu angelegt, erst dann ist mir aufgefallen das ip6 nicht angezeigt wird, genau so Ethernet und WiFi speed und die Ram Ausgabe ist ebenfalls falsch.

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1212
ip6 bitte mit || so umbauen, dann funktioniert es:
my $ip = undef; my $ip6 = undef;
    foreach (@dataThroughput) {
      if($_=~ m/inet\s+(Adresse:)*(\S*)/) {
        $ip=$2;
      }
      if(!$ip && $_=~ m/inet\s+(addr:)*(\S*)/) {
        $ip=$2;
      }
     
      if($_=~ m/inet6-(Adresse:)*\s*(\S*)\s+G.ltigkeitsbereich:Verbindung/ || $_=~ m/inet6-(Adresse:)*\s*(\S*)/) {
        $ip6=$2;
      }
      if(!$ip && $_=~ m/inet6\s+(addr:)*\s*(\S*)\s+Scope:Link/) {
        $ip6=$2;
      }
      if(!$ip && $_=~ m/inet6\s+(addr:)*\s*(\S*)/) {
        $ip6=$2;
      }
      if(!$ip && $_=~ m/inet6-(Adresse:)*\s*(\S*)/) {
        $ip6=$2;
      }

      if((index($_, 'RX bytes') >= 0) || (index($_, 'RX-Bytes') >= 0)) {
        $dataThroughput = $_;
        last;
      }
    }


Zeile 2718 mit ODER ergänzen:
if($_=~ m/inet6-(Adresse:)*\s*(\S*)\s+G.ltigkeitsbereich:Verbindung/ || $_=~ m/inet6-(Adresse:)*\s*(\S*)/) {

Mit dem Ram habe ich mich mit einer sub beholfen:
sub ram_read()
{
my $rare = ReadingsVal("Zotac_Status","ram",0);
my @daten3 = split(/ /,$rare);

my $to = $daten3[1];
my $us = $daten3[4];
my $fr = $daten3[9];

my $used = ($to - (-1 * $us));
my $use2 = sprintf "%.2f",$used;
my $proz = (100 * $used) / $to;
my $free = $to - $used;
my $pro2 = sprintf "%.2f",$proz;

fhem "setreading Test_speed2 Total $to";
fhem "setreading Test_speed2 Used $use2";
fhem "setreading Test_speed2 Free $free";
fhem "setreading Test_speed2 Prozent_benutzt $pro2";
fhem "set Test_speed2 $free";

}


P.S. das dummy device hat noch den Namen speed weil ich damit $nName getestet habe


VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

@hexenmeister
Hallo, gibt es schon etwas neues? Probleme bereiten mir immer noch ram und das $nName in $speed nicht funktioniert. Hier ma ein aktuelles list:
Internals:
   DEF        1 1 1 10
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 10
   MODE       local
   NAME       Zotac_Status
   NR         1408
   STATE      Active
   TYPE       SYSMON
   Readings:
     2016-05-22 20:34:51   cpu0_freq       499
     2016-05-22 20:34:51   cpu0_freq_stat  496.00 2172.00 514.89
     2016-05-22 20:34:51   cpu0_idle_stat  0.07 131.70 99.32
     2016-05-22 20:34:51   cpu0_temp       51.00°C
     2016-05-22 20:34:51   cpu1_freq       499
     2016-05-22 20:34:51   cpu1_freq_stat  481.00 2176.00 507.30
     2016-05-22 20:34:51   cpu1_idle_stat  0.05 142.45 99.40
     2016-05-22 20:34:51   cpu1_temp       52.00°C
     2016-05-22 20:34:51   cpu1_temp_avg   51.3
     2016-05-22 20:34:51   cpu1_temp_stat  28.00 54.00 51.29
     2016-05-22 20:34:51   cpu2_freq       718
     2016-05-22 20:34:51   cpu2_freq_stat  495.00 2178.00 635.00
     2016-05-22 20:34:51   cpu2_idle_stat  0.02 99.98 94.58
     2016-05-22 20:34:51   cpu2_temp       52.00°C
     2016-05-22 20:34:51   cpu2_temp_avg   51.9
     2016-05-22 20:34:51   cpu2_temp_stat  28.00 54.00 51.98
     2016-05-22 20:34:51   cpu3_freq       518
     2016-05-22 20:34:51   cpu3_freq_stat  492.00 2174.00 578.96
     2016-05-22 20:34:51   cpu3_idle_stat  0.02 100.00 98.73
     2016-05-22 20:34:51   cpu3_temp       54.00°C
     2016-05-22 20:34:51   cpu3_temp_avg   52.6
     2016-05-22 20:34:51   cpu3_temp_stat  28.00 57.00 52.59
     2016-05-22 20:34:51   cpu4_temp       54.00
     2016-05-22 20:34:51   cpu4_temp_avg   53.1
     2016-05-22 20:34:51   cpu4_temp_stat  28.00 57.00 53.11
     2016-05-22 20:34:51   cpu_core_count  256
     2016-05-22 20:34:51   cpu_freq        499
     2016-05-22 20:34:51   cpu_freq_stat   496.00 2172.00 514.89
     2016-05-22 20:34:51   cpu_idle_stat   0.05 99.92 98.02
     2016-05-22 20:06:51   cpu_model_name  Intel(R) Celeron(R) CPU  N2930  @ 1.83GHz
     2016-05-22 20:34:51   eth0            RX: 178.72 MB, TX: 492.51 MB, Total: 671.23 MB
     2016-05-22 20:34:51   eth0_diff       RX: 0.09 MB, TX: 0.21 MB, Total: 0.30 MB
     2016-05-22 20:34:51   eth0_ip         192.168.2.49
     2016-05-22 20:34:51   eth0_ip6        fe80::201:2eff:fe00:a188/64
     2016-05-22 20:34:51   eth0_rx         187405174
     2016-05-22 20:34:51   eth0_speed      1000
     2016-05-22 20:34:51   eth0_tx         516430565
     2016-05-22 20:34:51   fhemstarttime   1463940357
     2016-05-22 20:34:51   fhemstarttime_text 22.05.2016 20:05:57
     2016-05-22 20:34:51   fhemuptime      1734
     2016-05-22 20:34:51   fhemuptime_text 0 days, 00 hours, 28 minutes
     2016-05-22 20:34:51   idletime        1060 1.53 %
     2016-05-22 20:34:51   idletime_text   0 days, 00 hours, 17 minutes (1.53 %)
     2016-05-22 20:34:51   loadavg         0.13 0.14 0.09
     2016-05-22 20:06:51   perl_version    v5.22.1
     2016-05-22 20:34:51   ram             Total: 7875.16 MB, Used: -9689.95 MB, -123.04 %, Free: 15150.55 MB
     2016-05-22 20:34:51   ram_used_stat   -9695.07 618.27 -9680.32
     2016-05-22 20:30:51   root            Total: 460886 MB, Used: 4026 MB, 1 %, Available: 433426 MB at /
     2016-05-22 20:34:51   starttime       1463872936
     2016-05-22 20:34:51   starttime_text  22.05.2016 01:22:16
     2016-05-22 20:34:51   stat_cpu        321894 33945 94782 27139070 51345 0 3372
     2016-05-22 20:34:51   stat_cpu0       12254 11656 20026 6864458 3941 0 494
     2016-05-22 20:34:51   stat_cpu0_diff  2 32 28 5939 0 0 0
     2016-05-22 20:34:51   stat_cpu0_percent 0.03 0.53 0.47 98.97 0.00 0.00 0.00
     2016-05-22 20:34:51   stat_cpu0_text  user: 0.03 %, nice: 0.53 %, sys: 0.47 %, idle: 98.97 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2016-05-22 20:34:51   stat_cpu1       26808 11030 22893 6848520 3612 0 256
     2016-05-22 20:34:51   stat_cpu1_diff  5 11 20 5963 3 0 0
     2016-05-22 20:34:51   stat_cpu1_percent 0.08 0.18 0.33 99.35 0.05 0.00 0.00
     2016-05-22 20:34:51   stat_cpu1_text  user: 0.08 %, nice: 0.18 %, sys: 0.33 %, idle: 99.35 %, io: 0.05 %, irq: 0.00 %, sirq: 0.00 %
     2016-05-22 20:34:51   stat_cpu2       257451 2492 36098 6600743 10295 0 1843
     2016-05-22 20:34:51   stat_cpu2_diff  321 0 36 5642 0 0 2
     2016-05-22 20:34:51   stat_cpu2_percent 5.35 0.00 0.60 94.02 0.00 0.00 0.03
     2016-05-22 20:34:51   stat_cpu2_text  user: 5.35 %, nice: 0.00 %, sys: 0.60 %, idle: 94.02 %, io: 0.00 %, irq: 0.00 %, sirq: 0.03 %
     2016-05-22 20:34:51   stat_cpu3       25380 8767 15764 6825348 33496 0 777
     2016-05-22 20:34:51   stat_cpu3_diff  6 0 7 5916 67 0 3
     2016-05-22 20:34:51   stat_cpu3_percent 0.10 0.00 0.12 98.62 1.12 0.00 0.05
     2016-05-22 20:34:51   stat_cpu3_text  user: 0.10 %, nice: 0.00 %, sys: 0.12 %, idle: 98.62 %, io: 1.12 %, irq: 0.00 %, sirq: 0.05 %
     2016-05-22 20:34:51   stat_cpu_diff   334 43 91 23460 69 0 5
     2016-05-22 20:34:51   stat_cpu_percent 1.39 0.18 0.38 97.74 0.29 0.00 0.02
     2016-05-22 20:34:51   stat_cpu_text   user: 1.39 %, nice: 0.18 %, sys: 0.38 %, idle: 97.74 %, io: 0.29 %, irq: 0.00 %, sirq: 0.02 %
     2016-05-22 20:34:51   swap            Total: 8084.00 MB, Used: 0.00 MB,  0.00 %, Free: 8084.00 MB
     2016-05-22 20:34:51   swap_used_stat  0.00 0.00 0.00
     2016-05-22 20:34:51   uptime          69155
     2016-05-22 20:34:51   uptime_text     0 days, 19 hours, 12 minutes
     2016-05-22 20:34:51   wlan            RX: 0.00 MB, TX: 0.00 MB, Total: 0 MB
     2016-05-22 20:34:51   wlan_diff       RX: 0.00 MB, TX: 0.00 MB, Total: 0.00 MB
     2016-05-22 20:34:51   wlan_rx         0
     2016-05-22 20:34:51   wlan_speed      1000
     2016-05-22 20:34:51   wlan_tx         0
   Helper:
     sys_cpu0_freq 1
     sys_cpu0_temp 0
     sys_cpu1_freq 1
     sys_cpu1_temp 1
     sys_cpu2_freq 1
     sys_cpu2_temp 1
     sys_cpu3_freq 1
     sys_cpu3_temp 1
     sys_cpu4_freq 0
     sys_cpu4_temp 1
     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_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_freq  CPU frequency (core 0)
       cpu0_freq_stat CPU frequency (core 0) stat
       cpu0_idle_stat CPU0 min/max/avg (idle)
       cpu0_temp  user defined: sensorCPU
       cpu1_freq  CPU frequency (core 1)
       cpu1_freq_stat CPU frequency (core 1) stat
       cpu1_idle_stat CPU1 min/max/avg (idle)
       cpu1_temp  user defined: sensorCPU
       cpu1_temp_avg Average CPU temperature (core 1)
       cpu1_temp_stat CPU temperature stat (core 1)
       cpu2_freq  CPU frequency (core 2)
       cpu2_freq_stat CPU frequency (core 2) stat
       cpu2_idle_stat CPU2 min/max/avg (idle)
       cpu2_temp  user defined: sensorCPU
       cpu2_temp_avg Average CPU temperature (core 2)
       cpu2_temp_stat CPU temperature stat (core 2)
       cpu3_freq  CPU frequency (core 3)
       cpu3_freq_stat CPU frequency (core 3) stat
       cpu3_idle_stat CPU3 min/max/avg (idle)
       cpu3_temp  user defined: sensorCPU
       cpu3_temp_avg Average CPU temperature (core 3)
       cpu3_temp_stat CPU temperature stat (core 3)
       cpu4_idle_stat CPU4 min/max/avg (idle)
       cpu4_temp  CPU temperature (core 4)
       cpu4_temp_avg Average CPU temperature (core 4)
       cpu4_temp_stat CPU temperature stat (core 4)
       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
       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
       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
       wlan       WiFi
       wlan_diff  WiFi (diff)
       wlan_ip    WiFi (IP)
       wlan_ip6   WiFi (IP6)
       wlan_rx    WiFi (RX)
       wlan_speed WiFi (speed)
       wlan_tx    WiFi (TX)
     Excludes:
Attributes:
   DbLogExclude .*
   network-interfaces eth0:enp1s0:Ethernet,wlan:wlp3s0:WiFi
   room       System
   user-fn    sensorCPU:1:cpu0_temp:cpu1_temp:cpu2_temp:cpu3_temp
   verbose    0


Habe $nName jetzt noch hardcodiert.

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

hexenmeister

Sorry, letzte Wochen war in der Firma Land unter, bin zu gar nichts gekommen. Ich schaue mir das an.