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

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

Vorheriges Thema - Nächstes Thema

hexenmeister

#450
Das hilft, ich weiß jetzt, warum FHEM abstürzt.
MAC hat leider kein procfs, aus der ich einige Informationen auslese. 'Ersatz' beschaffen wird einiges an Umbau erfordern.
Ich hänge hier eine Version, die zwar einige Infos nicht mehr anzeigt, aber hoffentlich auch nicht abstürtz. Probiere mal bitte aus.

EDIT: Anhang gelöscht
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

holzwurm83

Ist leider wieder abgeschmiert.

ZitatUse of uninitialized value $val_txt in string at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1044.
cat: /proc/uptime: No such file or directory
Use of uninitialized value $uptime in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 914.
Use of uninitialized value $idle in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 914.
Illegal division by zero at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 914.
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

hexenmeister

Das ist das neue Log?
Komisch, da stimmt doch was nicht, die Zeilen sind ja unverändert... Ist die Datei wirklich ersetzt worden? Schau mal bitte, ob in der Zeile 1942 die Funktion SYSMON_isProcFS definiert ist.

Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

holzwurm83

Zitat von: hexenmeister am 07 September 2014, 01:21:25
Das ist das neue Log?
Komisch, da stimmt doch was nicht, die Zeilen sind ja unverändert... Ist die Datei wirklich ersetzt worden? Schau mal bitte, ob in der Zeile 1942 die Funktion SYSMON_isProcFS definiert ist.

Sorry, dass es so lange gedauert hat, aber mein ganzer server hat sich heute Nacht verabschiedet!  >:(
Glücklicherweise hatte ich eine Sicherung, die ich wieder aufspienen konnte. Das hat nur etwas Zeit gekostet.

Habe das jetzt noch mal getestet und nachgeschaut. Die Datei hat den entsprechenden Eintrag. Im Log steht jetzt nur etwas anderes.

ZitatUse of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1345.
Use of uninitialized value $total in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1353.
Use of uninitialized value $used in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1354.
Use of uninitialized value $free in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1355.
Use of uninitialized value $buffers in division (/) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1356.
Illegal division by zero at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1364.
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

hexenmeister

#454
Verdammt, Befehl "free" kennt Mac auch nicht? Die Unterschiede sind ja groß, ich befürchte, ohne Mac zu haben und zu kennen, wird das schwer...
OK, noch ein Versuch, ich bin gespannt, wo es noch abbricht...

EDIT: Anhang gelöscht
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

holzwurm83

So, hab die neue Datei getestet. Bis jetzt noch kein Absturz. Dies zeigt der Log:

ZitatUse of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.

Es werden auch schon einige Werte gezogen.
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

hexenmeister

#456
Na immerhin... Hier ist noch eine Version, die Warnungen sollten weg sein. Aber die Netztwerkdaten liefert OSX wohl auch anders... Was kommt, wenn man auf der Console ifconfig eingibt?

Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

holzwurm83

Die Meldungen im Log sind noch da.

ZitatUse of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.

hier die "ifconfig"
Zitatifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
   options=3<RXCSUM,TXCSUM>
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
   inet 127.0.0.1 netmask 0xff000000
   inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
   ether a8:20:66:2e:74:ab
   inet6 fe80::aa20:66ff:fe2e:74ab%en0 prefixlen 64 scopeid 0x4
   inet 192.168.136.100 netmask 0xffffff00 broadcast 192.168.136.255
   media: autoselect (1000baseT <full-duplex>)
   status: active
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
   ether 20:c9:d0:96:c3:bf
   media: autoselect (<unknown type>)
   status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
   ether 02:c9:d0:96:c3:bf
   media: autoselect
   status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
   lladdr a8:20:66:ff:fe:75:8c:e0
   media: autoselect <full-duplex>
   status: inactive
mediaserver:fhem mediaserver$ Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.
Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.
Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.
Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.
Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.
Can't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2169.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1367.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1369.
Use of uninitialized value $fs_desc2 in string ne at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1371.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 131.
Use of uninitialized value $string in substitution (s///) at /Users/mediaserver/fhem/FHEM/99_Utils.pm line 132.
Use of uninitialized value in split at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1374.
Use of uninitialized value $total in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1382.
Use of uninitialized value $total2 in numeric gt (>) at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 1404.


- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

hexenmeister

Es sieht nach der alten Version aus... FHEM neugestartet oder reload 42_SYSMON eingegeben?

Mit ifconfig sieht schlecht aus... Da stehen keine Übertragungsdaten drin. Keine Ahnung jetzt, wo ich diese für MAC OSX herbekomme :( Any Idea?

Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

justme1968

#459
mit netstat -n -ifür alle interfaces, mit netstat -n -I <interface>für ein bestimmes.

das -n ist wichtig weil es sonst unter umständen recht lange dauert.

[doc:~] andre% netstat -n -i
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
lo0   16384 <Link#1>                          6179     0     6179     0     0
lo0   16384 fe80::1%lo0 fe80:1::1             6179     -     6179     -     -
lo0   16384 127           127.0.0.1           6179     -     6179     -     -
lo0   16384 ::1/128     ::1                   6179     -     6179     -     -
gif0* 1280  <Link#2>                             0     0        0     0     0
stf0* 1280  <Link#3>                             0     0        0     0     0
en0   1500  <Link#4>    1c:6f:65:cf:0a:6d  3034324     0  2237356     0     0
en0   1500  fe80::1e6f: fe80:4::1e6f:65ff  3034324     -  2237356     -     -
en0   1500  10.0.1/24     10.0.1.29        3034324     -  2237356     -     -
utun0 1380  <Link#5>                             0     0        6     0     0
utun0 1380  fe80::313a: fe80:5::313a:a5a6        0     -        6     -     -
utun0 1380  fd2d:2363:8 fd2d:2363:8226:8b        0     -        6     -     -
[doc:~] andre% netstat -n -I en0
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  <Link#4>    1c:6f:65:cf:0a:6d  3034489     0  2237457     0     0
en0   1500  fe80::1e6f: fe80:4::1e6f:65ff  3034489     -  2237457     -     -
en0   1500  10.0.1/24     10.0.1.29        3034489     -  2237457     -     -
[doc:~] andre%


gruss
  andre

edit: und mit -b in Bytes
[doc:~] andre% netstat -n -b -i
Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes    Opkts Oerrs     Obytes  Coll
lo0   16384 <Link#1>                          6406     0     621314     6406     0     621314     0
lo0   16384 fe80::1%lo0 fe80:1::1             6406     -     621314     6406     -     621314     -
lo0   16384 127           127.0.0.1           6406     -     621314     6406     -     621314     -
lo0   16384 ::1/128     ::1                   6406     -     621314     6406     -     621314     -
gif0* 1280  <Link#2>                             0     0          0        0     0          0     0
stf0* 1280  <Link#3>                             0     0          0        0     0          0     0
en0   1500  <Link#4>    1c:6f:65:cf:0a:6d  3038215     0 3467695689  2239927     0 1603785877     0
en0   1500  fe80::1e6f: fe80:4::1e6f:65ff  3038215     - 3467695689  2239927     - 1603785877     -
en0   1500  10.0.1/24     10.0.1.29        3038215     - 3467695689  2239927     - 1603785877     -
utun0 1380  <Link#5>                             0     0          0        6     0        472     0
utun0 1380  fe80::313a: fe80:5::313a:a5a6        0     -          0        6     -        472     -
utun0 1380  fd2d:2363:8 fd2d:2363:8226:8b        0     -          0        6     -        472     -
[doc:~] andre% netstat -n -b -I en0
Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes    Opkts Oerrs     Obytes  Coll
en0   1500  <Link#4>    1c:6f:65:cf:0a:6d  3038227     0 3467696825  2239936     0 1603786764     0
en0   1500  fe80::1e6f: fe80:4::1e6f:65ff  3038227     - 3467696825  2239936     - 1603786764     -
en0   1500  10.0.1/24     10.0.1.29        3038227     - 3467696825  2239936     - 1603786764     -
[doc:~] andre%
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

hexenmeister

Danke Andre!
Deine Informationen haben mir schon oft geholfen :)

Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

holzwurm83

So, habe das gerade noch mal mit der neuen Datei noch mal getestet. Jetzt kommt nur noch folgende Meldung. Immer wieder.

ZitatCan't exec "free": No such file or directory at /Users/mediaserver/fhem/FHEM/42_SYSMON.pm line 2171.
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

hexenmeister

klar, OSX kennt kein 'free'. Das muss ich im Modul erkennen und entsprechend anders behandeln. Etwa so, wie Andre gezeigt hat. Ist noch ein Stückchen zu tun...
Maintainer: MQTT_GENERIC_BRIDGE, SYSMON, SMARTMON, systemd_watchdog, MQTT, MQTT_DEVICE, MQTT_BRIDGE
Contrib: dev_proxy

justme1968

für den speicher brauchst du etwas in der art:[rojo:~] andre% vm_stat
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free:                                5268.
Pages active:                            440314.
Pages inactive:                          430905.
Pages speculative:                          878.
Pages throttled:                              0.
Pages wired down:                        398445.
Pages purgeable:                             69.
"Translation faults":                 508984629.
Pages copy-on-write:                    5668036.
Pages zero filled:                    347281743.
Pages reactivated:                    114745855.
Pages purged:                          13495647.
File-backed pages:                        88747.
Anonymous pages:                         783350.
Pages stored in compressor:             1760568.
Pages occupied by compressor:            820444.
Decompressions:                        48558417.
Compressions:                          63022425.
Pageins:                                3754238.
Pageouts:                                589840.
Swapins:                                 714378.
Swapouts:                               1017813.
oder ausführlicher[rojo:~] andre% sysctl vm
vm.loadavg: { 2.45 2.19 3.34 }
vm.swapusage: total = 1024.00M  used = 529.25M  free = 494.75M  (encrypted)
vm.cs_force_kill: 0
vm.cs_force_hard: 0
vm.cs_debug: 0
vm.cs_all_vnodes: 0
vm.cs_enforcement: 0
vm.cs_enforcement_panic: 0
vm.sigpup_disable: 0
vm.global_no_user_wire_amount: 67108864
vm.global_user_wire_limit: 8522825728
vm.user_wire_limit: 8522825728
vm.vm_copy_src_not_internal: 129
vm.vm_copy_src_not_symmetric: 14994
vm.vm_copy_src_large: 0
vm.vm_page_external_count: 355255
vm.vm_page_filecache_min: 104857
vm.compressor_mode: 4
vm.compressor_bytes_used: 2984467096
vm.compressor_swapout_target_age: 0
vm.compressor_eval_period_in_msecs: 250
vm.compressor_sample_min_in_msecs: 500
vm.compressor_sample_max_in_msecs: 10000
vm.compressor_thrashing_threshold_per_10msecs: 50
vm.compressor_thrashing_min_per_10msecs: 20
vm.compressor_minorcompact_threshold_divisor: 20
vm.compressor_majorcompact_threshold_divisor: 25
vm.compressor_unthrottle_threshold_divisor: 35
vm.compressor_catchup_threshold_divisor: 50
vm.cs_validation: 1
vm.cs_blob_count: 616
vm.cs_blob_size: 8053170
vm.cs_blob_count_peak: 693
vm.cs_blob_size_peak: 8389641
vm.cs_blob_size_max: 1675264
vm.vm_debug_events: 0
vm.allow_stack_exec: 0
vm.allow_data_exec: 1
vm.shared_region_unnest_logging: 1
vm.shared_region_trace_level: 1
vm.shared_region_version: 3
vm.shared_region_persistence: 0
vm.vm_page_free_target: 2000
vm.memory_pressure: 0
vm.page_free_wanted: 86
vm.page_purgeable_count: 1055
vm.page_purgeable_wired_count: 0
vm.madvise_free_debug: 0
vm.page_reusable_count: 39048
vm.reusable_success: 11350536
vm.reusable_failure: 1060241
vm.reusable_shared: 248771
vm.all_reusable_calls: 290574
vm.partial_reusable_calls: 11142306
vm.reuse_success: 9593371
vm.reuse_failure: 5124
vm.all_reuse_calls: 257820
vm.partial_reuse_calls: 9684238
vm.can_reuse_success: 6171792
vm.can_reuse_failure: 79183
vm.reusable_reclaimed: 0
vm.page_free_count: 1914
vm.page_speculative_count: 810
vm.page_cleaned_count: 0
vm.pageout_inactive_dirty_internal: 63170734
vm.pageout_inactive_dirty_external: 465495
vm.pageout_inactive_clean: 18967682
vm.pageout_speculative_clean: 32929182
vm.pageout_inactive_used: 115155398
vm.pageout_freed_from_inactive_clean: 18423099
vm.pageout_freed_from_speculative: 32929182
vm.pageout_freed_from_cleaned: 568334
vm.pageout_enqueued_cleaned: 1010912
vm.pageout_enqueued_cleaned_from_inactive_clean: 0
vm.pageout_enqueued_cleaned_from_inactive_dirty: 1011010
vm.pageout_cleaned: 568334
vm.pageout_cleaned_reactivated: 407922
vm.pageout_cleaned_reference_reactivated: 4
vm.pageout_cleaned_volatile_reactivated: 0
vm.pageout_cleaned_fault_reactivated: 557
vm.pageout_cleaned_commit_reactivated: 407361
vm.pageout_cleaned_busy: 33
vm.pageout_cleaned_nolock: 12931

gesamtspeicher bekommst du mit[rojo:~] andre% sysctl hw.memsize
hw.memsize: 8589934592
oder[rojo:~/fhem-code/fhem] andre% hostinfo
Mach kernel version:
Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 246 tasks, 1345 threads, 8 processors
Load average: 3.03, Mach factor: 4.96
noch mehr hw info damit:[rojo:~/fhem-code/fhem] andre% sysctl hw
hw.ncpu: 8
hw.byteorder: 1234
hw.memsize: 8589934592
hw.activecpu: 8
hw.physicalcpu: 4
hw.physicalcpu_max: 4
hw.logicalcpu: 8
hw.logicalcpu_max: 8
hw.cputype: 7
hw.cpusubtype: 4
hw.cpu64bit_capable: 1
hw.cpufamily: 1418770316
hw.cacheconfig: 8 2 2 8 0 0 0 0 0 0
hw.cachesize: 8589934592 32768 262144 6291456 0 0 0 0 0 0
hw.pagesize: 4096
hw.busfrequency: 100000000
hw.busfrequency_min: 100000000
hw.busfrequency_max: 100000000
hw.cpufrequency: 2200000000
hw.cpufrequency_min: 2200000000
hw.cpufrequency_max: 2200000000
hw.cachelinesize: 64
hw.l1icachesize: 32768
hw.l1dcachesize: 32768
hw.l2cachesize: 262144
hw.l3cachesize: 6291456
hw.tbfrequency: 1000000000
hw.packages: 1
hw.optional.floatingpoint: 1
hw.optional.mmx: 1
hw.optional.sse: 1
hw.optional.sse2: 1
hw.optional.sse3: 1
hw.optional.supplementalsse3: 1
hw.optional.sse4_1: 1
hw.optional.sse4_2: 1
hw.optional.x86_64: 1
hw.optional.aes: 1
hw.optional.avx1_0: 1
hw.optional.rdrand: 0
hw.optional.f16c: 0
hw.optional.enfstrg: 0
hw.optional.fma: 0
hw.optional.avx2_0: 0
hw.optional.bmi1: 0
hw.optional.bmi2: 0
hw.optional.rtm: 0
hw.optional.hle: 0
hw.cputhreadtype: 1
hw.machine = x86_64
hw.model = MacBookPro8,2
hw.ncpu = 8
hw.byteorder = 1234
hw.physmem = 2147483648
hw.usermem = 570408960
hw.pagesize = 4096
hw.epoch = 0
hw.vectorunit = 1
hw.busfrequency = 100000000
hw.cpufrequency = 2200000000
hw.cachelinesize = 64
hw.l1icachesize = 32768
hw.l1dcachesize = 32768
hw.l2settings = 1
hw.l2cachesize = 262144
hw.l3settings = 1
hw.l3cachesize = 6291456
hw.tbfrequency = 1000000000
hw.memsize = 8589934592
hw.availcpu = 8


du kannst auch gezielt einzelne parameter direkt abfragen:[rojo:~/fhem-code/fhem] andre% sysctl hw.cpufrequency
hw.cpufrequency: 2200000000


viel spass :)

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Stefan H.

Hallo Hexenmeister

Ich benutze das SYSMON Modul noch nicht lange; es funktioniert auf meinem System jedoch bis auf eine Ausnahme einwandfrei; besten Dank dafür an dieser Stelle!

Die Ausnahme betrifft die net_xxx_diff - Readings, welche immer demselben Wert haben wie die net_xxx Readings.

Nach ein bisschen rumsuchen bin ich in der Zeile 1575 von 42_SYSMON.pl (Rev. 6390) fündig geworden:
Als "reading" für die Funktion "ReadingsVal" zum Holen des vorherigen Wertes zum Bilden der Differenz wird "$device" verwendet. Wenn ich dort stattdessen "$nName" einsetze, funktionieren die net_xxx_diff - Readings einwandfrei.

Gruss
Stefan