Checmk is not receiving info from agent on Windows Server 2012 R2

**CMK version: ** 2.2.0p11 CRE
OS version: Oracle Linux 8.6

Error message: Agent exited with code 1

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

cmk --debug -vvn *.*.*.*
Checkmk version 2.2.0p11
Updating IPv4 DNS cache for *.*.*.*: *.*.*.*
Trying to acquire lock on /omd/sites/checkmk_ngms/var/check_mk/ipaddresses.cache
Got lock on /omd/sites/checkmk_ngms/var/check_mk/ipaddresses.cache
Releasing lock on /omd/sites/checkmk_ngms/var/check_mk/ipaddresses.cache
Released lock on /omd/sites/checkmk_ngms/var/check_mk/ipaddresses.cache
+ FETCHING DATA
  Source: SourceInfo(hostname='*.*.*.*', ipaddress='*.*.*.*', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f68f5cd75d0]
Read from cache: NoCache(*.*.*.*, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[PiggybackFetcher] Execute data source
No piggyback files for '*.*.*.*'. Skip processing.
No piggyback files for '*.*.*.*'. Skip processing.
[cpu_tracking] Stop [7f68f5cd75d0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  HostKey(hostname='*.*.*.*', source_type=<SourceType.HOST: 1>)  -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7f68f5cd6610]
value store: synchronizing
Trying to acquire lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/*.*.*.*
Got lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/*.*.*.*
value store: loading from disk
Releasing lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/*.*.*.*
Released lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/*.*.*.*
No piggyback files for '*.*.*.*. Skip processing.
No piggyback files for '*.*.*.*'. Skip processing.
[cpu_tracking] Stop [7f68f5cd6610 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.009999999999999981, children_user=0.0, children_system=0.0, elapsed=0.009999999776482582))]
[piggyback] Success (but no data found for this host), execution time 0.0 sec | execution_time=0.010 user_time=0.010 system_time=0.010 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.000

I am new to this application. So far, I’ve managed to get a Checkmk server up and running, and I am monitoring 67 hosts and 828 services, using SNMP and impi.

I am now trying to add the first of several Windows server virtual machines.

The virtual machine platform is Oracle VM Server for X86. (a Xen-based hypervisor tech.

I have installed the Checmk agent on the Windows server and registered it with the CheckMk server. However, I have encountered the error message above when running connection tests and service discovery from the Checkmk server GUI.

Where do I start looking for the problem?

Any advice will be much appreciated.

Hi rvrlx,

if you configured the Agent like standard, your Windows host should listen on Port 6556/TCP. First make sure, that this port is open on your firewalls (windows and network). Next make sure that your Checkmk Server is able to reach this Port on your Windows Host.

BR
Sven

Hi SvenH,

I did check that already and found no problem. Outputs are below:

~$ nmap *.*.*.* -p 6556
Starting Nmap 7.70 ( https://nmap.org ) at 2023-11-22 11:42 SAST
Nmap scan report for *.*.*.*
Host is up (0.0094s latency).

PORT     STATE SERVICE
6556/tcp open  unknown
:~$ nc -vz *.*.*.* 6556
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to *.*.*.*:6556.
Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.

rvrlx

What is the status of the Agent controller?
Run:

C:\Program Files (x86)\checkmk\service\cmk-agent-ctl status

on the Windows host.

Also please paste the Log file here.

C:\ProgramData\checkmk\agent\log\check_mk.log

1 Like
  1. Output of cmk-agent-ctl status:
Version: 2.2.0p11
Agent socket: operational
IP allowlist: any

Connection: 10.10.80.254/checkmk_ngms
	UUID: 12f1e4ac-46ee-47da-860a-acb7e1f46faa
	Local:
		Connection mode: pull-agent
		Connecting to receiver port: 8000
		Certificate issuer: Site 'checkmk_ngms' agent signing CA
		Certificate validity: Fri, 17 Nov 2023 10:21:03 +0000 - Fri, 17 Nov 2028 10:21:03 +0000
	Remote:
		Connection mode: pull-agent
		Hostname: cpt-ngms-win-lab
  1. Extract from check_mk.log
2023-11-22 11:42:15.089 [srv 1060] perf: Answer is ready in [559] milliseconds
2023-11-22 11:42:15.214 [srv 1060] Send [16485] bytes of data to [Global\WinAgentCtl_1112_1316_0] - OK
2023-11-22 11:42:15.276 [ctl:1112] [cmk_agent_ctl::modes::pull][DEBUG] processed task!
2023-11-22 11:42:15.307 [ctl:1112] [cmk_agent_ctl::modes::pull][WARN] [::ffff:10.10.80.254]:33704: Request failed. (tls handshake eof)
2023-11-22 11:42:43.495 [ctl:1112] [cmk_agent_ctl::modes::pull][INFO] [::ffff:10.10.80.254]:48604: Handling pull request.
2023-11-22 11:42:43.526 [ctl:1112] [cmk_agent_ctl::modes::pull][DEBUG] [::ffff:10.10.80.254]:48604: Handling pull request DONE (Task detached).
2023-11-22 11:42:43.557 [ctl:1112] [cmk_agent_ctl::modes::pull][DEBUG] handle_request starts
2023-11-22 11:42:43.589 [srv 1060] Request is '::ffff:10.10.80.254 Global\WinAgentCtl_1112_1316_0'
2023-11-22 11:42:43.589 [srv 1060] [Warn ] OHM file 'C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe' is not found
2023-11-22 11:42:43.589 [srv 1060] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
2023-11-22 11:42:43.589 [srv 1060] [Trace] Left [36] files to execute
2023-11-22 11:42:43.591 [srv 1060] [Trace] Left [0] files to execute in 'plugins'
2023-11-22 11:42:43.591 [srv 1060] Generating answer with id [164659256354720]
2023-11-22 11:42:43.591 [srv 1060] Id is [164688318549392] for ip [::ffff:10.10.80.254]
2023-11-22 11:42:43.591 [srv 1060] [Trace] Provider 'wmi_cpuload' is direct called, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.597 [srv 1060] [Trace] Found Name at 27
2023-11-22 11:42:43.597 [srv 1060] [Trace] Found NumberOfLogicalProcessors at 30
2023-11-22 11:42:43.597 [srv 1060] [Trace] Found NumberOfProcessors at 31
2023-11-22 11:42:43.598 [srv 1060] [Trace] Sending data 'wmi_cpuload' id is [164688318549392] length [245]
2023-11-22 11:42:43.598 [srv 1060] perf: Section 'wmi_cpuload' took [6] milliseconds
2023-11-22 11:42:43.598 [srv 1060] Using file 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe' for winperf
2023-11-22 11:42:43.598 [srv 1060] [Trace] Provider 'uptime' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.599 [srv 1060] [Warn ] No forking to get winperf data: may lead to handle leak.
2023-11-22 11:42:43.599 [srv 1060] [Trace] Sending data 'uptime' id is [164688318549392] length [19]
2023-11-22 11:42:43.599 [srv 1060] [Trace] Provider 'services' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.599 [srv 1060] [Trace] Provider 'df' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.599 [srv 1060] [Trace] Provider 'ps' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.599 [srv 1060] [Trace] Provider 'fileinfo' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.599 [srv 1060] [Trace] Loaded [3] entries in LogWatch
2023-11-22 11:42:43.600 [srv 1060] [Trace] Provider 'logwatch' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.600 [srv 1060] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
2023-11-22 11:42:43.600 [srv 1060] [Trace] Left [36] files to execute
2023-11-22 11:42:43.600 [srv 1060] [Trace] Provider 'mem' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.600 [srv 1060] [Trace] Sending data 'mem' id is [164688318549392] length [227]
2023-11-22 11:42:43.601 [srv 1060] perf: Section 'mem' took [0] milliseconds
2023-11-22 11:42:43.602 [srv 1060] [Trace] Left [0] files to execute in 'plugins'
2023-11-22 11:42:43.602 [srv 1060] Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
2023-11-22 11:42:43.602 [srv 1060] [Trace] Left [0] files to execute
2023-11-22 11:42:43.602 [srv 1060] [Trace] To start [0] sync plugins
2023-11-22 11:42:43.602 [srv 1060] Processed [1] fixed drives of total [2]
2023-11-22 11:42:43.602 [srv 1060] [Trace] Left [0] files to execute in 'local'
2023-11-22 11:42:43.602 [srv 1060] [Trace] Sending data 'fileinfo' id is [164688318549392] length [34]
2023-11-22 11:42:43.603 [srv 1060] perf: Section 'uptime' took [0] milliseconds
2023-11-22 11:42:43.603 [srv 1060] From ip ::ffff:10.10.80.254
2023-11-22 11:42:43.603 [srv 1060] [Trace] Provider 'plugins' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.603 [srv 1060] [Trace] Sending data 'logwatch' id is [164688318549392] length [159]
2023-11-22 11:42:43.603 [srv 1060] [Trace] Sending data 'df' id is [164688318549392] length [59]
2023-11-22 11:42:43.603 [srv 1060] perf: Section 'df' took [4] milliseconds
2023-11-22 11:42:43.603 [srv 1060] [Trace] To start [0] sync plugins
2023-11-22 11:42:43.603 [srv 1060] [Trace] Provider 'local' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.604 [srv 1060] [Trace] Provider 'wmi_webservices' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.604 [srv 1060] perf: Section 'fileinfo' took [0] milliseconds
2023-11-22 11:42:43.604 [srv 1060] [Trace] Provider 'msexch' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.604 [srv 1060] [Trace] Sending data 'plugins' id is [164688318549392] length [13]
2023-11-22 11:42:43.604 [srv 1060] perf: Section 'logwatch' took [3] milliseconds
2023-11-22 11:42:43.604 [srv 1060] [Trace] Absent/Empty node mrpe.config type is Null
2023-11-22 11:42:43.605 [srv 1060] [Trace] Provider 'mrpe' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.605 [srv 1060] [Warn ] Section 'mrpe' cannot provide data
2023-11-22 11:42:43.605 [srv 1060] [Trace] Sending data 'mrpe' id is [164688318549392] length [0]
2023-11-22 11:42:43.605 [srv 1060] Gathered 2705 bytes of winperf data
2023-11-22 11:42:43.605 [srv 1060] [Trace] Sending data 'winperf' id is [164688318549392] length [2705]
2023-11-22 11:42:43.605 [srv 1060] [Trace] Skipping 'openhardwaremonitor' by time
2023-11-22 11:42:43.605 [srv 1060] Send at port 'mail:\\.\mailslot\Global\WinAgent_0' 'success' by 'winperf' [2705]
2023-11-22 11:42:43.606 [srv 1060] [Trace] Provider 'skype' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.606 [srv 1060] perf: Section 'mrpe' took [0] milliseconds
2023-11-22 11:42:43.606 [srv 1060] [Warn ] Section 'local' cannot provide data
2023-11-22 11:42:43.606 [srv 1060] [Trace] Sending data 'local' id is [164688318549392] length [0]
2023-11-22 11:42:43.606 [srv 1060] perf: Section 'plugins' took [1] milliseconds
2023-11-22 11:42:43.606 [srv 1060] [Trace] Provider 'spool' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.606 [srv 1060] perf: Section 'local' took [2] milliseconds
2023-11-22 11:42:43.606 [srv 1060] [Err  ] OpenService 'AppHostSvc' failed [1060]
2023-11-22 11:42:43.607 [srv 1060] [Warn ] Section 'spool' cannot provide data
2023-11-22 11:42:43.607 [srv 1060] [Trace] Sending data 'spool' id is [164688318549392] length [0]
2023-11-22 11:42:43.607 [srv 1060] perf: Section 'spool' took [0] milliseconds
2023-11-22 11:42:43.607 [srv 1060] [Trace] Provider 'dotnet_clrmemory' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.607 [srv 1060] [Err  ] OpenService 'WAS' failed [1060]
2023-11-22 11:42:43.607 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeActiveSync_MSExchangeActiveSync' in 2ms sends NO DATA
2023-11-22 11:42:43.607 [srv 1060] [Trace] Provider 'agent_plugins' is about to be started, id '164688318549392' port [mail:\\.\mailslot\Global\WinAgent_0]
2023-11-22 11:42:43.607 [srv 1060] [Err  ] OpenService 'W3SVC' failed [1060]
2023-11-22 11:42:43.608 [srv 1060] [Warn ] Sub Section 'msexch_activesync' has no data to provide, status = [2]
2023-11-22 11:42:43.608 [srv 1060] [Trace] Sending data 'agent_plugins' id is [164688318549392] length [130]
2023-11-22 11:42:43.608 [srv 1060] [Warn ] Section 'wmi_webservices' cannot provide data
2023-11-22 11:42:43.608 [srv 1060] [Trace] Sending data 'wmi_webservices' id is [164688318549392] length [0]
2023-11-22 11:42:43.608 [srv 1060] perf: Section 'agent_plugins' took [0] milliseconds
2023-11-22 11:42:43.608 [srv 1060] perf: Section 'wmi_webservices' took [4] milliseconds
2023-11-22 11:42:43.613 [srv 1060] [Warn ] Bad creation date from WMI ''
2023-11-22 11:42:43.614 [srv 1060] [Warn ] Can't determine creation time of the process 'System Idle Process'
2023-11-22 11:42:43.614 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeAvailabilityService_MSExchangeAvailabilityService' in 6ms sends NO DATA
2023-11-22 11:42:43.614 [srv 1060] [Warn ] Sub Section 'msexch_availability' has no data to provide, status = [2]
2023-11-22 11:42:43.618 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeOWA_MSExchangeOWA' in 3ms sends NO DATA
2023-11-22 11:42:43.618 [srv 1060] [Warn ] Sub Section 'msexch_owa' has no data to provide, status = [2]
2023-11-22 11:42:43.620 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Address Book Web Query'
2023-11-22 11:42:43.620 [srv 1060] Received [373] bytes from 'wmi_cpuload'
2023-11-22 11:42:43.620 [srv 1060] Object 'Win32_PerfRawData_NETFramework_NETCLRMemory' in 13ms sends [745] bytes
2023-11-22 11:42:43.621 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeAutodiscover_MSExchangeAutodiscover' in 2ms sends NO DATA
2023-11-22 11:42:43.621 [srv 1060] [Trace] Sending data 'dotnet_clrmemory' id is [164688318549392] length [789]
2023-11-22 11:42:43.621 [srv 1060] [Warn ] Sub Section 'msexch_autodiscovery' has no data to provide, status = [2]
2023-11-22 11:42:43.621 [srv 1060] perf: Section 'dotnet_clrmemory' took [13] milliseconds
2023-11-22 11:42:43.623 [srv 1060] [Trace] Sending data 'services' id is [164688318549392] length [6933]
2023-11-22 11:42:43.623 [srv 1060] [Trace] Sending data 'ps' id is [164688318549392] length [2871]
2023-11-22 11:42:43.623 [srv 1060] perf: Section 'services' took [23] milliseconds
2023-11-22 11:42:43.623 [srv 1060] perf: Section 'ps' took [23] milliseconds
2023-11-22 11:42:43.623 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeISClientType_MSExchangeISClientType' in 2ms sends NO DATA
2023-11-22 11:42:43.623 [srv 1060] [Warn ] Sub Section 'msexch_isclienttype' has no data to provide, status = [2]
2023-11-22 11:42:43.626 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeISStore_MSExchangeISStore' in 2ms sends NO DATA
2023-11-22 11:42:43.626 [srv 1060] [Warn ] Sub Section 'msexch_isstore' has no data to provide, status = [2]
2023-11-22 11:42:43.627 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Address Book File Download'
2023-11-22 11:42:43.628 [srv 1060] [Warn ] Object 'Win32_PerfRawData_MSExchangeRpcClientAccess_MSExchangeRpcClientAccess' in 2ms sends NO DATA
2023-11-22 11:42:43.629 [srv 1060] [Warn ] Sub Section 'msexch_rpcclientaccess' has no data to provide, status = [2]
2023-11-22 11:42:43.629 [srv 1060] [Warn ] Section 'msexch' cannot provide data
2023-11-22 11:42:43.629 [srv 1060] [Trace] Sending data 'msexch' id is [164688318549392] length [0]
2023-11-22 11:42:43.629 [srv 1060] perf: Section 'msexch' took [24] milliseconds
2023-11-22 11:42:43.631 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Location Information Service'
2023-11-22 11:42:43.634 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Distribution List Expansion'
2023-11-22 11:42:43.637 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - UCWA'
2023-11-22 11:42:43.640 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Mobile Communication Service'
2023-11-22 11:42:43.643 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Throttling and Authentication'
2023-11-22 11:42:43.646 [srv 1060] [Trace] Key value cannot be processed 'LS:WEB - Auth Provider related calls'
2023-11-22 11:42:43.649 [srv 1060] [Trace] Key value cannot be processed 'LS:SIP - Protocol'
2023-11-22 11:42:43.651 [srv 1060] Received [147] bytes from 'uptime'
2023-11-22 11:42:43.652 [srv 1060] [Trace] Key value cannot be processed 'LS:SIP - Responses'
2023-11-22 11:42:43.655 [srv 1060] [Trace] Key value cannot be processed 'LS:SIP - Peers'
2023-11-22 11:42:43.658 [srv 1060] [Trace] Key value cannot be processed 'LS:SIP - Load Management'
2023-11-22 11:42:43.661 [srv 1060] [Trace] Key value cannot be processed 'LS:SIP - Authentication'
2023-11-22 11:42:43.664 [srv 1060] [Trace] Key value cannot be processed 'LS:CAA - Operations'
2023-11-22 11:42:43.667 [srv 1060] [Trace] Key value cannot be processed 'LS:DATAMCU - MCU Health And Performance'
2023-11-22 11:42:43.670 [srv 1060] [Trace] Key value cannot be processed 'LS:AVMCU - MCU Health And Performance'
2023-11-22 11:42:43.673 [srv 1060] [Trace] Key value cannot be processed 'LS:AsMcu - MCU Health And Performance'
2023-11-22 11:42:43.676 [srv 1060] [Trace] Key value cannot be processed 'LS:ImMcu - MCU Health And Performance'
2023-11-22 11:42:43.679 [srv 1060] [Trace] Key value cannot be processed 'LS:USrv - DBStore'
2023-11-22 11:42:43.682 [srv 1060] [Trace] Key value cannot be processed 'LS:USrv - Conference Mcu Allocator'
2023-11-22 11:42:43.682 [srv 1060] Received [355] bytes from 'mem'
2023-11-22 11:42:43.685 [srv 1060] [Trace] Key value cannot be processed 'LS:JoinLauncher - Join Launcher Service Failures'
2023-11-22 11:42:43.688 [srv 1060] [Trace] Key value cannot be processed 'LS:MediationServer - Health Indices'
2023-11-22 11:42:43.691 [srv 1060] [Trace] Key value cannot be processed 'LS:MediationServer - Global Counters'
2023-11-22 11:42:43.694 [srv 1060] [Trace] Key value cannot be processed 'LS:MediationServer - Global Per Gateway Counters'
2023-11-22 11:42:43.697 [srv 1060] [Trace] Key value cannot be processed 'LS:MediationServer - Media Relay'
2023-11-22 11:42:43.700 [srv 1060] [Trace] Key value cannot be processed 'LS:A/V Auth - Requests'
2023-11-22 11:42:43.703 [srv 1060] [Trace] Key value cannot be processed 'LS:DATAPROXY - Server Connections'
2023-11-22 11:42:43.706 [srv 1060] [Trace] Key value cannot be processed 'LS:XmppFederationProxy - Streams'
2023-11-22 11:42:43.709 [srv 1060] [Trace] Key value cannot be processed 'LS:A/V Edge - TCP Counters'
2023-11-22 11:42:43.712 [srv 1060] [Trace] Key value cannot be processed 'LS:A/V Edge - UDP Counters'
2023-11-22 11:42:43.712 [srv 1060] [Warn ] Section 'skype' cannot provide data
2023-11-22 11:42:43.712 [srv 1060] [Trace] Sending data 'skype' id is [164688318549392] length [0]
2023-11-22 11:42:43.712 [srv 1060] perf: Section 'skype' took [106] milliseconds
2023-11-22 11:42:43.713 [srv 1060] Received [162] bytes from 'fileinfo'
2023-11-22 11:42:43.745 [srv 1060] Received [287] bytes from 'logwatch'
2023-11-22 11:42:43.776 [srv 1060] Received [187] bytes from 'df'
2023-11-22 11:42:43.807 [srv 1060] Received [141] bytes from 'plugins'
2023-11-22 11:42:43.838 [srv 1060] Received [128] bytes from 'mrpe'
2023-11-22 11:42:43.870 [srv 1060] Received [2833] bytes from 'winperf'
2023-11-22 11:42:43.901 [srv 1060] Received [128] bytes from 'local'
2023-11-22 11:42:43.932 [srv 1060] Received [128] bytes from 'spool'
2023-11-22 11:42:43.963 [srv 1060] Received [258] bytes from 'agent_plugins'
2023-11-22 11:42:43.995 [srv 1060] Received [128] bytes from 'wmi_webservices'
2023-11-22 11:42:44.026 [srv 1060] Received [917] bytes from 'dotnet_clrmemory'
2023-11-22 11:42:44.057 [srv 1060] Received [7061] bytes from 'services'
2023-11-22 11:42:44.089 [srv 1060] Received [2999] bytes from 'ps'
2023-11-22 11:42:44.120 [srv 1060] Received [128] bytes from 'msexch'
2023-11-22 11:42:44.151 [srv 1060] Received [128] bytes from 'skype'
2023-11-22 11:42:44.151 [srv 1060] perf: Answer is ready in [560] milliseconds
2023-11-22 11:42:44.276 [srv 1060] Send [15465] bytes of data to [Global\WinAgentCtl_1112_1316_0] - OK
2023-11-22 11:42:44.370 [ctl:1112] [cmk_agent_ctl::modes::pull][DEBUG] processed task!
2023-11-22 11:42:44.401 [ctl:1112] [cmk_agent_ctl::modes::pull][WARN] [::ffff:10.10.80.254]:48604: Request failed. (An existing connection was forcibly closed by the remote host. (os error 10054))
2023-11-22 13:58:56.936 [ctl:1112] [cmk_agent_ctl::modes::renew_certificate][DEBUG] Checking registered connections for certificate expiry.

hmm, that looks all good. Please run the following command as site user on the checkmk server:

cmk -D <HOSTNAME>

Thanks.

I am prompted for a password when attempting to ‘su’ to the site user. However, I do not recall specifying a password for the site user during installation. Is it safe to set a password in the Linux CLI now?

rvrlx

Usually you would just use sudo or root to switch user by using omd

sudo omd su <SITENAME>

but you can also set a password if you like.

1 Like

Gotcha. Thanks!

Here is the output:

~$ cmk -D 10.10.80.252

10.10.80.252                                                                   
Addresses:              10.10.80.252
Tags:                   [address_family:ip-v4-only], [agent:cmk-agent], [criticality:prod], [networking:lan], [piggyback:auto-piggyback], [site:checkmk_ngms], [snmp_ds:no-snmp]
Labels:                 [cmk/site:checkmk_ngms]
Host groups:            check_mk
Contact groups:         check-mk-notify
Agent mode:             No agent
Type of agent:          
  Process piggyback data from /omd/sites/checkmk_ngms/tmp/check_mk/piggyback/10.10.80.252
  PING only
Services:
  checktype item params description groups
  --------- ---- ------ ----------- ------

Your host is set to “No Agent”. This means that checkmk will only Ping this host. To use the agent as data source you need to select the first dropdown option from “Checkmk agent / API integrations” as shown in the screenshot below.

1 Like

But it is configured to use the agent in the GUI. See the screen dump for my setup.

Screenshot from 2023-11-23 13-03-26

please use the hostname instead of a IP for executing the commands.

cmk -D cpt-ngms-win-lab
cmk --debug -vvn cpt-ngms-win-lab

OK. Here you go.

:~$ cmk -D cpt-ngms-win-lab

cpt-ngms-win-lab                                                               
Addresses:              10.10.80.252
Tags:                   [address_family:ip-v4-only], [agent:cmk-agent], [checkmk-agent:checkmk-agent], [criticality:prod], [if_alias_desc:if_alias], [ip-v4:ip-v4], [networking:lan], [piggyback:auto-piggyback], [site:checkmk_ngms], [snmp_ds:no-snmp], [tcp:tcp]
Labels:                 [cmk/site:checkmk_ngms]
Host groups:            check_mk
Contact groups:         check-mk-notify, all
Agent mode:             Normal Checkmk agent, or special agent if configured
Type of agent:          
  Program: /omd/sites/checkmk_ngms/share/check_mk/agents/special/agent_ipmi_sensors 10.10.80.252 ipmiuser ipmiuser ipmitool user --intf lanplus
  Process piggyback data from /omd/sites/checkmk_ngms/tmp/check_mk/piggyback/cpt-ngms-win-lab
Services:
  checktype item params description groups
  --------- ---- ------ ----------- ------
:~$ cmk --debug -vvn cpt-ngms-win-lab
Checkmk version 2.2.0p11
+ FETCHING DATA
  Source: SourceInfo(hostname='cpt-ngms-win-lab', ipaddress='10.10.80.252', ident='special_ipmi_sensors', fetcher_type=<FetcherType.SPECIAL_AGENT: 6>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f69767d4350]
Read from cache: AgentFileCache(cpt-ngms-win-lab, path_template=/omd/sites/checkmk_ngms/tmp/check_mk/data_source_cache/special_ipmi_sensors/{hostname}, max_age=MaxAge(checking=0, discovery=120, inventory=120), simulation=False, use_only_cache=False, file_cache_mode=6)
Not using cache (does not exist)
[ProgramFetcher] Execute data source
Calling: /omd/sites/checkmk_ngms/share/check_mk/agents/special/agent_ipmi_sensors 10.10.80.252 ipmiuser ipmiuser ipmitool user --intf lanplus
[cpu_tracking] Stop [7f69767d4350 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.26, children_system=0.05, elapsed=40.62999999988824))]
  Source: SourceInfo(hostname='cpt-ngms-win-lab', ipaddress='10.10.80.252', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f69767d4390]
Read from cache: NoCache(cpt-ngms-win-lab, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[PiggybackFetcher] Execute data source
No piggyback files for 'cpt-ngms-win-lab'. Skip processing.
No piggyback files for '10.10.80.252'. Skip processing.
[cpu_tracking] Stop [7f69767d4390 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  HostKey(hostname='cpt-ngms-win-lab', source_type=<SourceType.HOST: 1>)  -> Not adding sections: Agent exited with code 1: ERROR: 'Error: Unable to establish IPMI v2 / RMCP+ session
, Error: Unable to establish IPMI v2 / RMCP+ session
'.
  HostKey(hostname='cpt-ngms-win-lab', source_type=<SourceType.HOST: 1>)  -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7f6979de1290]
value store: synchronizing
Trying to acquire lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/cpt-ngms-win-lab
Got lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/cpt-ngms-win-lab
value store: loading from disk
Releasing lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/cpt-ngms-win-lab
Released lock on /omd/sites/checkmk_ngms/tmp/check_mk/counters/cpt-ngms-win-lab
+ EXECUTING INVENTORY PLUGINS
 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: skipped (no data)
 check_mk: skipped (no data)
 checkmk_agent_plugins: skipped (no data)
 checkmk_agent_plugins: skipped (no data)
 cisco_meraki_org_device_info: skipped (no data)
 cisco_meraki_org_device_info: skipped (no data)
 dell_hw_info: skipped (no data)
 dell_hw_info: 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_mem: skipped (no data)
 hp_proliant_mem: 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)
 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: skipped (no data)
 inv_if: 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)
 azure_load_balancer: skipped (no data)
 azure_load_balancer: skipped (no data)
 inventory_checkmk: skipped (no data)
 inventory_checkmk: skipped (no data)
 checkpoint_vpn_tunnels: skipped (no data)
 checkpoint_vpn_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)
 dmidecode: skipped (no data)
 dmidecode: 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)
 inventory_docker_container_node_name: skipped (no data)
 inventory_docker_container_node_name: skipped (no data)
 docker_node_images: skipped (no data)
 docker_node_images: skipped (no data)
 docker_node_network: skipped (no data)
 docker_node_network: skipped (no data)
 enviromux_micro_information: skipped (no data)
 enviromux_micro_information: 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)
 fortiauthenticator_system: skipped (no data)
 fortiauthenticator_system: skipped (no data)
 fortigate_ha: skipped (no data)
 fortigate_ha: skipped (no data)
 fortimail_system: skipped (no data)
 fortimail_system: skipped (no data)
 fortinet_firewall_network_interfaces: skipped (no data)
 fortinet_firewall_network_interfaces: skipped (no data)
 fortisandbox_software: skipped (no data)
 fortisandbox_software: skipped (no data)
 fortisandbox_system: skipped (no data)
 fortisandbox_system: skipped (no data)
 ipmi_firmware: skipped (no data)
 ipmi_firmware: skipped (no data)
 k8s_service_info: skipped (no data)
 k8s_service_info: skipped (no data)
 kube_cluster: skipped (no data)
 kube_cluster: skipped (no data)
 kube_cronjob: skipped (no data)
 kube_cronjob: skipped (no data)
 kube_daemonset: skipped (no data)
 kube_daemonset: skipped (no data)
 kube_deployment: skipped (no data)
 kube_deployment: skipped (no data)
 kube_namespace: skipped (no data)
 kube_namespace: skipped (no data)
 kube_node: skipped (no data)
 kube_node: skipped (no data)
 kube_pod: skipped (no data)
 kube_pod: skipped (no data)
 kube_statefulset: skipped (no data)
 kube_statefulset: skipped (no data)
 lnx_block_devices: skipped (no data)
 lnx_block_devices: 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_video: skipped (no data)
 lnx_video: skipped (no data)
 mobileiron_inventory: skipped (no data)
 mobileiron_inventory: skipped (no data)
 mssql_clusters: skipped (no data)
 mssql_clusters: skipped (no data)
 oracle_systemparameter: skipped (no data)
 oracle_systemparameter: skipped (no data)
 primekey: skipped (no data)
 primekey: skipped (no data)
 snmp_extended_info: skipped (no data)
 snmp_extended_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_cpus: skipped (no data)
 solaris_cpus: skipped (no data)
 solaris_routes: skipped (no data)
 solaris_routes: skipped (no data)
 statgrab_net: skipped (no data)
 statgrab_net: skipped (no data)
 win_bios: skipped (no data)
 win_bios: 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_reg_uninstall: skipped (no data)
 win_reg_uninstall: 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)
 juniper_info: skipped (no data)
 juniper_info: skipped (no data)
 k8s_pod_container: skipped (no data)
 k8s_pod_container: 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_uname: skipped (no data)
 lnx_uname: skipped (no data)
 lparstat_aix: skipped (no data)
 lparstat_aix: skipped (no data)
 mem: skipped (no data)
 mem: skipped (no data)
 mem_used: skipped (no data)
 mem_used: skipped (no data)
 mssql_instance: skipped (no data)
 mssql_instance: 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_tablespaces: skipped (no data)
 oracle_tablespaces: 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_quantum_storage_info: skipped (no data)
 snmp_quantum_storage_info: skipped (no data)
 snmp_info: skipped (no data)
 snmp_info: skipped (no data)
 solaris_prtdiag: skipped (no data)
 solaris_prtdiag: skipped (no data)
 solaris_uname: skipped (no data)
 solaris_uname: skipped (no data)
 suseconnect: skipped (no data)
 suseconnect: skipped (no data)
 win_computersystem: skipped (no data)
 win_computersystem: skipped (no data)
 win_cpuinfo: skipped (no data)
 win_cpuinfo: skipped (no data)
 win_os: skipped (no data)
 win_os: skipped (no data)
 win_system: skipped (no data)
 win_system: skipped (no data)
 winperf_if: skipped (no data)
 winperf_if: skipped (no data)
No piggyback files for 'cpt-ngms-win-lab'. Skip processing.
No piggyback files for '10.10.80.252'. Skip processing.
[cpu_tracking] Stop [7f6979de1290 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.02000000048428774))]
[special_ipmi_sensors] '.(!!), [piggyback] Success (but no data found for this host), execution time 40.7 sec | execution_time=40.650 user_time=0.020 system_time=0.000 children_user_time=0.260 children_system_time=0.050 cmk_time_ds=40.310 cmk_time_agent=0.000
Agent exited with code 1: ERROR: 'Error: Unable to establish IPMI v2 / RMCP+ session
, Error: Unable to establish IPMI v2 / RMCP+ session
'.(!!)

you have configured a special agent for this host so the normal agent keeps getting skipped.

Agent mode: Normal Checkmk agent, or special agent if configured
Type of agent:
Program: /omd/sites/checkmk_ngms/share/check_mk/agents/special/agent_ipmi_sensors 10.10.80.252 ipmiuser ipmiuser ipmitool user --intf lanplus

Solution:
Either set the option to “Configured API integrations and Checkmk agent” or remove that Special Agent config.

1 Like

In addition to @SvenH your configured special agent cannot fetch any data.

A-Ha! That was it. Problem resolved! Thank you so much. This had me pulling out my hair.

Agent = Success!

Thanks for the message.

Yes. This special agent is applied via a rule that is applied to an upstream folder, but is actually irrelevant to the Windows virtual machines. This setup is due to poor planning on my side. I am new to this app, I am learning as I go. For now, I’ve updated the rule to exclude this particular VM. However, I will have to redo my folder layout.

Does your windows virtual servers have a specific host label? If so and you want to keep the same existing folder set up you could just re configure the rule to exclude host label “whatever the host label is for the virtual servers” meaning the folder set up can remain the same but the rule will not apply to windows virtual servers.

The above is the same in theory as to what you have just done by excluding a host, however rather than exclude potentially a lot of hosts it will do it across your whole site.

1 Like

Thanks for the advice @Newtocheck . I have not defined any labeIs, yet. However, your suggestion makes more sense compared to having to explicitly exclude every host. I will do that instead. Thanks!

rvrlx

1 Like

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.