Checkmk agent slows down windows system

CMK version: 2.0.0p9 (CRE)
OS version: Windows Server 2016

Error message:
If the checkmk service is running, cpu will go to 100% and slows down the system. See the screen shot. Several powershell processes will be running. If I stop checkmk, the cpu usage will go down and the powershell process will disappear. I have this level of cmk agent agent running on serveral windows systems but only one windows has this problem. I have just a standard installation of the cmk agent with only some adoptions for the plugin config. But again the same config run also on the other systems.
Now I played with the cmk agent config and disabled nearly all the plugins and all the further plugin config (like winperf, ps ,…). I still see the same situation also with this mini config.
The logfile give no hints about a long running process or an error.
How can I investigate what in detail is running in the powershell processes?
How can I investigate further the reasin for this slowdown?
regards Robert

Output of “cmk --debug -vvn hostname”:

Checkmk version 2.0.0p9
Try license usage history update.
Trying to acquire lock on /omd/sites/inseo/var/check_mk/license_usage/next_run
Got lock on /omd/sites/inseo/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/inseo/var/check_mk/license_usage/history.json
Got lock on /omd/sites/inseo/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/inseo/var/check_mk/license_usage/history.json
Released lock on /omd/sites/inseo/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/inseo/var/check_mk/license_usage/next_run
Released lock on /omd/sites/inseo/var/check_mk/license_usage/next_run
Loading autochecks from /omd/sites/inseo/var/check_mk/autochecks/INS-DC31.mk
+ FETCHING DATA
 Source: SourceType.HOST/FetcherType.TCP
[cpu_tracking] Start [7ff47445bb20]
Connecting via TCP to 10.10.34.211:6556 (50.0s timeout)
[TCPFetcher] Fetch with cache settings: DefaultAgentFileCache(base_path=PosixPath('/omd/sites/inseo/tmp/check_mk/cache/INS-DC31'), max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 14 sec, allowed is 0 sec)
[TCPFetcher] Execute data source
Reading data from agent
Output is not encrypted
Write data to cache file /omd/sites/inseo/tmp/check_mk/cache/INS-DC31
Trying to acquire lock on /omd/sites/inseo/tmp/check_mk/cache/INS-DC31
Got lock on /omd/sites/inseo/tmp/check_mk/cache/INS-DC31
Releasing lock on /omd/sites/inseo/tmp/check_mk/cache/INS-DC31
Released lock on /omd/sites/inseo/tmp/check_mk/cache/INS-DC31
Closing TCP connection to 10.10.34.211:6556
[cpu_tracking] Stop [7ff47445bb20 - Snapshot(process=posix.times_result(user=0.010000000000000231, system=0.0, children_user=0.0, children_system=0.0, elapsed=5.949999999254942))]
 Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7ff4744b5130]
No piggyback files for 'INS-DC31'. Skip processing.
No piggyback files for '10.10.34.211'. Skip processing.
[PiggybackFetcher] Fetch with cache settings: NoCache(base_path=PosixPath('/omd/sites/inseo/tmp/check_mk/data_source_cache/piggyback/INS-DC31'), max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
[PiggybackFetcher] Execute data source
[cpu_tracking] Stop [7ff4744b5130 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[cpu_tracking] Start [7ff47445bfa0]
+ PARSE FETCHER RESULTS
 Source: SourceType.HOST/FetcherType.TCP
No persisted sections loaded
 -> Add sections: ['check_mk', 'df', 'local', 'mem', 'systemtime', 'uptime', 'win_license', 'windows_updates']
 Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections loaded
 -> Add sections: []
Received no piggyback data
Loading item states
Trying to acquire lock on /omd/sites/inseo/tmp/check_mk/counters/INS-DC31
Got lock on /omd/sites/inseo/tmp/check_mk/counters/INS-DC31
Releasing lock on /omd/sites/inseo/tmp/check_mk/counters/INS-DC31
Released lock on /omd/sites/inseo/tmp/check_mk/counters/INS-DC31
Filesystem C:/       69.71% used (34.85 of 50.00 GB), trend: +75.62 MB / 24 hours
INS_Bkup-Win:Info    (V2.1)  Skipped! No Event Log available
INS_Bkup-Win:LastRun (V2.1) Skipped! Windows Backup Services not installed
INS_Bkup-Win:List    (V2.1)  Skipped! No Event Log available
INS_Bkup-Win:Status  (V2.1) skipped! No Event Log available
INS_Bkup-Win:Versions (V2.1) Skipped! Windows Backup Services not installed
INS_Info:ComputerInfo (V2.1) System Inventory \
INS_SW:List          (V2.1) Installed Software\
Memory               RAM: 53.79% - 2.15 GB of 4.00 GB, Commit charge: 27.88% - 2.06 GB of 7.37 GB
System Time          Offset: -870 ms
System Updates       1 important updates, (Security Intelligence-Update für Microsoft Defender Antivirus - KB2267602 (Version 1.361.1422.0)) --- , 0 optional updates
Uptime               Up since Mar 19 2022 19:47:14, Uptime: 17 days 18 hours
+ EXECUTING INVENTORY PLUGINS
hp_proliant_mem: skipped (no data)
hp_proliant_mem: skipped (no data)
ipmi_firmware: skipped (no data)
ipmi_firmware: skipped (no data)
inventory_checkmk: skipped (no data)
inventory_checkmk: skipped (no data)
inv_cisco_vlans: skipped (no data)
inv_cisco_vlans: skipped (no data)
inv_esx_vsphere_hostsystem: skipped (no data)
inv_esx_vsphere_hostsystem: skipped (no data)
inv_if: ok
inv_if: skipped (no data)
inventory_oracle_tablespaces: skipped (no data)
inventory_oracle_tablespaces: skipped (no data)
dmidecode: skipped (no data)
dmidecode: skipped (no data)
docker_node_network: skipped (no data)
docker_node_network: skipped (no data)
inventory_esx_vsphere_clusters: skipped (no data)
inventory_esx_vsphere_clusters: skipped (no data)
inventory_esx_vsphere_virtual_machines: skipped (no data)
inventory_esx_vsphere_virtual_machines: skipped (no data)
k8s_endpoint_info: skipped (no data)
k8s_endpoint_info: skipped (no data)
k8s_ingress_infos: skipped (no data)
k8s_ingress_infos: skipped (no data)
juniper_info: skipped (no data)
juniper_info: skipped (no data)
mem: ok
mem: skipped (no data)
mem_used: skipped (no data)
mem_used: skipped (no data)
snmp_info: skipped (no data)
snmp_info: skipped (no data)
aix_baselevel: skipped (no data)
aix_baselevel: skipped (no data)
aix_lparstat_inventory: skipped (no data)
aix_lparstat_inventory: skipped (no data)
aix_packages: skipped (no data)
aix_packages: skipped (no data)
aix_service_packs: skipped (no data)
aix_service_packs: skipped (no data)
allnet_ip_sensoric: skipped (no data)
allnet_ip_sensoric: skipped (no data)
aruba_wlc_aps: skipped (no data)
aruba_wlc_aps: skipped (no data)
check_mk: ok
check_mk: skipped (no data)
checkpoint_inv_tunnels: skipped (no data)
checkpoint_inv_tunnels: skipped (no data)
citrix_controller: skipped (no data)
citrix_controller: skipped (no data)
citrix_state: skipped (no data)
citrix_state: skipped (no data)
couchbase_nodes_ports: skipped (no data)
couchbase_nodes_ports: skipped (no data)
dell_hw_info: skipped (no data)
dell_hw_info: skipped (no data)
docker_container_labels: skipped (no data)
docker_container_labels: skipped (no data)
docker_container_network: skipped (no data)
docker_container_network: skipped (no data)
docker_container_node_name: skipped (no data)
docker_container_node_name: skipped (no data)
docker_node_images: skipped (no data)
docker_node_images: skipped (no data)
docker_node_info: skipped (no data)
docker_node_info: skipped (no data)
esx_systeminfo: skipped (no data)
esx_systeminfo: skipped (no data)
fireeye_sys_status: skipped (no data)
fireeye_sys_status: skipped (no data)
fritz: skipped (no data)
fritz: skipped (no data)
hp_proliant_da_phydrv: skipped (no data)
hp_proliant_da_phydrv: skipped (no data)
hp_proliant_systeminfo: skipped (no data)
hp_proliant_systeminfo: skipped (no data)
ibm_mq_channels: skipped (no data)
ibm_mq_channels: skipped (no data)
ibm_mq_managers: skipped (no data)
ibm_mq_managers: skipped (no data)
ibm_mq_queues: skipped (no data)
ibm_mq_queues: skipped (no data)
infoblox_osinfo: skipped (no data)
infoblox_osinfo: skipped (no data)
infoblox_systeminfo: skipped (no data)
infoblox_systeminfo: skipped (no data)
k8s_assigned_pods: skipped (no data)
k8s_assigned_pods: skipped (no data)
k8s_daemon_pod_containers: skipped (no data)
k8s_daemon_pod_containers: skipped (no data)
k8s_job_container: skipped (no data)
k8s_job_container: skipped (no data)
k8s_nodes: skipped (no data)
k8s_nodes: skipped (no data)
k8s_pod_container: skipped (no data)
k8s_pod_container: skipped (no data)
k8s_pod_info: skipped (no data)
k8s_pod_info: skipped (no data)
k8s_roles: skipped (no data)
k8s_roles: skipped (no data)
k8s_selector: skipped (no data)
k8s_selector: skipped (no data)
k8s_service_info: skipped (no data)
k8s_service_info: skipped (no data)
lnx_block_devices: skipped (no data)
lnx_block_devices: skipped (no data)
lnx_cpuinfo: skipped (no data)
lnx_cpuinfo: skipped (no data)
lnx_distro: skipped (no data)
lnx_distro: skipped (no data)
lnx_if: skipped (no data)
lnx_if: skipped (no data)
lnx_ip_r: skipped (no data)
lnx_ip_r: skipped (no data)
lnx_packages: skipped (no data)
lnx_packages: skipped (no data)
lnx_sysctl: skipped (no data)
lnx_sysctl: skipped (no data)
lnx_uname: skipped (no data)
lnx_uname: skipped (no data)
lnx_video: skipped (no data)
lnx_video: skipped (no data)
lparstat_aix: skipped (no data)
lparstat_aix: skipped (no data)
mssql_clusters: skipped (no data)
mssql_clusters: skipped (no data)
mssql_versions: skipped (no data)
mssql_versions: skipped (no data)
netapp_api_disk: skipped (no data)
netapp_api_disk: skipped (no data)
netapp_api_info: skipped (no data)
netapp_api_info: skipped (no data)
oracle_dataguard_stats: skipped (no data)
oracle_dataguard_stats: skipped (no data)
oracle_instance: skipped (no data)
oracle_instance: skipped (no data)
oracle_performance: skipped (no data)
oracle_performance: skipped (no data)
oracle_recovery_area: skipped (no data)
oracle_recovery_area: skipped (no data)
oracle_systemparameter: skipped (no data)
oracle_systemparameter: skipped (no data)
perle_chassis: skipped (no data)
perle_chassis: skipped (no data)
perle_chassis_slots: skipped (no data)
perle_chassis_slots: skipped (no data)
perle_psmu: skipped (no data)
perle_psmu: skipped (no data)
prtconf: skipped (no data)
prtconf: skipped (no data)
snmp_extended_info: skipped (no data)
snmp_extended_info: skipped (no data)
snmp_os: skipped (no data)
snmp_os: skipped (no data)
snmp_quantum_storage_info: skipped (no data)
snmp_quantum_storage_info: skipped (no data)
solaris_addresses: skipped (no data)
solaris_addresses: skipped (no data)
solaris_pkginfo: skipped (no data)
solaris_pkginfo: skipped (no data)
solaris_prtdiag: skipped (no data)
solaris_prtdiag: skipped (no data)
solaris_prtpicl: skipped (no data)
solaris_prtpicl: skipped (no data)
solaris_psrinfo: skipped (no data)
solaris_psrinfo: skipped (no data)
solaris_routes: skipped (no data)
solaris_routes: skipped (no data)
solaris_uname: skipped (no data)
solaris_uname: skipped (no data)
statgrab_net: skipped (no data)
statgrab_net: skipped (no data)
suseconnect: skipped (no data)
suseconnect: skipped (no data)
win_bios: skipped (no data)
win_bios: skipped (no data)
win_computersystem: skipped (no data)
win_computersystem: skipped (no data)
win_cpuinfo: skipped (no data)
win_cpuinfo: skipped (no data)
win_disks: skipped (no data)
win_disks: skipped (no data)
win_exefiles: skipped (no data)
win_exefiles: skipped (no data)
win_ip_r: skipped (no data)
win_ip_r: skipped (no data)
win_networkadapter: skipped (no data)
win_networkadapter: skipped (no data)
win_os: skipped (no data)
win_os: skipped (no data)
win_reg_uninstall: skipped (no data)
win_reg_uninstall: skipped (no data)
win_system: skipped (no data)
win_system: skipped (no data)
win_video: skipped (no data)
win_video: skipped (no data)
win_wmi_software: skipped (no data)
win_wmi_software: skipped (no data)
win_wmi_updates: skipped (no data)
win_wmi_updates: skipped (no data)
winperf_if: skipped (no data)
winperf_if: skipped (no data)

No piggyback files for 'INS-DC31'. Skip processing.
No piggyback files for '10.10.34.211'. Skip processing.
[cpu_tracking] Stop [7ff47445bfa0 - Snapshot(process=posix.times_result(user=0.06000000000000005, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.07000000029802322))]
[agent] Version: 2.0.0p9, OS: windows, Missing monitoring data for check plugins: dotnet_clrmemory, logwatch, services_summary, winperf_processor_util, wmi_cpuload(!), execution time 6.0 sec | execution_time=6.020 user_time=0.070 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=5.940

CMK Logfile:

2022-04-06 15:04:02.537 [srv 6096] [Trace] Enabled Base
2022-04-06 15:04:02.541 [srv 6096] [Trace] Setting root. service: 'CheckMkService', preset: ''
2022-04-06 15:04:02.541 [srv 6096] [Trace] Try service: 'CheckMkService'
2022-04-06 15:04:02.541 [srv 6096] [Trace] Try registry 'CheckMkService'
2022-04-06 15:04:02.542 [srv 6096] [Trace] Service is found 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe'
2022-04-06 15:04:02.542 [srv 6096] Set root 'C:\Program Files (x86)\checkmk\service' from registry 'CheckMkService'
2022-04-06 15:04:02.542 [srv 6096] [Trace] Try registry 'CheckMkService'
2022-04-06 15:04:02.543 [srv 6096] Protect file from User write 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe'
2022-04-06 15:04:02.543 [srv 6096] Protect path from User access 'C:\Program Files (x86)\checkmk\service'
2022-04-06 15:04:02.544 [srv 6096] 'data' Starting executing commands [5]
2022-04-06 15:04:02.602 [srv 6096] Process is started 'C:\Windows\TEMP\cmk_data_6096_2.cmd'  with pid [6500]
2022-04-06 15:04:02.602 [srv 6096] [Trace] Using root = 'C:\Program Files (x86)\checkmk\service' and data = 'C:\ProgramData\checkmk\agent' folders 
2022-04-06 15:04:02.616 [srv 6096] COM Initialized
2022-04-06 15:04:02.619 [srv 6096] COM initialized
2022-04-06 15:04:02.659 [srv 6096] Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2022-04-06 15:04:02.743 [srv 6096] [Trace] Enabled Base
2022-04-06 15:04:02.757 [srv 6096] 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'
2022-04-06 15:04:02.758 [srv 6096] Firewall mode is set to configure, adding rule...
2022-04-06 15:04:03.492 [srv 6096] Firewall rule 'Checkmk Agent' had been added successfully for ports [6556]
2022-04-06 15:04:03.514 [srv 6096] Service Main
2022-04-06 15:04:03.522 [srv 6096] Service handlers registered
2022-04-06 15:04:03.524 [srv 6096] [Trace] Installing cap file 'C:\Program Files (x86)\checkmk\service\install\plugins.cap'
2022-04-06 15:04:03.524 [srv 6096] [Trace] Installing of CAP file is not required
2022-04-06 15:04:03.525 [srv 6096] [Trace] Installing yml file 'C:\Program Files (x86)\checkmk\service\install\check_mk.install.yml'
2022-04-06 15:04:03.525 [srv 6096] Reinstalling 'C:\ProgramData\checkmk\agent\install\check_mk.install.yml' with 'C:\Program Files (x86)\checkmk\service\install\check_mk.install.yml'
2022-04-06 15:04:03.525 [srv 6096] This Option/YML installation form MSI is ENABLED
2022-04-06 15:04:03.526 [srv 6096] Remove 'C:\ProgramData\checkmk\agent\install\check_mk.install.yml' [OK]
2022-04-06 15:04:03.533 [srv 6096] Supplied yaml 'C:\Program Files (x86)\checkmk\service\install\check_mk.install.yml' will not be installed
2022-04-06 15:04:03.534 [srv 6096] [Trace] Copy file 'C:\Program Files (x86)\checkmk\service\install\checkmk.dat' to 'C:\ProgramData\checkmk\agent\install\checkmk.dat'
2022-04-06 15:04:03.536 [srv 6096] [Trace] Copy is not required, the file is already exists
2022-04-06 15:04:03.537 [srv 6096] Starting upgrade(migration) process...
2022-04-06 15:04:03.537 [srv 6096] Protocol File at 'C:\ProgramData\checkmk\agent\config' exists, upgrade(migration) not required
2022-04-06 15:04:03.538 [srv 6096] Found root config on path C:\Program Files (x86)\checkmk\service\check_mk.yml
2022-04-06 15:04:03.547 [srv 6096] [Trace] Enabled Base
2022-04-06 15:04:03.548 [srv 6096] 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'
2022-04-06 15:04:03.548 [srv 6096] [Trace] Successful start of thread
2022-04-06 15:04:03.562 [srv 6096] The network is available
2022-04-06 15:04:03.568 [srv 6096] Reading module config normal
2022-04-06 15:04:03.569 [srv 6096] Finding modules
2022-04-06 15:04:03.569 [srv 6096] Installing modules
2022-04-06 15:04:03.570 [srv 6096] Pre Start actions
2022-04-06 15:04:03.570 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:03.625 [srv 6096] Pre Start actions ended
2022-04-06 15:04:10.485 [srv 6096] main Wait Loop
2022-04-06 15:04:10.521 [srv 6096] Starting IO ipv6:false, used port:6556
2022-04-06 15:04:10.522 [srv 6096] Applying config auto restart_on_crash:true error_mode: log
2022-04-06 15:04:24.295 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:24.303 [srv 6096] [Trace] 'wmi_cpuload' is skipped by config
2022-04-06 15:04:24.314 [srv 6096] [Trace] 'dotnet_clrmemory' is skipped by config
2022-04-06 15:04:24.314 [srv 6096] [Trace] 'wmi_webservices' is skipped by config
2022-04-06 15:04:24.315 [srv 6096] [Trace] 'msexch' is skipped by config
2022-04-06 15:04:24.315 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:24.318 [srv 6096] [Trace] To start [3] sync plugins
2022-04-06 15:04:24.338 [srv 6096] [Trace] To start [6] sync plugins
2022-04-06 15:04:31.514 [srv 6096] Send [3476] bytes of data
2022-04-06 15:04:31.514 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:31.530 [srv 6096] [Trace] 'wmi_cpuload' is skipped by config
2022-04-06 15:04:31.553 [srv 6096] [Trace] 'dotnet_clrmemory' is skipped by config
2022-04-06 15:04:31.553 [srv 6096] [Trace] 'wmi_webservices' is skipped by config
2022-04-06 15:04:31.553 [srv 6096] [Trace] 'msexch' is skipped by config
2022-04-06 15:04:31.554 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:31.561 [srv 6096] [Trace] To start [3] sync plugins
2022-04-06 15:04:31.592 [srv 6096] [Trace] To start [6] sync plugins
2022-04-06 15:04:39.836 [srv 6096] Send [3476] bytes of data
2022-04-06 15:04:39.836 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:39.854 [srv 6096] [Trace] 'wmi_cpuload' is skipped by config
2022-04-06 15:04:39.865 [srv 6096] [Trace] 'dotnet_clrmemory' is skipped by config
2022-04-06 15:04:39.866 [srv 6096] [Trace] 'wmi_webservices' is skipped by config
2022-04-06 15:04:39.866 [srv 6096] [Trace] 'msexch' is skipped by config
2022-04-06 15:04:39.866 [srv 6096] [Trace] 'openhardwaremonitor' is skipped by config
2022-04-06 15:04:39.885 [srv 6096] [Trace] To start [3] sync plugins
2022-04-06 15:04:39.886 [srv 6096] [Trace] To start [6] sync plugins
2022-04-06 15:04:47.842 [srv 6096] Send [3476] bytes of data

First step if you suspect a Powershell script to be the problem. Remove all active plugins and local checks on this machine. Run the agent with default configuration without plugins. Inspect the behavior.
If it runs without problem add the local checks / plugins one by one and check the system behavior.

I think you have also disabled some of the log settings as your log file misses most of the relevant information. Please first test the agent with the default settings and inspect the log.

Hello
Thanks for the answer. Based on this did some additional testing.
I found all the open powershell processes are comming from my local checks.
I disabled them all and left only 1 local check. This check is a very short one just displaying some system info (see below). Running under checkmk agent, this check creates 2 powershell processes and these processes stays for 1 minute in the system. After 1 minute 2 new processes are created and they stay again 1 min. 1 min is the check interval. I played with parameter timeout in the local: section but this had no influence. The screenshot shows the 2 powershell processes and I also pasted the corresponding log entries (pid: 7112).
I this normal processing of powershell unter checkmk agent? Or is there a special coding required for a powershell check?

local check: computerinfo.ps1

> $VERSION = "(V2.1)"
> $CHECKPREFIX = "INS_Info:"
> $CHECKNAME = $CHECKPREFIX + "ComputerInfo"
> #Get-WmiObject win32_Processor | Get-Member
> #Get-WmiObject win32_operatingsystem | Format-List *
> 
> $Computersystem = Get-WmiObject Win32_Computersystem
> $Processor = Get-WmiObject win32_Processor 
> $operatingsystem = Get-WmiObject win32_operatingsystem
> 
> write-host "0" $CHECKNAME "-" $VERSION "System Inventory \\n" `
>     "<tt>Name . . . . . . . . . . .: " $Computersystem.Name " \\n" `
> 	"Manufacturer . . . . . . .: " $Computersystem.manufacturer "\\n" `
> 	"Model. . . . . . . . . . .: " $Computersystem.model "\\n" `
> 	"NumberOfLogicalProcessors : " $Computersystem.NumberOfLogicalProcessors "\\n" `
> 	"NumberOfProcessors . . . .: " $Computersystem.NumberOfProcessors "\\n" `
> 	"TotalPhysicalMemory. . . .: " $Computersystem.TotalPhysicalMemory "\\n" `
> 	"SystemType . . . . . . . .: " $Computersystem.SystemType "\\n" `
> 	"DNSHostName. . . . . . . .: " $Computersystem.DNSHostName "\\n" `
> 	"Domain . . . . . . . . . .: " $Computersystem.Domain "\\n" `
> 	"HW-Descrption. . . . . . .: " $Processor.Caption "\\n" `
> 	"ProcessorName. . . . . . .: " $Processor.Name "\\n" `
> 	"Windows. . . . . . . . . .: " $operatingsystem.Caption "\\n" `
> 	"Version. . . . . . . . . .: " $operatingsystem.Version "\\n" `
> 	"BuildNumber. . . . . . . .: " $operatingsystem.BuildNumber "\\n" `
> 	"OS-Architecture. . . . . .: " $operatingsystem.OSArchitecture "</tt>"

log entries

> 2022-04-07 09:04:58.922 [srv 5424] perf:  In [2511] milliseconds process 'powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "C:\ProgramData\checkmk\agent\local\computerinfo.ps1"' pid:[5412] SUCCEDED - generated [797] bytes of data in [1] blocks
> 2022-04-07 09:04:58.924 [srv 5424] [Trace] Provider 'local' is about to be started, id '1599467550082700' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:04:58.925 [srv 5424] [Trace] Sending data 'local' id is [1599467550082700] length [815]
> 2022-04-07 09:04:58.926 [srv 5424] perf: Section 'local' took [0] milliseconds
> 2022-04-07 09:04:58.926 [srv 5424] Received [943] bytes from 'local'
> 2022-04-07 09:04:58.927 [srv 5424] perf: Answer is ready in [2995] milliseconds
> 2022-04-07 09:04:58.927 [srv 5424] Send [26928] bytes of data
> 2022-04-07 09:05:46.404 [srv 5424] Connected from '10.10.34.41' ipv6 :false -> queue
> 2022-04-07 09:05:46.414 [srv 5424] Connected from '10.10.34.41' ipv6:false <- queue
> 2022-04-07 09:05:46.414 [srv 5424] [Trace] 'openhardwaremonitor' is skipped by config
> 2022-04-07 09:05:46.415 [srv 5424] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
> 2022-04-07 09:05:46.415 [srv 5424] [Trace] Left [36] files to execute
> 2022-04-07 09:05:46.427 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.428 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\windows_updates.vbs'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.428 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\win_license.bat'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.428 [srv 5424] [Trace] Left [3] files to execute in 'plugins'
> 2022-04-07 09:05:46.429 [srv 5424] Generating answer number [1]
> 2022-04-07 09:05:46.429 [srv 5424] Id is [1599518048166400] 
> 2022-04-07 09:05:46.430 [srv 5424] [Trace] Provider 'wmi_cpuload' is direct called, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.541 [srv 5424] Object 'Win32_PerfRawData_PerfOS_System' in 110ms sends [760] bytes
> 2022-04-07 09:05:46.604 [srv 5424] Object 'Win32_ComputerSystem' in 56ms sends [1351] bytes
> 2022-04-07 09:05:46.610 [srv 5424] [Trace] Sending data 'wmi_cpuload' id is [1599518048166400] length [2195]
> 2022-04-07 09:05:46.612 [srv 5424] perf: Section 'wmi_cpuload' took [181] milliseconds
> 2022-04-07 09:05:46.612 [srv 5424] Using file 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe' for winperf
> 2022-04-07 09:05:46.613 [srv 5424] [Trace] Provider 'uptime' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.624 [srv 5424] [Trace] Loaded [3] entries in LogWatch
> 2022-04-07 09:05:46.625 [srv 5424] Received [2323] bytes from 'wmi_cpuload'
> 2022-04-07 09:05:46.626 [srv 5424] [Trace] Sending data 'uptime' id is [1599518048166400] length [20]
> 2022-04-07 09:05:46.633 [srv 5424] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
> 2022-04-07 09:05:46.635 [srv 5424] perf: Section 'uptime' took [9] milliseconds
> 2022-04-07 09:05:46.635 [srv 5424] [Trace] Left [36] files to execute
> 2022-04-07 09:05:46.636 [srv 5424] Exec 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe' for 'winperf' to be started
> 2022-04-07 09:05:46.659 [srv 5424] async RunStdCmd: "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" -runonce winperf mail:\\.\mailslot\Global\WinAgent_0 id:1599518048166400 timeout:10 ip:10.10.34.41 234:phydisk 510:if 238:processor
> 2022-04-07 09:05:46.660 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.677 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\windows_updates.vbs'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.678 [srv 5424] Plugin 'C:\Program Files (x86)\checkmk\service\plugins\win_license.bat'  is  async with age:3600 timeout:30 retry:0
> 2022-04-07 09:05:46.683 [srv 5424] [Trace] Provider 'services' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.683 [srv 5424] [Trace] Provider 'ps' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.684 [srv 5424] [Trace] Provider 'fileinfo' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.854 [srv 5424] [Trace] Provider 'logwatch' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.884 [srv 5424] [Trace] Provider 'df' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:46.886 [srv 5424] Received [148] bytes from 'uptime'
> 2022-04-07 09:05:47.004 [srv 5424] [Trace] Provider 'mem' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:47.004 [srv 5424] [Trace] Sending data 'mem' id is [1599518048166400] length [227]
> 2022-04-07 09:05:47.005 [srv 5424] perf: Section 'mem' took [0] milliseconds
> 2022-04-07 09:05:47.006 [srv 5424] [Trace] Sending data 'services' id is [1599518048166400] length [11200]
> 2022-04-07 09:05:47.006 [srv 5424] perf: Section 'services' took [322] milliseconds
> 2022-04-07 09:05:47.007 [srv 5424] Processed [1] drives
> 2022-04-07 09:05:47.010 [srv 5424] [Trace] Sending data 'df' id is [1599518048166400] length [59]
> 2022-04-07 09:05:47.011 [srv 5424] perf: Section 'df' took [126] milliseconds
> 2022-04-07 09:05:47.016 [srv 5424] [Trace] Left [3] files to execute in 'plugins'
> 2022-04-07 09:05:47.029 [srv 5424] [Trace] Sending data 'fileinfo' id is [1599518048166400] length [34]
> 2022-04-07 09:05:47.042 [srv 5424] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
> 2022-04-07 09:05:47.066 [srv 5424] [Trace] Left [1] files to execute
> 2022-04-07 09:05:47.076 [srv 5424] Received [355] bytes from 'mem'
> 2022-04-07 09:05:47.097 [srv 5424] perf: Section 'fileinfo' took [188] milliseconds
> 2022-04-07 09:05:47.117 [srv 5424] Local 'C:\ProgramData\checkmk\agent\local\computerinfo.ps1'  is  sync with age:0 timeout:20 retry:0
> 2022-04-07 09:05:47.121 [srv 5424] [Trace] Left [1] files to execute in 'local'
> 2022-04-07 09:05:47.132 [srv 5424] [Trace] Skipping 'wmi_webservices' by time
> 2022-04-07 09:05:47.133 [srv 5424] Received [11328] bytes from 'services'
> 2022-04-07 09:05:47.141 [srv 5424] [Trace] To start [1] sync plugins
> 2022-04-07 09:05:47.142 [srv 5424] [Trace] 'msexch' is skipped by config
> 2022-04-07 09:05:47.167 [srv 5424] [Trace] To start [3] sync plugins
> 2022-04-07 09:05:47.167 [srv 5424] [Warn ] Data 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs' is too old, age is '49' seconds
> 2022-04-07 09:05:47.167 [srv 5424] restarting async plugin 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'
> 2022-04-07 09:05:47.168 [srv 5424] restarted thread for plugin 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'
> 2022-04-07 09:05:47.168 [srv 5424] [Trace] Provider 'plugins' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:47.169 [srv 5424] [Trace] Sending data 'plugins' id is [1599518048166400] length [381]
> 2022-04-07 09:05:47.171 [srv 5424] [Trace] Provider 'dotnet_clrmemory' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:47.172 [srv 5424] [Trace] Exec app 'powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "C:\ProgramData\checkmk\agent\local\computerinfo.ps1"', mode [0]
> 2022-04-07 09:05:47.181 [srv 5424] Async Thread for C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs is to be started
> 2022-04-07 09:05:47.188 [srv 5424] Received [187] bytes from 'df'
> 2022-04-07 09:05:47.200 [srv 5424] perf: Section 'plugins' took [6] milliseconds
> 2022-04-07 09:05:47.203 [srv 5424] [Trace] Skipping 'msexch' by config
> 2022-04-07 09:05:47.207 [srv 5424] [Trace] Exec app 'cscript.exe //Nologo "C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs"', mode [0]
> 2022-04-07 09:05:47.225 [srv 5424] [Trace] Absent/Empty node mrpe.config type is 1
> 2022-04-07 09:05:47.259 [srv 5424] [Err  ] failed to open log '*'
> 2022-04-07 09:05:47.265 [srv 5424] [Trace] Skipping 'skype' by config
> 2022-04-07 09:05:47.274 [srv 5424] Received [162] bytes from 'fileinfo'
> 2022-04-07 09:05:47.293 [srv 5424] [Trace] Sending data 'logwatch' id is [1599518048166400] length [344]
> 2022-04-07 09:05:47.309 [srv 5424] [Trace] 'openhardwaremonitor' is skipped by config
> 2022-04-07 09:05:47.312 [srv 5424] [Trace] Skipping 'openhardwaremonitor' by config
> 2022-04-07 09:05:47.313 [srv 5424] perf: Section 'logwatch' took [455] milliseconds
> 2022-04-07 09:05:47.316 [srv 5424] [Trace] Provider 'spool' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:47.319 [srv 5424] [Warn ] Section 'spool' cannot provide data
> 2022-04-07 09:05:47.320 [srv 5424] [Trace] Sending data 'spool' id is [1599518048166400] length [0]
> 2022-04-07 09:05:47.347 [srv 5424] [Trace] Provider 'mrpe' is about to be started, id '1599518048166400' port [mail:\\.\mailslot\Global\WinAgent_0]
> 2022-04-07 09:05:47.347 [srv 5424] [Warn ] Section 'mrpe' cannot provide data
> 2022-04-07 09:05:47.348 [srv 5424] [Trace] Sending data 'mrpe' id is [1599518048166400] length [0]
> 2022-04-07 09:05:47.348 [srv 5424] perf: Section 'mrpe' took [1] milliseconds
> 2022-04-07 09:05:47.357 [srv 5424] perf: Section 'spool' took [24] milliseconds
> 2022-04-07 09:05:47.371 [srv 5424] Received [509] bytes from 'plugins'
> 2022-04-07 09:05:47.444 [srv 5424] Received [472] bytes from 'logwatch'
> 2022-04-07 09:05:47.708 [srv 5424] [Trace] Sending data 'ps' id is [1599518048166400] length [6503]
> 2022-04-07 09:05:47.712 [srv 5424] Received [128] bytes from 'spool'
> 2022-04-07 09:05:47.724 [srv 5424] perf: Section 'ps' took [1040] milliseconds
> 2022-04-07 09:05:47.928 [srv 5424] Received [128] bytes from 'mrpe'
> 2022-04-07 09:05:48.200 [srv 5424] Received [2883] bytes from 'winperf'
> 2022-04-07 09:05:48.234 [srv 5424] Received [6631] bytes from 'ps'
> 2022-04-07 09:05:48.263 [srv 5424] Object 'Win32_PerfRawData_NETFramework_NETCLRMemory' in 1051ms sends [1634] bytes
> 2022-04-07 09:05:48.265 [srv 5424] [Trace] Sending data 'dotnet_clrmemory' id is [1599518048166400] length [1690]
> 2022-04-07 09:05:48.265 [srv 5424] perf: Section 'dotnet_clrmemory' took [1093] milliseconds
> 2022-04-07 09:05:48.275 [srv 5424] Received [1818] bytes from 'dotnet_clrmemory'
> 2022-04-07 09:05:48.359 [srv 5424] perf:  In [1170] milliseconds process 'cscript.exe //Nologo "C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs"' pid:[5124] SUCCEDED - generated [2] bytes of data in [1] blocks
> 2022-04-07 09:05:48.360 [srv 5424] [Warn ] Process 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs' has no data
> 2022-04-07 09:05:48.360 [srv 5424] [Trace] Thread OFF: 'C:\Program Files (x86)\checkmk\service\plugins\mk_inventory.vbs'
> 2022-04-07 09:05:50.287 [srv 5424] perf:  In [3139] milliseconds process 'powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "C:\ProgramData\checkmk\agent\local\computerinfo.ps1"' pid:[7112] SUCCEDED - generated [797] bytes of data in [1] blocks

You see the status “Abgebrochen” what is a false translation. The english original is “Terminated” what should be translated to “Beendet”. Every process that is not running anymore are shown inside the “Resourcemonitor” and stays for some time there.

Also if you inspect your agent log you see that all the executed scripts are running fine. The time for your own local check is 3,1 seconds and the script finished without an error.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.