SYSSTAT hängt FHEM bei SNMP-Anfragen auf

Begonnen von Jama, 25 Juli 2017, 10:37:53

Vorheriges Thema - Nächstes Thema

Jama

Hallo zusammen,

ich habe folgendes Problem. Sobald ich mit dem Modul SYSSTAT eine entfernte Maschine, aber auch die lokale Maschine mit SNMP überwachen will, hängt sich FHEM komplett weg, alle Verbindungen werden gecancelt (wie damals beim HTTPMOD, der auf wartende Verbindung wartete). Ich habe beide benötigten PERL-Module nachinstalliert.

Im Log taucht dann bspw. folgendes auf:

2017.07.25 10:23:30 1: PERL WARNING: Use of uninitialized value $temp in division (/) at ./FHEM/32_SYSSTAT.pm line 578.
2017.07.25 10:25:37 1: PERL WARNING: Use of uninitialized value $freq in division (/) at ./FHEM/32_SYSSTAT.pm line 604.



Und hier schön zu sehen, FHEM hängt:

2017.07.25 10:30:39 3: CUL_HM set ga.sw03 statusRequest
2017.07.25 10:30:40 3: CUL_HM set ke.pwr01_Sw statusRequest
2017.07.25 10:31:52 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:31:52 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:31:52 1: 192.168.22.2:1000 disconnected, waiting to reappear (HMLAN1)
2017.07.25 10:31:52 1: HMLAN_Parse: HMLAN1 new condition disconnected
2017.07.25 10:31:52 1: HMLAN_Parse: HMLAN1 new condition init
2017.07.25 10:31:52 1: 192.168.22.2:1000 reappeared (HMLAN1)
2017.07.25 10:31:52 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:31:52 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:31:54 1: HMLAN_Parse: HMLAN1 new condition ok
2017.07.25 10:31:54 3: HMLAN2:keepAlive device opened
2017.07.25 10:31:54 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:31:54 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:32:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:32:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:33:06 1: 192.168.22.2:1000 disconnected, waiting to reappear (HMLAN1)
2017.07.25 10:33:06 1: HMLAN_Parse: HMLAN1 new condition disconnected
2017.07.25 10:33:06 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:33:06 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:33:06 3: HMLAN2:keepAlive device opened
2017.07.25 10:33:06 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:33:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:33:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:33:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:34:06 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:34:06 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:34:06 3: HMLAN2:keepAlive device opened
2017.07.25 10:34:06 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:34:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:34:06 1: HMLAN_Parse: HMLAN1 new condition init
2017.07.25 10:34:06 1: 192.168.22.2:1000 reappeared (HMLAN1)
2017.07.25 10:34:06 1: HMLAN_Parse: HMLAN1 new condition ok
2017.07.25 10:34:41 1: 192.168.22.2:1000 disconnected, waiting to reappear (HMLAN1)
2017.07.25 10:34:41 1: HMLAN_Parse: HMLAN1 new condition disconnected
2017.07.25 10:34:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:34:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:34:41 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:34:41 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:34:42 3: HMLAN2:keepAlive device opened
2017.07.25 10:34:42 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:34:42 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:35:06 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:35:06 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:35:06 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:35:06 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:35:06 3: HMLAN2:keepAlive device opened
2017.07.25 10:35:06 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:35:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:35:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:35:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:35:41 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:35:41 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:35:41 3: HMLAN2:keepAlive device opened
2017.07.25 10:35:42 1: HMLAN_Parse: HMLAN1 new condition init
2017.07.25 10:35:42 1: 192.168.22.2:1000 reappeared (HMLAN1)
2017.07.25 10:35:42 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:36:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:36:06 1: HMLAN_Parse: HMLAN1 new condition ok
2017.07.25 10:36:41 1: 192.168.22.2:1000 disconnected, waiting to reappear (HMLAN1)
2017.07.25 10:36:41 1: HMLAN_Parse: HMLAN1 new condition disconnected
2017.07.25 10:36:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:36:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:36:41 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:36:42 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:36:42 3: HMLAN2:keepAlive device opened
2017.07.25 10:36:42 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:36:42 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:37:06 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:37:06 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:37:06 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:37:06 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:37:06 3: HMLAN2:keepAlive device opened
2017.07.25 10:37:06 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:37:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened
2017.07.25 10:37:41 1: 192.168.22.3:2001 disconnected, waiting to reappear (HMLAN2:keepAlive)
2017.07.25 10:37:41 1: HMUARTLGW HMLAN2:keepAlive KeepAlive sent 14.721s too late, this might cause a disconnect!
2017.07.25 10:37:41 1: 192.168.22.3:2000 disconnected, waiting to reappear (HMLAN2)
2017.07.25 10:37:42 1: HMLAN_Parse: HMLAN1 new condition init
2017.07.25 10:37:42 1: 192.168.22.2:1000 reappeared (HMLAN1)
2017.07.25 10:37:42 3: Opening HMLAN2:keepAlive device 192.168.22.3:2001
2017.07.25 10:37:42 1: 192.168.22.3:2000 reappeared (HMLAN2)
2017.07.25 10:37:42 3: HMLAN2:keepAlive device opened
2017.07.25 10:38:06 1: HMLAN_Parse: HMLAN1 new condition ok
2017.07.25 10:38:06 3: HMUARTLGW HMLAN2 BidCoS-port opened
2017.07.25 10:38:06 3: HMUARTLGW HMLAN2:keepAlive KeepAlive-port opened


Hat jemand eine Idee woran das liegen könnte?

Anbei: Bei mir scheint das INIT-Script zum Beenden von FHEM nicht zu funktionieren. Ist das ein Bug?

Vielen Dank für eure Hilfe.

justme1968

die beiden meldungen im log kommen von raspberry pi spezifischen stellen. hast du hier etwas aktiviert aber der rechner ist kein raspberry?

ansonsten: im eingecheckten modul ist snmp noch blockierend.

probier mal die test version die im forum gepostet ist. ist ist (fast) völlig non blocking.

versuch auch mal rauszufinden warum da überhaupt etwas hängen bleibt. bis jetzt waren solche fehler eher auf netzwerk ebene zu suchen und nicht im modul.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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