Debug-Logging des Windows-Agenten aktivieren

Guten Morgen,

ich habe aktuell das Problem, dass mein Windows-Agent auf einer Vielzahl von Servern andauernd abstürzt. Im Eventlog sehe ich folgende Meldung:

Faulting application name: check_mk_agent.exe, version: 2.1.0.0, time stamp: 0x5ec58154
Faulting module name: check_mk_agent.exe, version: 2.1.0.0, time stamp: 0x5ec58154
Exception code: 0xc0000409
Fault offset: 0x000000000016083d
Faulting process id: 0x26f4
Faulting application start time: 0x01d693083236424a
Faulting application path: C:\Program Files (x86)\checkmk\service\check_mk_agent.exe
Faulting module path: C:\Program Files (x86)\checkmk\service\check_mk_agent.exe
Report Id: 6fe797e0-fefb-11ea-8148-00155d59c702
Faulting package full name:
Faulting package-relative application ID:

Nun habe ich gesehen, dass man angeblich in der check_mk.ini ein Debug-Logging einschalten kann, um dann zu sehen, ob es an einen Local-Plugin liegt und wenn ja, an welchem genau. Leider habe ich im Handbuch bisaher keine Referenz gefunden, die mit sagt, wie das Ganze funktioniert.

Bin ich hier auf dem richtigen Weg? Wisst Ihr, wie ich solch ein Debug-Logging aktivieren kann?

Danke. :slight_smile:

Wenn ich das richtig lese ist bei dir noch der 1.5er oder älter Agent in Benutzung oder?
Im Windows Bereich ist der 1.6er Agent wesentlich besser aus meiner Erfahrung mit einigen tausend Systemen :slight_smile:
Der Output des 1.6er ist auch mit einem 1.5er Server komplett verwertbar - hab jedenfalls nix bemerkt was fehlt.

Für 1.5:
check_mk.ini

[global]
       # Write a logfile for tackling down crashes of the agent
       crash_debug = yes

Für 1.6:
Soweit ich das bei meinen Systemen sehe ist das Log immer an.
Im Verzeichnis C:\ProgramData\checkmk\agent\log findest die aktuellen Logs.

Nein, ich habe 1.6.0 draußen. :slight_smile:

Werde ich mal ausprobieren, danke.

1.6 hat keine “check_mk.ini” mehr deshalb hab ich das vermutet mit der 1.5.
Die Einstellungen der 1.6 liegen in den YAML Files unter “C:\ProgramData\checkmk\agent”

Ich habe mal die letzten vier Sekunden des Logs exportiert:

Log

2020-09-25 09:40:25.528 [Trace] Enabled Base
2020-09-25 09:40:25.530 [Trace] Try service ‘CheckMkService’
2020-09-25 09:40:25.530 [Trace] Try registry ‘CheckMkService’
2020-09-25 09:40:25.530 Set root ‘C:\Program Files (x86)\checkmk\service’ from registry ‘CheckMkService’
2020-09-25 09:40:25.530 [Trace] Using root = ‘C:\Program Files (x86)\checkmk\service’ and data = ‘C:\ProgramData\checkmk\agent’ folders
2020-09-25 09:40:25.531 COM Initialized
2020-09-25 09:40:25.531 COM initialized
2020-09-25 09:40:25.531 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:25.535 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:25.535 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:25.535 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:25.537 [Trace] Enabled Debug
2020-09-25 09:40:25.537 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:25.537 Decoding is ‘failed’
2020-09-25 09:40:25.538 Service Main
2020-09-25 09:40:25.538 Service handlers registered
2020-09-25 09:40:25.538 [Trace] Installing cap file ‘C:\Program Files (x86)\checkmk\service\install\plugins.cap’
2020-09-25 09:40:25.538 Timestamp OK, checking file content…
2020-09-25 09:40:25.538 [Trace] Installing of CAP file is not required, the file is already installed
2020-09-25 09:40:25.538 [Trace] Installing ini file ‘C:\Program Files (x86)\checkmk\service\install\check_mk.ini’
2020-09-25 09:40:25.538 Timestamp OK, checking file content…
2020-09-25 09:40:25.538 [Trace] Installing of INI file is not required, the file is already installed
2020-09-25 09:40:25.538 [Trace] Copy file ‘C:\Program Files (x86)\checkmk\service\install\checkmk.dat’ to ‘C:\ProgramData\checkmk\agent\install\checkmk.dat’
2020-09-25 09:40:25.539 Timestamp OK, checking file content…
2020-09-25 09:40:25.539 [Trace] Copy is not required, the file is already exists
2020-09-25 09:40:25.539 Skip installing user yml file
2020-09-25 09:40:25.539 Timestamp OK, checking file content…
2020-09-25 09:40:25.539 Starting upgrade(migration) process…
2020-09-25 09:40:25.539 [Trace] Legacy Agent not found Upgrade is not possible
2020-09-25 09:40:25.540 [Trace] Successful start of thread
2020-09-25 09:40:25.540 Reloading config for SERVICE is required
2020-09-25 09:40:25.540 [Trace] trying path C:\Program Files (x86)\checkmk\service
2020-09-25 09:40:25.540 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:25.540 [Trace] Loading C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:25.541 [Trace] Loading C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml
2020-09-25 09:40:25.541 [Trace] C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml is absent, return
2020-09-25 09:40:25.541 [Trace] Loading C:\ProgramData\checkmk\agent\check_mk.user.yml
2020-09-25 09:40:25.544 [Trace] Invalid Node. Type 0
2020-09-25 09:40:25.544 [Trace] Target ‘folders’ is empty, overriding with source
2020-09-25 09:40:25.544 [Trace] Invalid Node. Type 0
2020-09-25 09:40:25.544 [Trace] Invalid Node. Type 0
2020-09-25 09:40:25.544 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:25.544 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:25.544 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:25.545 Loaded Config Files by Agent [1.6.0p12,64bit,release,May 20 2020,21:10:41] @ ‘Win8.1-64 server’
root: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’ size=8427 [OK]
bakery: ‘C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml’ size=0 [OK]
user: ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’ size=12763 [OK]
2020-09-25 09:40:25.545 [Trace] Absent/Empty node local.folders type is 0
2020-09-25 09:40:25.546 [Trace] Enabled Debug
2020-09-25 09:40:25.546 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:25.546 Pre Start actions
2020-09-25 09:40:25.546 [Warn ] OHM file ‘C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe’ is not found
2020-09-25 09:40:25.546 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:25.546 [Trace] Left [37] files to execute
2020-09-25 09:40:25.547 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:25.547 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:25.547 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:25.548 [Trace] Left [37] files to execute
2020-09-25 09:40:25.548 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:25.549 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:26.847 [Trace] Enabled Base
2020-09-25 09:40:26.849 [Trace] Try service ‘CheckMkService’
2020-09-25 09:40:26.849 [Trace] Try registry ‘CheckMkService’
2020-09-25 09:40:26.849 Set root ‘C:\Program Files (x86)\checkmk\service’ from registry ‘CheckMkService’
2020-09-25 09:40:26.850 [Trace] Using root = ‘C:\Program Files (x86)\checkmk\service’ and data = ‘C:\ProgramData\checkmk\agent’ folders
2020-09-25 09:40:26.851 COM Initialized
2020-09-25 09:40:26.851 COM initialized
2020-09-25 09:40:26.851 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:26.855 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:26.855 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:26.855 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:26.857 [Trace] Enabled Debug
2020-09-25 09:40:26.857 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:26.857 Decoding is ‘failed’
2020-09-25 09:40:26.858 Service Main
2020-09-25 09:40:26.858 Service handlers registered
2020-09-25 09:40:26.858 [Trace] Installing cap file ‘C:\Program Files (x86)\checkmk\service\install\plugins.cap’
2020-09-25 09:40:26.858 Timestamp OK, checking file content…
2020-09-25 09:40:26.858 [Trace] Installing of CAP file is not required, the file is already installed
2020-09-25 09:40:26.858 [Trace] Installing ini file ‘C:\Program Files (x86)\checkmk\service\install\check_mk.ini’
2020-09-25 09:40:26.859 Timestamp OK, checking file content…
2020-09-25 09:40:26.859 [Trace] Installing of INI file is not required, the file is already installed
2020-09-25 09:40:26.859 [Trace] Copy file ‘C:\Program Files (x86)\checkmk\service\install\checkmk.dat’ to ‘C:\ProgramData\checkmk\agent\install\checkmk.dat’
2020-09-25 09:40:26.859 Timestamp OK, checking file content…
2020-09-25 09:40:26.859 [Trace] Copy is not required, the file is already exists
2020-09-25 09:40:26.859 Skip installing user yml file
2020-09-25 09:40:26.859 Timestamp OK, checking file content…
2020-09-25 09:40:26.859 Starting upgrade(migration) process…
2020-09-25 09:40:26.860 [Trace] Legacy Agent not found Upgrade is not possible
2020-09-25 09:40:26.860 [Trace] Successful start of thread
2020-09-25 09:40:26.860 Reloading config for SERVICE is required
2020-09-25 09:40:26.860 [Trace] trying path C:\Program Files (x86)\checkmk\service
2020-09-25 09:40:26.860 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:26.860 [Trace] Loading C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:26.861 [Trace] Loading C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml
2020-09-25 09:40:26.861 [Trace] C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml is absent, return
2020-09-25 09:40:26.861 [Trace] Loading C:\ProgramData\checkmk\agent\check_mk.user.yml
2020-09-25 09:40:26.864 [Trace] Invalid Node. Type 0
2020-09-25 09:40:26.864 [Trace] Target ‘folders’ is empty, overriding with source
2020-09-25 09:40:26.864 [Trace] Invalid Node. Type 0
2020-09-25 09:40:26.864 [Trace] Invalid Node. Type 0
2020-09-25 09:40:26.864 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:26.864 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:26.865 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:26.865 Loaded Config Files by Agent [1.6.0p12,64bit,release,May 20 2020,21:10:41] @ ‘Win8.1-64 server’
root: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’ size=8427 [OK]
bakery: ‘C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml’ size=0 [OK]
user: ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’ size=12763 [OK]
2020-09-25 09:40:26.866 [Trace] Absent/Empty node local.folders type is 0
2020-09-25 09:40:26.866 [Trace] Enabled Debug
2020-09-25 09:40:26.866 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:26.866 Pre Start actions
2020-09-25 09:40:26.866 [Warn ] OHM file ‘C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe’ is not found
2020-09-25 09:40:26.866 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:26.866 [Trace] Left [37] files to execute
2020-09-25 09:40:26.867 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:26.867 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:26.868 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:26.868 [Trace] Left [37] files to execute
2020-09-25 09:40:26.868 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:26.869 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:27.607 [Trace] Enabled Base
2020-09-25 09:40:27.609 [Trace] Try service ‘CheckMkService’
2020-09-25 09:40:27.609 [Trace] Try registry ‘CheckMkService’
2020-09-25 09:40:27.609 Set root ‘C:\Program Files (x86)\checkmk\service’ from registry ‘CheckMkService’
2020-09-25 09:40:27.609 [Trace] Using root = ‘C:\Program Files (x86)\checkmk\service’ and data = ‘C:\ProgramData\checkmk\agent’ folders
2020-09-25 09:40:27.610 COM Initialized
2020-09-25 09:40:27.610 COM initialized
2020-09-25 09:40:27.610 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:27.614 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:27.614 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:27.614 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:27.616 [Trace] Enabled Debug
2020-09-25 09:40:27.616 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:27.616 Decoding is ‘failed’
2020-09-25 09:40:27.617 Service Main
2020-09-25 09:40:27.617 Service handlers registered
2020-09-25 09:40:27.617 [Trace] Installing cap file ‘C:\Program Files (x86)\checkmk\service\install\plugins.cap’
2020-09-25 09:40:27.617 Timestamp OK, checking file content…
2020-09-25 09:40:27.617 [Trace] Installing of CAP file is not required, the file is already installed
2020-09-25 09:40:27.617 [Trace] Installing ini file ‘C:\Program Files (x86)\checkmk\service\install\check_mk.ini’
2020-09-25 09:40:27.617 Timestamp OK, checking file content…
2020-09-25 09:40:27.618 [Trace] Installing of INI file is not required, the file is already installed
2020-09-25 09:40:27.618 [Trace] Copy file ‘C:\Program Files (x86)\checkmk\service\install\checkmk.dat’ to ‘C:\ProgramData\checkmk\agent\install\checkmk.dat’
2020-09-25 09:40:27.618 Timestamp OK, checking file content…
2020-09-25 09:40:27.618 [Trace] Copy is not required, the file is already exists
2020-09-25 09:40:27.618 Skip installing user yml file
2020-09-25 09:40:27.618 Timestamp OK, checking file content…
2020-09-25 09:40:27.618 Starting upgrade(migration) process…
2020-09-25 09:40:27.618 [Trace] Legacy Agent not found Upgrade is not possible
2020-09-25 09:40:27.619 [Trace] Successful start of thread
2020-09-25 09:40:27.619 Reloading config for SERVICE is required
2020-09-25 09:40:27.619 [Trace] trying path C:\Program Files (x86)\checkmk\service
2020-09-25 09:40:27.619 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:27.619 [Trace] Loading C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:27.620 [Trace] Loading C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml
2020-09-25 09:40:27.620 [Trace] C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml is absent, return
2020-09-25 09:40:27.620 [Trace] Loading C:\ProgramData\checkmk\agent\check_mk.user.yml
2020-09-25 09:40:27.623 [Trace] Invalid Node. Type 0
2020-09-25 09:40:27.623 [Trace] Target ‘folders’ is empty, overriding with source
2020-09-25 09:40:27.624 [Trace] Invalid Node. Type 0
2020-09-25 09:40:27.624 [Trace] Invalid Node. Type 0
2020-09-25 09:40:27.624 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:27.624 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:27.624 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:27.624 Loaded Config Files by Agent [1.6.0p12,64bit,release,May 20 2020,21:10:41] @ ‘Win8.1-64 server’
root: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’ size=8427 [OK]
bakery: ‘C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml’ size=0 [OK]
user: ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’ size=12763 [OK]
2020-09-25 09:40:27.625 [Trace] Absent/Empty node local.folders type is 0
2020-09-25 09:40:27.625 [Trace] Enabled Debug
2020-09-25 09:40:27.625 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:27.626 Pre Start actions
2020-09-25 09:40:27.626 [Warn ] OHM file ‘C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe’ is not found
2020-09-25 09:40:27.626 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:27.626 [Trace] Left [37] files to execute
2020-09-25 09:40:27.627 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:27.627 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:27.627 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:27.627 [Trace] Left [37] files to execute
2020-09-25 09:40:27.628 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:27.628 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:28.931 [Trace] Enabled Base
2020-09-25 09:40:28.932 [Trace] Try service ‘CheckMkService’
2020-09-25 09:40:28.933 [Trace] Try registry ‘CheckMkService’
2020-09-25 09:40:28.933 Set root ‘C:\Program Files (x86)\checkmk\service’ from registry ‘CheckMkService’
2020-09-25 09:40:28.933 [Trace] Using root = ‘C:\Program Files (x86)\checkmk\service’ and data = ‘C:\ProgramData\checkmk\agent’ folders
2020-09-25 09:40:28.934 COM Initialized
2020-09-25 09:40:28.934 COM initialized
2020-09-25 09:40:28.934 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:28.938 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:28.938 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:28.938 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:28.940 [Trace] Enabled Debug
2020-09-25 09:40:28.940 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:28.940 Decoding is ‘failed’
2020-09-25 09:40:28.941 Service Main
2020-09-25 09:40:28.941 Service handlers registered
2020-09-25 09:40:28.941 [Trace] Installing cap file ‘C:\Program Files (x86)\checkmk\service\install\plugins.cap’
2020-09-25 09:40:28.941 Timestamp OK, checking file content…
2020-09-25 09:40:28.941 [Trace] Installing of CAP file is not required, the file is already installed
2020-09-25 09:40:28.941 [Trace] Installing ini file ‘C:\Program Files (x86)\checkmk\service\install\check_mk.ini’
2020-09-25 09:40:28.941 Timestamp OK, checking file content…
2020-09-25 09:40:28.942 [Trace] Installing of INI file is not required, the file is already installed
2020-09-25 09:40:28.942 [Trace] Copy file ‘C:\Program Files (x86)\checkmk\service\install\checkmk.dat’ to ‘C:\ProgramData\checkmk\agent\install\checkmk.dat’
2020-09-25 09:40:28.942 Timestamp OK, checking file content…
2020-09-25 09:40:28.942 [Trace] Copy is not required, the file is already exists
2020-09-25 09:40:28.942 Skip installing user yml file
2020-09-25 09:40:28.942 Timestamp OK, checking file content…
2020-09-25 09:40:28.942 Starting upgrade(migration) process…
2020-09-25 09:40:28.943 [Trace] Legacy Agent not found Upgrade is not possible
2020-09-25 09:40:28.943 [Trace] Successful start of thread
2020-09-25 09:40:28.943 Reloading config for SERVICE is required
2020-09-25 09:40:28.943 [Trace] trying path C:\Program Files (x86)\checkmk\service
2020-09-25 09:40:28.943 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:28.943 [Trace] Loading C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:28.944 [Trace] Loading C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml
2020-09-25 09:40:28.945 [Trace] C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml is absent, return
2020-09-25 09:40:28.945 [Trace] Loading C:\ProgramData\checkmk\agent\check_mk.user.yml
2020-09-25 09:40:28.947 [Trace] Invalid Node. Type 0
2020-09-25 09:40:28.947 [Trace] Target ‘folders’ is empty, overriding with source
2020-09-25 09:40:28.947 [Trace] Invalid Node. Type 0
2020-09-25 09:40:28.947 [Trace] Invalid Node. Type 0
2020-09-25 09:40:28.948 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:28.948 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:28.948 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:28.948 Loaded Config Files by Agent [1.6.0p12,64bit,release,May 20 2020,21:10:41] @ ‘Win8.1-64 server’
root: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’ size=8427 [OK]
bakery: ‘C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml’ size=0 [OK]
user: ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’ size=12763 [OK]
2020-09-25 09:40:28.949 [Trace] Absent/Empty node local.folders type is 0
2020-09-25 09:40:28.949 [Trace] Enabled Debug
2020-09-25 09:40:28.949 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:28.949 Pre Start actions
2020-09-25 09:40:28.949 [Warn ] OHM file ‘C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe’ is not found
2020-09-25 09:40:28.950 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:28.950 [Trace] Left [37] files to execute
2020-09-25 09:40:28.951 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:28.951 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:28.951 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:28.951 [Trace] Left [37] files to execute
2020-09-25 09:40:28.952 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:28.952 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:29.689 [Trace] Enabled Base
2020-09-25 09:40:29.690 [Trace] Try service ‘CheckMkService’
2020-09-25 09:40:29.691 [Trace] Try registry ‘CheckMkService’
2020-09-25 09:40:29.691 Set root ‘C:\Program Files (x86)\checkmk\service’ from registry ‘CheckMkService’
2020-09-25 09:40:29.691 [Trace] Using root = ‘C:\Program Files (x86)\checkmk\service’ and data = ‘C:\ProgramData\checkmk\agent’ folders
2020-09-25 09:40:29.692 COM Initialized
2020-09-25 09:40:29.692 COM initialized
2020-09-25 09:40:29.692 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:29.696 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:29.697 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:29.697 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:29.698 [Trace] Enabled Debug
2020-09-25 09:40:29.698 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:29.699 Decoding is ‘failed’
2020-09-25 09:40:29.699 Service Main
2020-09-25 09:40:29.699 Service handlers registered
2020-09-25 09:40:29.699 [Trace] Installing cap file ‘C:\Program Files (x86)\checkmk\service\install\plugins.cap’
2020-09-25 09:40:29.700 Timestamp OK, checking file content…
2020-09-25 09:40:29.700 [Trace] Installing of CAP file is not required, the file is already installed
2020-09-25 09:40:29.700 [Trace] Installing ini file ‘C:\Program Files (x86)\checkmk\service\install\check_mk.ini’
2020-09-25 09:40:29.700 Timestamp OK, checking file content…
2020-09-25 09:40:29.700 [Trace] Installing of INI file is not required, the file is already installed
2020-09-25 09:40:29.700 [Trace] Copy file ‘C:\Program Files (x86)\checkmk\service\install\checkmk.dat’ to ‘C:\ProgramData\checkmk\agent\install\checkmk.dat’
2020-09-25 09:40:29.700 Timestamp OK, checking file content…
2020-09-25 09:40:29.700 [Trace] Copy is not required, the file is already exists
2020-09-25 09:40:29.700 Skip installing user yml file
2020-09-25 09:40:29.700 Timestamp OK, checking file content…
2020-09-25 09:40:29.701 Starting upgrade(migration) process…
2020-09-25 09:40:29.701 [Trace] Legacy Agent not found Upgrade is not possible
2020-09-25 09:40:29.701 [Trace] Successful start of thread
2020-09-25 09:40:29.701 Reloading config for SERVICE is required
2020-09-25 09:40:29.702 [Trace] trying path C:\Program Files (x86)\checkmk\service
2020-09-25 09:40:29.702 Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:29.702 [Trace] Loading C:\Program Files (x86)\checkmk\service\check_mk.yml
2020-09-25 09:40:29.703 [Trace] Loading C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml
2020-09-25 09:40:29.703 [Trace] C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml is absent, return
2020-09-25 09:40:29.703 [Trace] Loading C:\ProgramData\checkmk\agent\check_mk.user.yml
2020-09-25 09:40:29.706 [Trace] Invalid Node. Type 0
2020-09-25 09:40:29.706 [Trace] Target ‘folders’ is empty, overriding with source
2020-09-25 09:40:29.706 [Trace] Invalid Node. Type 0
2020-09-25 09:40:29.706 [Trace] Invalid Node. Type 0
2020-09-25 09:40:29.706 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘counters’ as different type
2020-09-25 09:40:29.706 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘path’ as different type
2020-09-25 09:40:29.707 [Trace] c:\workspace\cmk_160\nightly_build_containerized\agents\wnx\src\engine\cfg.cpp:1343: skipping section ‘logfile’ as different type
2020-09-25 09:40:29.707 Loaded Config Files by Agent [1.6.0p12,64bit,release,May 20 2020,21:10:41] @ ‘Win8.1-64 server’
root: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’ size=8427 [OK]
bakery: ‘C:\ProgramData\checkmk\agent\bakery\check_mk.bakery.yml’ size=0 [OK]
user: ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’ size=12763 [OK]
2020-09-25 09:40:29.708 [Trace] Absent/Empty node local.folders type is 0
2020-09-25 09:40:29.708 [Trace] Enabled Debug
2020-09-25 09:40:29.708 Loaded start config ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’,‘C:\ProgramData\checkmk\agent\bakery’,‘C:\ProgramData\checkmk\agent\check_mk.user.yml’
2020-09-25 09:40:29.708 Pre Start actions
2020-09-25 09:40:29.708 [Warn ] OHM file ‘C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe’ is not found
2020-09-25 09:40:29.708 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:29.708 [Trace] Left [37] files to execute
2020-09-25 09:40:29.710 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:29.710 [Trace] Left [1] files to execute in ‘plugins’
2020-09-25 09:40:29.710 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-25 09:40:29.710 [Trace] Left [37] files to execute
2020-09-25 09:40:29.711 Plugin ‘C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs’ is sync with age:0 timeout:60 retry:0
2020-09-25 09:40:29.711 [Trace] Left [1] files to execute in ‘plugins’

Ich sehe da jetzt zumindest keine Zeillen mit [ERROR] oder [FAILED] o. ä. :frowning:

Und ich habe noch mal nachgeschaut: Der Agent ist in Version 1.6.0p12 draußen.

Also was ich sehe ist, dass der Agent vollkommen ohne richtige Konfiguration läuft.
Beispiel “windows_updates.vbs” insync und ohne Timeout und Cache Angabe.

Das Log selbst sieht auch sehr seltsam aus.
Der Start einer Abfrage schaut bei mir in etwa so aus.

2020-09-17 08:15:09.460 Connected from '172.18.11.254' ipv6 :false -> queue
2020-09-17 08:15:09.460 Put on queue, size is [1]
2020-09-17 08:15:09.461 Found connection on queue, in queue left[0]
2020-09-17 08:15:09.461 Connected from '172.18.11.254' ipv6:false <- queue
2020-09-17 08:15:09.462 [Trace] 'openhardwaremonitor' is skipped by config
2020-09-17 08:15:09.462 Allowed Extensions: [exe,bat,vbs,cmd,ps1]
2020-09-17 08:15:09.463 [Trace] Left [36] files to execute
2020-09-17 08:15:09.472 Plugin 'C:\Program Files (x86)\checkmk\service\plugins\windows_tasks.ps1'  is  async with age:0 timeout:30 retry:0
2020-09-17 08:15:09.473 Plugin 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'  is  async with age:0 timeout:30 retry:0
2020-09-17 08:15:09.473 Plugin 'C:\Program Files (x86)\checkmk\service\plugins\windows_if.ps1'  is  async with age:0 timeout:30 retry:0
2020-09-17 08:15:09.474 Plugin 'C:\Program Files (x86)\checkmk\service\plugins\windows_updates.vbs'  is  async with age:90000 timeout:3600 retry:0
2020-09-17 08:15:09.474 [Trace] Left [4] files to execute in 'plugins'
2020-09-17 08:15:09.475 Generating answer number [1]

Es sollte am Anfang immer die Connection Anfrage im Log stehen.

Diese komischen Meldungen habe ich nirgends im Log bei mir. Also irgendwas ist an dem Agent kaputt oder die Konfiguration passt nicht.

Die Plugin Angabe kann durchaus anders sein ich rufe hier direkt einige der mitgelieferten auf :slight_smile:

Um den Agenten hat sich wuasi ausschließlich mein Kollege kümmert. Ich habe den Server aufgebaut.

Kann auch sein, dass ein paar Zeilen fehlen. Das Log ist wahnsinnig groß. Innerhalb dieser vier Sekunden kam vermutlich keine Anfrage.

Wenn keine Anfragen kommen sollte da auch nix im Log stehen. Also irgendwas ist da kaputt an dem Agent.

Wir haben das Problem vermutlich gefunen, nur die Ursache ist uns nicht ganz klar. Im Agentenverzeichnis gibt es ja Ordner wie locals und plugins. Auf den betroffenen Servern waren das aber keine Ordner mehr, sondern Dateien. Das hat der Agent mal überhaupt nicht verkraftet.

Ok das darf auch nicht sein :slight_smile:
Das der Agent dann Amok läuft sollte aber auch nicht passieren - eher abbrechen mit nem sinnvollen Fehler.