Autor Thema: überarbeitet SYSSTAT modul: non-blocking, remote kommandos, beliebige readings  (Gelesen 40282 mal)

Offline Romoker

  • Full Member
  • ***
  • Beiträge: 171
So, anbei der SNMP-Dump. Die IP ist korrekt. Hat ja vorher funktioniert. Auch der sicherheitshalber durchgeführte Ping antwortet einwandfrei.

2021.03.13 18:10:05.884 5: PrinterStatus: trying snmp load avg
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [440] Net::SNMP::Dispatcher::_event_insert(): created new head and tail [ARRAY(0x8113bc0)]
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 80 bytes
[0000]  30 4E 02 01  01 04 06 70  75 62 6C 69  63 A0 41 02   0N.....public.A.
[0016]  04 24 0E A7  CC 02 01 00  02 01 00 30  33 30 0F 06   .$.........030..
[0032]  0B 2B 06 01  04 01 8F 65  0A 01 03 01  05 00 30 0F   .+.....e......0.
[0048]  06 0B 2B 06  01 04 01 8F  65 0A 01 03  02 05 00 30   ..+.....e......0
[0064]  0F 06 0B 2B  06 01 04 01  8F 65 0A 01  03 03 05 00   ...+.....e......
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x90b0a08)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8113bc0)], defined new head [ARRAY(0x90b0a08)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x90b0a08)], timeout = 2.9993
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
debug: [343] Net::SNMP::Dispatcher::_transport_timeout(): retries left 0
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 80 bytes
[0000]  30 4E 02 01  01 04 06 70  75 62 6C 69  63 A0 41 02   0N.....public.A.
[0016]  04 24 0E A7  CC 02 01 00  02 01 00 30  33 30 0F 06   .$.........030..
[0032]  0B 2B 06 01  04 01 8F 65  0A 01 03 01  05 00 30 0F   .+.....e......0.
[0048]  06 0B 2B 06  01 04 01 8F  65 0A 01 03  02 05 00 30   ..+.....e......0
[0064]  0F 06 0B 2B  06 01 04 01  8F 65 0A 01  03 03 05 00   ...+.....e......
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x9031148)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x90b0a08)], defined new head [ARRAY(0x9031148)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x9031148)], timeout = 2.9998
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
error: [349] Net::SNMP::Dispatcher::_transport_timeout(): No response from remote host "192.168.66.23"
error: [2363] Net::SNMP::__ANON__(): No response from remote host "192.168.66.23"
debug: [517] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x9031148)], list is now empty
2021.03.13 18:10:11.908 4: PrinterStatus: got empty result from snmp query No response from remote host "192.168.66.23"
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [440] Net::SNMP::Dispatcher::_event_insert(): created new head and tail [ARRAY(0x8113d10)]
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 45 bytes
[0000]  30 2B 02 01  01 04 06 70  75 62 6C 69  63 A1 1E 02   0+.....public...
[0016]  04 78 C3 98  C7 02 01 00  02 01 00 30  10 30 0E 06   .x.........0.0..
[0032]  0A 2B 06 01  02 01 19 03  03 01 02 05  00            .+...........
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x8f0c6c0)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8113d10)], defined new head [ARRAY(0x8f0c6c0)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x8f0c6c0)], timeout = 2.9998
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
debug: [343] Net::SNMP::Dispatcher::_transport_timeout(): retries left 0
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 45 bytes
[0000]  30 2B 02 01  01 04 06 70  75 62 6C 69  63 A1 1E 02   0+.....public...
[0016]  04 78 C3 98  C7 02 01 00  02 01 00 30  10 30 0E 06   .x.........0.0..
[0032]  0A 2B 06 01  02 01 19 03  03 01 02 05  00            .+...........
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x8f083e8)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8f0c6c0)], defined new head [ARRAY(0x8f083e8)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x8f083e8)], timeout = 2.9998
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
error: [349] Net::SNMP::Dispatcher::_transport_timeout(): No response from remote host "192.168.66.23"
error: [2363] Net::SNMP::__ANON__(): No response from remote host "192.168.66.23"
debug: [517] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8f083e8)], list is now empty
debug: [440] Net::SNMP::Dispatcher::_event_insert(): created new head and tail [ARRAY(0x9031148)]
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 29 bytes
[0000]  30 1B 02 01  01 04 06 70  75 62 6C 69  63 A0 0E 02   0......public...
[0016]  04 73 45 6C  D1 02 01 00  02 01 00 30  00            .sEl.......0.
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x8f20140)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x9031148)], defined new head [ARRAY(0x8f20140)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x8f20140)], timeout = 2.9999
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
debug: [343] Net::SNMP::Dispatcher::_transport_timeout(): retries left 0
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 29 bytes
[0000]  30 1B 02 01  01 04 06 70  75 62 6C 69  63 A0 0E 02   0......public...
[0016]  04 73 45 6C  D1 02 01 00  02 01 00 30  00            .sEl.......0.
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x84a3430)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8f20140)], defined new head [ARRAY(0x84a3430)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x84a3430)], timeout = 2.9999
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
error: [349] Net::SNMP::Dispatcher::_transport_timeout(): No response from remote host "192.168.66.23"
error: [2363] Net::SNMP::__ANON__(): No response from remote host "192.168.66.23"
debug: [517] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x84a3430)], list is now empty
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [1065] Net::SNMP::Message::_prepare_object_identifier(): leading dot present
debug: [440] Net::SNMP::Dispatcher::_event_insert(): created new head and tail [ARRAY(0x8edd460)]
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 456 bytes
[0000]  30 82 01 C4  02 01 01 04  06 70 75 62  6C 69 63 A0   0........public.
[0016]  82 01 B5 02  04 24 88 91  B8 02 01 00  02 01 00 30   .....$.........0
[0032]  82 01 A5 30  0E 06 0A 2B  06 01 02 01  02 02 01 02   ...0...+........
[0048]  01 05 00 30  0E 06 0A 2B  06 01 02 01  02 02 01 06   ...0...+........
[0064]  01 05 00 30  0F 06 0B 2B  06 01 02 01  19 03 02 01   ...0...+........
[0080]  05 01 05 00  30 0F 06 0B  2B 06 01 02  01 19 03 05   ....0...+.......
[0096]  01 01 01 05  00 30 0F 06  0B 2B 06 01  02 01 19 03   .....0...+......
[0112]  05 01 02 01  05 00 30 0F  06 0B 2B 06  01 02 01 2B   ......0...+....+
[0128]  05 01 01 10  01 05 00 30  0F 06 0B 2B  06 01 02 01   .......0...+....
[0144]  2B 05 01 01  11 01 05 00  30 0F 06 0B  2B 06 01 02   +.......0...+...
[0160]  01 2B 05 01  01 12 01 05  00 30 0F 06  0B 2B 06 01   .+.......0...+..
[0176]  02 01 2B 05  01 01 13 01  05 00 30 10  06 0C 2B 06   ..+.......0...+.
[0192]  01 02 01 2B  08 02 01 0E  01 01 05 00  30 10 06 0C   ...+........0...
[0208]  2B 06 01 02  01 2B 0A 02  01 04 01 01  05 00 30 10   +....+........0.
[0224]  06 0C 2B 06  01 02 01 2B  0A 02 01 05  01 01 05 00   ..+....+........
[0240]  30 10 06 0C  2B 06 01 02  01 2B 0B 01  01 06 01 01   0...+....+......
[0256]  05 00 30 10  06 0C 2B 06  01 02 01 2B  0B 01 01 06   ..0...+....+....
[0272]  01 02 05 00  30 10 06 0C  2B 06 01 02  01 2B 0B 01   ....0...+....+..
[0288]  01 06 01 03  05 00 30 10  06 0C 2B 06  01 02 01 2B   ......0...+....+
[0304]  0B 01 01 06  01 04 05 00  30 10 06 0C  2B 06 01 02   ........0...+...
[0320]  01 2B 0B 01  01 08 01 01  05 00 30 10  06 0C 2B 06   .+........0...+.
[0336]  01 02 01 2B  0B 01 01 08  01 02 05 00  30 10 06 0C   ...+........0...
[0352]  2B 06 01 02  01 2B 0B 01  01 08 01 03  05 00 30 10   +....+........0.
[0368]  06 0C 2B 06  01 02 01 2B  0B 01 01 08  01 04 05 00   ..+....+........
[0384]  30 10 06 0C  2B 06 01 02  01 2B 0B 01  01 09 01 01   0...+....+......
[0400]  05 00 30 10  06 0C 2B 06  01 02 01 2B  0B 01 01 09   ..0...+....+....
[0416]  01 02 05 00  30 10 06 0C  2B 06 01 02  01 2B 0B 01   ....0...+....+..
[0432]  01 09 01 03  05 00 30 10  06 0C 2B 06  01 02 01 2B   ......0...+....+
[0448]  0B 01 01 09  01 04 05 00                             ........
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x7f26f08)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x8edd460)], defined new head [ARRAY(0x7f26f08)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x7f26f08)], timeout = 2.9995
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
debug: [343] Net::SNMP::Dispatcher::_transport_timeout(): retries left 0
debug: [687] Net::SNMP::Message::send(): transport address 192.168.66.23:161
debug: [2058] Net::SNMP::Message::_buffer_dump(): 456 bytes
[0000]  30 82 01 C4  02 01 01 04  06 70 75 62  6C 69 63 A0   0........public.
[0016]  82 01 B5 02  04 24 88 91  B8 02 01 00  02 01 00 30   .....$.........0
[0032]  82 01 A5 30  0E 06 0A 2B  06 01 02 01  02 02 01 02   ...0...+........
[0048]  01 05 00 30  0E 06 0A 2B  06 01 02 01  02 02 01 06   ...0...+........
[0064]  01 05 00 30  0F 06 0B 2B  06 01 02 01  19 03 02 01   ...0...+........
[0080]  05 01 05 00  30 0F 06 0B  2B 06 01 02  01 19 03 05   ....0...+.......
[0096]  01 01 01 05  00 30 0F 06  0B 2B 06 01  02 01 19 03   .....0...+......
[0112]  05 01 02 01  05 00 30 0F  06 0B 2B 06  01 02 01 2B   ......0...+....+
[0128]  05 01 01 10  01 05 00 30  0F 06 0B 2B  06 01 02 01   .......0...+....
[0144]  2B 05 01 01  11 01 05 00  30 0F 06 0B  2B 06 01 02   +.......0...+...
[0160]  01 2B 05 01  01 12 01 05  00 30 0F 06  0B 2B 06 01   .+.......0...+..
[0176]  02 01 2B 05  01 01 13 01  05 00 30 10  06 0C 2B 06   ..+.......0...+.
[0192]  01 02 01 2B  08 02 01 0E  01 01 05 00  30 10 06 0C   ...+........0...
[0208]  2B 06 01 02  01 2B 0A 02  01 04 01 01  05 00 30 10   +....+........0.
[0224]  06 0C 2B 06  01 02 01 2B  0A 02 01 05  01 01 05 00   ..+....+........
[0240]  30 10 06 0C  2B 06 01 02  01 2B 0B 01  01 06 01 01   0...+....+......
[0256]  05 00 30 10  06 0C 2B 06  01 02 01 2B  0B 01 01 06   ..0...+....+....
[0272]  01 02 05 00  30 10 06 0C  2B 06 01 02  01 2B 0B 01   ....0...+....+..
[0288]  01 06 01 03  05 00 30 10  06 0C 2B 06  01 02 01 2B   ......0...+....+
[0304]  0B 01 01 06  01 04 05 00  30 10 06 0C  2B 06 01 02   ........0...+...
[0320]  01 2B 0B 01  01 08 01 01  05 00 30 10  06 0C 2B 06   .+........0...+.
[0336]  01 02 01 2B  0B 01 01 08  01 02 05 00  30 10 06 0C   ...+........0...
[0352]  2B 06 01 02  01 2B 0B 01  01 08 01 03  05 00 30 10   +....+........0.
[0368]  06 0C 2B 06  01 02 01 2B  0B 01 01 08  01 04 05 00   ..+....+........
[0384]  30 10 06 0C  2B 06 01 02  01 2B 0B 01  01 09 01 01   0...+....+......
[0400]  05 00 30 10  06 0C 2B 06  01 02 01 2B  0B 01 01 09   ..0...+....+....
[0416]  01 02 05 00  30 10 06 0C  2B 06 01 02  01 2B 0B 01   ....0...+....+..
[0432]  01 09 01 03  05 00 30 10  06 0C 2B 06  01 02 01 2B   ......0...+....+
[0448]  0B 01 01 09  01 04 05 00                             ........
debug: [200] Net::SNMP::Dispatcher::register(): added handler for descriptor [59]
debug: [462] Net::SNMP::Dispatcher::_event_insert(): modified tail [ARRAY(0x9034e48)]
debug: [535] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x7f26f08)], defined new head [ARRAY(0x9034e48)]
debug: [596] Net::SNMP::Dispatcher::_event_handle(): event [ARRAY(0x9034e48)], timeout = 2.9998
debug: [239] Net::SNMP::Dispatcher::deregister(): removed handler for descriptor [59]
error: [349] Net::SNMP::Dispatcher::_transport_timeout(): No response from remote host "192.168.66.23"
error: [2363] Net::SNMP::__ANON__(): No response from remote host "192.168.66.23"
debug: [517] Net::SNMP::Dispatcher::_event_delete(): deleted [ARRAY(0x9034e48)], list is now empty
2021.03.13 18:10:29.945 4: PrinterStatus: got empty result from snmp query No response from remote host "192.168.66.23"
2021.03.13 18:10:29.951 4: PrinterStatus: BlockingCall finished: SYSSTAT_BlockingCall

Viele Grüße
BeagleBoneBlack & Raspberry Pi 4; FB7490; div. Homematic Komponenten; CUL433: CUL_TX, Conbee II, SOMFY, 1-Wire, Z-Wave, Zigbee, SmartPlugs von Sonoff und Shelly mit MQTT

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Die neue Version habe ich jetzt getestet.

Die Abfrage der Synology NAS läuft jetzt super,ohne erkennbare Fehler  :)

Die automatische Abfrage der Windows Rechner funktioniert auch,doch werden die readings load sowie state nicht richtig angezeigt (noSuchObject). Die "uptime" Zeit wird auch nicht ausgelesen. Das ist aber nur bei den Windows Rechnern so.

Internals:
   DEF        60 600 192.168.1.174
   FUUID      604c7e31-f33f-4b78-45d7-3cc5eeeac425139f
   HAS_Net::SNMP 1
   HOST       192.168.1.174
   INTERVAL   60
   INTERVAL_FS 600
   NAME       HpProDesk
   NR         117
   NTFY_ORDER 50-HpProDesk
   STATE      uptime
   SystemDescription Hardware: Intel64 Family 6 Model 158 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.3 (Build 19042 Multiprocessor Free)
   SystemName DESKTOP-E20R8JR
   TYPE       SYSSTAT
   USE_SNMP   1
   interval_fs 600
   snmpCommunity public
   snmpVersion 2
   QUEUE:
   READINGS:
     2021-03-13 18:17:36   C:/             26.3
     2021-03-13 18:17:36   PhysicalMemory  58.3
     2021-03-13 18:17:36   VirtualMemory   51.8
     2021-03-13 18:17:36   load            noSuchObject
     2021-03-13 18:17:36   state           noSuchObject noSuchObject noSuchObject
   filesystems:
     1
     2
     3
   helper:
Attributes:
   filesystems 1,2,3
   noSSH      1
   room       Interfaces
   showpercent 1
   snmp       1
   snmpCommunity public
   snmpVersion 2
   stateFormat uptime
   uptime     1
   verbose    0




Offline Gisbert

  • Hero Member
  • *****
  • Beiträge: 2391
  • Das Ziel ist das Ziel !
Hallo justme1968,

ich habe folgendes Device, welches nach einem Update von gestern, ca. Mittagszeit, Fehler ausspuckt. Ich hab hier gelesen, dass gestern (nachmittag) eine neue Version eingecheckt wurde, allerdings bleiben die Fehler nach einem erneuten update.

Hast eine Idee zur Abhilfe, und wie kann ich das Device in der Zwischenzeit deaktivieren, außer durch Löschen?
[edit]: Es gibt das Attribut disable, das das Device anhält.

log-Auszug:
2021.03.14 11:13:44 3: TrafficUnifiWan: read: error during sysread: No such process
2021.03.14 11:13:45 3: TrafficUnifiWan: Disconnected
2021.03.14 11:13:45 3: TrafficUnifiWan: read: end of file reached while sysread
2021.03.14 11:13:55 2: TrafficUnifiWan: starting: /usr/bin/ssh -q 192.168.1.1
2021.03.14 11:13:55 3: TrafficUnifiWan: read: error during sysread: No such process
2021.03.14 11:13:55 3: TrafficUnifiWan: Disconnected
2021.03.14 11:13:55 3: TrafficUnifiWan: read: end of file reached while sysread
2021.03.14 11:14:04 2: TrafficUnifiWan: starting: /usr/bin/ssh -q 192.168.1.1
2021.03.14 11:14:05 3: TrafficUnifiWan: read: error during sysread: No such process
2021.03.14 11:14:05 3: TrafficUnifiWan: Disconnected
2021.03.14 11:14:05 3: TrafficUnifiWan: read: end of file reached while sysread
2021.03.14 11:14:07 2: Received 0 values for radiation
2021.03.14 11:14:15 2: TrafficUnifiWan: starting: /usr/bin/ssh -q 192.168.1.1
2021.03.14 11:14:15 3: TrafficUnifiWan: read: error during sysread: No such process

Device:
Internals:
   CFGFN      ./FHEM/FritzboxUniFiAnwesenheit.cfg
   CONNECTS   47
   DEF        60 900 192.168.1.1
   FD         61
   FUUID      5e9de194-f33f-e986-11a7-5dc3a8ff5426d83c
   HAS_Net::SNMP 1
   HOST       192.168.1.1
   INTERVAL   60
   INTERVAL_FS 900
   LAST_DISCONNECT 2021-03-14 11:21:04
   NAME       TrafficUnifiWan
   NR         93
   NTFY_ORDER 50-TrafficUnifiWan
   PARSED     0
   PARTIAL   
   PID        25542
   SENT       1
   STARTED    0
   STATE      Started
   SystemDescription EdgeOS v4.4.55.5377096.210212.1121
   SystemName USG-3P
   TYPE       SYSSTAT
   USE_SNMP   1
   interval_fs 900
   snmpCommunity public
   snmpVersion 2
   QUEUE:
     HASH(0x55ddf5fd5010)
   READINGS:
     2021-03-14 11:21:04   EmpfangenHeute  0
     2021-03-14 11:21:04   GesendetHeute   0
     2021-03-14 11:21:04   RX_GB_WAN       142.462910830043
     2021-03-14 11:21:04   TX_GB_WAN       10.221256935969
     2021-03-14 11:21:04   connection      disconnected
     2021-03-13 12:34:35   desc            eth0
     2021-03-13 12:34:35   idle            96
     2021-03-13 12:34:35   ifHCInOctets    152968385727
     2021-03-13 12:34:35   ifHCOutOctets   10974991066
     2021-03-13 12:34:35   ifInOctets      2644530367
     2021-03-13 12:34:35   ifOutOctets     2385056474
     2021-03-13 12:34:35   ifSpeed         1000000000
     2021-03-13 12:34:35   load            0.02
     2021-03-13 12:34:35   name            USG-3P
     2021-03-13 12:34:35   state           0.02 0.09 0.12
     2021-03-13 12:34:35   system          1
     2021-03-13 12:34:35   uptime          13 days, 14:06:30.16
     2021-03-13 12:34:35   user            1
     2021-03-13 12:34:35   wanIP           192.168.178.20
Attributes:
   event-on-change-reading .*
   group      Performance
   icon       it_router
   mibs       .1.3.6.1.2.1.1.5.0:name
.1.3.6.1.2.1.2.2.1.2.2:desc
.1.3.6.1.2.1.2.2.1.5.2:ifSpeed
.1.3.6.1.2.1.2.2.1.10.2:ifInOctets
.1.3.6.1.2.1.2.2.1.16.2:ifOutOctets
.1.3.6.1.2.1.31.1.1.1.6.2:ifHCInOctets
.1.3.6.1.2.1.31.1.1.1.10.2:ifHCOutOctets
.1.3.6.1.2.1.4.20.1.1.192.168.178.20:wanIP
   room       Network
   snmp       1
   snmpCommunity public
   snmpVersion 2
   sortby     3
   stat       1
   stateFormat {'download: '.round(ReadingsVal($name,'EmpfangenHeute',''),2).' GB

upload: '.round(ReadingsVal($name,'GesendetHeute',''),2).' GB'}
   uptime     1
   userReadings RX_GB_WAN {ReadingsVal($name,'ifHCInOctets','-1')/1024/1024/1024},
TX_GB_WAN {ReadingsVal($name,'ifHCOutOctets','-1')/1024/1024/1024},
GesendetHeute monotonic {ReadingsVal($name,'TX_GB_WAN',0)},
EmpfangenHeute monotonic {ReadingsVal($name,'RX_GB_WAN',0)}
« Letzte Änderung: 14 März 2021, 11:32:11 von Gisbert »
Aktuelles FHEM | HP ThinClient T610 | Debian11 | UniFi-Controller, AP, USG-3 | Homematic, VCCU, HMUART | ESP8266, Eigenbau | Gas-, Wasser-, Stromzähler | Sonoff | 1-Wire-Temperatursensoren | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF |  Heizungssteuerung komplett in FHEM

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Hallo justme1968,

nach wie vor,die readings load sowie state werden nicht richtig angezeigt (noSuchObject). Die "uptime" Zeit wird nicht ausgelesen. Das betrifft aber nur bei den Windows Rechnern die aus gelesen werden.Bei der Synology NAS passt alles.

Internals:
   DEF        60 600 192.168.1.197
   FUUID      604cee28-f33f-4b78-8ec2-cac72222d2719744
   HAS_Net::SNMP 1
   HOST       192.168.1.197
   INTERVAL   60
   INTERVAL_FS 600
   NAME       IntelNuc
   NR         118
   NTFY_ORDER 50-IntelNuc
   STATE      uptime
   SystemDescription Hardware: Intel64 Family 6 Model 142 Stepping 10 AT/AT COMPATIBLE - Software: Windows Version 6.3 (Build 19042 Multiprocessor Free)
   SystemName IntelNuc-Kueche
   TYPE       SYSSTAT
   USE_SNMP   1
   interval_fs 300
   snmpCommunity public
   snmpVersion 2
   OLDREADINGS:
   QUEUE:
   READINGS:
     2021-03-14 11:26:15   C:/             23.9
     2021-03-14 11:26:15   PhysicalMemory  35.4
     2021-03-14 11:26:15   VirtualMemory   26.9
     2021-03-14 08:44:15   idle            noSuchObject
     2021-03-14 11:31:15   load            noSuchObject
     2021-03-14 11:31:15   state           noSuchObject noSuchObject noSuchObject
     2021-03-14 08:44:15   system          noSuchObject
   filesystems:
     1
     2
     3
   helper:
Attributes:
   filesystems 1,2,3
   noSSH      1
   room       Interfaces
   showpercent 1
   snmp       1
   snmpCommunity public
   snmpVersion 2
   stateFormat uptime
   uptime     1


Beste Grüße

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20868
@Romoker: laut log bekommt die low level snmp lib keine verbindung zum drucker. ich habe gerade keine idee warum. bei mir läuft exakt die gleiche abfrage problemlos. allerdings ohne snmpVersion attribut.

@Falkenstein: bitte lösch mal das snmpVersion attribut

@Gisbert: bitte noSSH setzen
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Das war es....das Attribut snmpVersion habe ich gelöscht.Jetzt sind die readings wieder normal da.

Das einzigste was nicht mit eingelesen wird ist uptime,das reading fehlt komplett.


Internals:
   DEF        60 600 192.168.1.197
   FUUID      604cee28-f33f-4b78-8ec2-cac72222d2719744
   HAS_Net::SNMP 1
   HOST       192.168.1.197
   INTERVAL   60
   INTERVAL_FS 600
   NAME       IntelNuc
   NR         118
   NTFY_ORDER 50-IntelNuc
   STATE      14,12,13,13
   SystemDescription Hardware: Intel64 Family 6 Model 142 Stepping 10 AT/AT COMPATIBLE - Software: Windows Version 6.3 (Build 19042 Multiprocessor Free)
   SystemName IntelNuc-Kueche
   TYPE       SYSSTAT
   USE_SNMP   1
   interval_fs 480
   snmpCommunity public
   OLDREADINGS:
   QUEUE:
   READINGS:
     2021-03-14 13:35:18   C:/             23.9
     2021-03-14 13:35:18   PhysicalMemory  36.9
     2021-03-14 13:35:18   VirtualMemory   28.1
     2021-03-14 13:37:12   load            0.52
     2021-03-14 13:37:12   state           14,12,13,13
   filesystems:
     1
     2
     3
   helper:
Attributes:
   filesystems 1,2,3
   noSSH      1
   room       Interfaces
   showpercent 1
   snmp       1
   snmpCommunity public
   uptime     1
   verbose    0


Offline Romoker

  • Full Member
  • ***
  • Beiträge: 171
Hallo justme1968,
ich muss meine Aussage revidieren. Die neue Version liefert doch die abgefragten Werte vom Drucker zurück. Ich habe das allerdings wegen aktiviertem "event-on-change-reading" nicht gesehen (Anfängerfehler). Allerdings wird das Reading "connection" nicht mehr aktualisiert (Wert: "disconnected"), ebenso ist der STATE nicht präsent, d.h leer.
Damit kann ich aber leben.

Im Listing ist zu sehen, dass das Reading connection als einziges nicht aktualisiert wurde:

Internals:
   DEF        600 600 192.168.66.23
   FUUID      60316ee2-f33f-df6c-8d97-bbbb67395ddc79c8
   HAS_Net::SNMP 1
   HOST       192.168.66.23
   INTERVAL   600
   NAME       PrinterStatus
   NR         564
   NTFY_ORDER 50-PrinterStatus
   STATE     
   SystemDescription Canon MB5100 series /P
   SystemName MB5100 Arbeitszimmer
   TYPE       SYSSTAT
   USE_SNMP   1
   interval_fs
   snmpCommunity public
   snmpVersion 2
   QUEUE:
   READINGS:
     2021-03-14 15:02:41   Hersteller      Canon
     2021-03-14 15:02:41   alertAllEvents  0
     2021-03-14 15:02:41   alertCriticalEvents 0
     2021-03-12 10:35:20   connection      disconnected
     2021-03-14 15:02:41   deviceStatus    2
     2021-03-14 15:02:41   interfaceDescription eth0
     2021-03-14 15:02:41   interfacePhysAddress 0xf80d602929bc
     2021-03-14 15:02:41   load            0
     2021-03-14 15:02:41   markerSupplDescBK CANON PGI-2500XL<BK> black Ink Tank
     2021-03-14 15:02:41   markerSupplDescC CANON PGI-2500XL<C> cyan Ink Tank
     2021-03-14 15:02:41   markerSupplDescM CANON PGI-2500XL<M> magenta Ink Tank
     2021-03-14 15:02:41   markerSupplDescY CANON PGI-2500XL<Y> yellow Ink Tank
     2021-03-14 15:02:41   markerSupplLevelBK 58
     2021-03-14 15:02:41   markerSupplLevelC 20
     2021-03-14 15:02:41   markerSupplLevelM 48
     2021-03-14 15:02:41   markerSupplLevelY 22
     2021-03-14 15:02:41   markerSupplMaxCapBK 100
     2021-03-14 15:02:41   markerSupplMaxCapC 100
     2021-03-14 15:02:41   markerSupplMaxCapM 100
     2021-03-14 15:02:41   markerSupplMaxCapY 100
     2021-03-14 15:02:41   numPrintouts    14367
     2021-03-14 15:02:41   numPrintoutsSincePowerOn 1
     2021-03-14 15:02:41   printerErrorState
     2021-03-14 15:02:41   printerName     MB5100 Arbeitszimmer
     2021-03-14 15:02:41   printerStatus   3
     2021-03-14 15:02:41   serialNumber    AEML10821
     2021-03-14 15:02:41   state           
   helper:
Attributes:
   mibs       .1.3.6.1.2.1.2.2.1.2.1:interfaceDescription,
.1.3.6.1.2.1.2.2.1.6.1:interfacePhysAddress,
.1.3.6.1.2.1.25.3.2.1.5.1:deviceStatus,
.1.3.6.1.2.1.25.3.5.1.1.1:printerStatus,
.1.3.6.1.2.1.25.3.5.1.2.1:printerErrorState,
.1.3.6.1.2.1.43.5.1.1.16.1:printerName,
.1.3.6.1.2.1.43.5.1.1.17.1:serialNumber,
.1.3.6.1.2.1.43.5.1.1.18.1:alertCriticalEvents,
.1.3.6.1.2.1.43.5.1.1.19.1:alertAllEvents,
.1.3.6.1.2.1.43.8.2.1.14.1.1:Hersteller,
.1.3.6.1.2.1.43.10.2.1.4.1.1:numPrintouts,
.1.3.6.1.2.1.43.10.2.1.5.1.1:numPrintoutsSincePowerOn,
.1.3.6.1.2.1.43.11.1.1.6.1.1:markerSupplDescBK,
.1.3.6.1.2.1.43.11.1.1.6.1.2:markerSupplDescC,
.1.3.6.1.2.1.43.11.1.1.6.1.3:markerSupplDescM,
.1.3.6.1.2.1.43.11.1.1.6.1.4:markerSupplDescY,
.1.3.6.1.2.1.43.11.1.1.8.1.1:markerSupplMaxCapBK,
.1.3.6.1.2.1.43.11.1.1.8.1.2:markerSupplMaxCapC,
.1.3.6.1.2.1.43.11.1.1.8.1.3:markerSupplMaxCapM,
.1.3.6.1.2.1.43.11.1.1.8.1.4:markerSupplMaxCapY,
.1.3.6.1.2.1.43.11.1.1.9.1.1:markerSupplLevelBK,
.1.3.6.1.2.1.43.11.1.1.9.1.2:markerSupplLevelC,
.1.3.6.1.2.1.43.11.1.1.9.1.3:markerSupplLevelM,
.1.3.6.1.2.1.43.11.1.1.9.1.4:markerSupplLevelY
   noSSH      1
   room       Test
   snmp       1
   snmpCommunity public
   snmpVersion 2
   verbose    5

edit:
Im Log steht noch folgendes:
2021.03.14 15:29:21.669 5: PrinterStatus: trying snmp load avg
2021.03.14 15:29:21.696 4: PrinterStatus: got empty result from snmp query Received noSuchName(2) error-status at error-index 3
2021.03.14 15:29:21.758 4: PrinterStatus: BlockingCall finished: SYSSTAT_BlockingCall

DIe Werte werden aber alle korrekt abgefragt.
Viele Grüße
« Letzte Änderung: 14 März 2021, 15:32:08 von Romoker »
BeagleBoneBlack & Raspberry Pi 4; FB7490; div. Homematic Komponenten; CUL433: CUL_TX, Conbee II, SOMFY, 1-Wire, Z-Wave, Zigbee, SmartPlugs von Sonoff und Shelly mit MQTT

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20868
@Falkenstein: bitte zeig mal was snmpget für 1.3.6.1.2.1.25.1.1.0 liefert.
@Romoker: connection ist nur für ssh relevant. das ist noch ein überbleibsel einer vorherigen version. nach einem deletereading sollte es nicht mehr auftauchen.

STATE wird per default aus state gefüllt. in state landet automatisch nur die cpu auslastung. drucker liefern auf die normalen cpu last mibs aber keine werte. du kannst entweder eine passende mib für state konfigurieren, oder mit stateFormat STATE aus einem anderen reading füllen. load und state werden ab morgen nicht mehr erzeugt wenn es gar keine werte gibt.
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Ich hoffe ich habe das so richtig gemacht...

lars@debian:~$ snmpget -v1 -c public  192.168.1.197  1.3.6.1.2.1.25.1.1.0
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (885009) 2:27:30.09


Beste Grüße

Offline Romoker

  • Full Member
  • ***
  • Beiträge: 171
Danke justme1968 für Deine Arbeit und den super Service.
BeagleBoneBlack & Raspberry Pi 4; FB7490; div. Homematic Komponenten; CUL433: CUL_TX, Conbee II, SOMFY, 1-Wire, Z-Wave, Zigbee, SmartPlugs von Sonoff und Shelly mit MQTT

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 20868
@Falkenstein: windows uptime sollte ab morgen gehen
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Super...geht wieder. Recht vielen Dank justme1968 für Deine Arbeit  :)

Beste Grüße
Falkes

Offline Gisbert

  • Hero Member
  • *****
  • Beiträge: 2391
  • Das Ziel ist das Ziel !
Hallo justme1968,

Zitat
@Gisbert: bitte noSSH setzen
Läuft wieder, vielen Dank

Viele Grüße Gisbert
Aktuelles FHEM | HP ThinClient T610 | Debian11 | UniFi-Controller, AP, USG-3 | Homematic, VCCU, HMUART | ESP8266, Eigenbau | Gas-, Wasser-, Stromzähler | Sonoff | 1-Wire-Temperatursensoren | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF |  Heizungssteuerung komplett in FHEM

Online Frank_Huber

  • Hero Member
  • *****
  • Beiträge: 4449
@Gisbert: bitte noSSH setzen

DANKE!
Hatte nach Update das gleiche Problem mit meinen PoE Switchen, das noSSH Attribut hat das ganze dann gelöst. :-)

Offline Falkenstein

  • Jr. Member
  • **
  • Beiträge: 89
Sind diese Einträge im Logfile normal? Kann man die ab schalten? Das ganze Logfile ist damit voll. Mir ist es gerade erst aufgefallen.

hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at ./FHEM/32_SYSSTAT.pm line 1061.
2021.03.21 15:59:56 1: readingsUpdate(IntelNuc,uptime,2 days, 12:29:31) missed to call readingsBeginUpdate first.
2021.03.21 15:59:56 1: stacktrace:
2021.03.21 15:59:56 1:     main::readingsBulkUpdate            called by ./FHEM/32_SYSSTAT.pm (492)
2021.03.21 15:59:56 1:     main::SYSSTAT_Parse                 called by ./FHEM/32_SYSSTAT.pm (1348)
2021.03.21 15:59:56 1:     main::SYSSTAT_getUptimeSNMP         called by ./FHEM/32_SYSSTAT.pm (1013)
2021.03.21 15:59:56 1:     main::SYSSTAT_GetUpdateSNMP         called by ./FHEM/32_SYSSTAT.pm (1059)
2021.03.21 15:59:56 1:     main::SYSSTAT_BlockingCall          called by FHEM/Blocking.pm (194)
2021.03.21 15:59:56 1:     main::BlockingStart                 called by FHEM/Blocking.pm (107)
2021.03.21 15:59:56 1:     main::BlockingCall                  called by ./FHEM/32_SYSSTAT.pm (988)
2021.03.21 15:59:56 1:     main::SYSSTAT_GetUpdate             called by fhem.pl (3379)
2021.03.21 15:59:56 1:     main::HandleTimeout                 called by fhem.pl (695)
hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at ./FHEM/32_SYSSTAT.pm line 1061.
2021.03.21 16:00:50 2: IntelNuc: BlockingCall aborted: SYSSTAT_BlockingCall
2021.03.21 16:04:53 1: readingsUpdate(IntelNuc,uptime,2 days, 12:34:28) missed to call readingsBeginUpdate first.
2021.03.21 16:04:53 1: stacktrace:
2021.03.21 16:04:53 1:     main::readingsBulkUpdate            called by ./FHEM/32_SYSSTAT.pm (492)
2021.03.21 16:04:53 1:     main::SYSSTAT_Parse                 called by ./FHEM/32_SYSSTAT.pm (1348)
2021.03.21 16:04:53 1:     main::SYSSTAT_getUptimeSNMP         called by ./FHEM/32_SYSSTAT.pm (1013)
2021.03.21 16:04:53 1:     main::SYSSTAT_GetUpdateSNMP         called by ./FHEM/32_SYSSTAT.pm (1059)
2021.03.21 16:04:53 1:     main::SYSSTAT_BlockingCall          called by FHEM/Blocking.pm (194)
2021.03.21 16:04:53 1:     main::BlockingStart                 called by FHEM/Blocking.pm (107)
2021.03.21 16:04:53 1:     main::BlockingCall                  called by ./FHEM/32_SYSSTAT.pm (988)
2021.03.21 16:04:53 1:     main::SYSSTAT_GetUpdate             called by fhem.pl (3379)
2021.03.21 16:04:53 1:     main::HandleTimeout                 called by fhem.pl (695)
hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at ./FHEM/32_SYSSTAT.pm line 1061.
2021.03.21 16:05:50 2: IntelNuc: BlockingCall aborted: SYSSTAT_BlockingCall
2021.03.21 16:06:53 1: readingsUpdate(IntelNuc,uptime,2 days, 12:36:28) missed to call readingsBeginUpdate first.
2021.03.21 16:06:53 1: stacktrace:
2021.03.21 16:06:53 1:     main::readingsBulkUpdate            called by ./FHEM/32_SYSSTAT.pm (492)
2021.03.21 16:06:53 1:     main::SYSSTAT_Parse                 called by ./FHEM/32_SYSSTAT.pm (1348)
2021.03.21 16:06:53 1:     main::SYSSTAT_getUptimeSNMP         called by ./FHEM/32_SYSSTAT.pm (1013)
2021.03.21 16:06:53 1:     main::SYSSTAT_GetUpdateSNMP         called by ./FHEM/32_SYSSTAT.pm (1059)
2021.03.21 16:06:53 1:     main::SYSSTAT_BlockingCall          called by FHEM/Blocking.pm (194)
2021.03.21 16:06:53 1:     main::BlockingStart                 called by FHEM/Blocking.pm (107)
2021.03.21 16:06:53 1:     main::BlockingCall                  called by ./FHEM/32_SYSSTAT.pm (988)
2021.03.21 16:06:53 1:     main::SYSSTAT_GetUpdate             called by fhem.pl (3379)
2021.03.21 16:06:53 1:     main::HandleTimeout                 called by fhem.pl (695)


Beste Grüße
Falkes