Hi all,
I’m trying to monitor the number of connections for all states for my Linux and my Windows servers. On Linux, everything is OK. I can see the number of connections for all states but for Windows, I only had “Established” state.
So my question is : how to monitor number of connections for ALL states in a Windows server ?
Thanks for your help
CMK version:
2.2.0p21
OS version:
Windows 2019 Datacenter
Error message:
None. With the check_mk agent and the plugin netstat_an.bat, only “Established” state is showing in perf data even if there are others states in the output of .
Output of “cmk --debug -vvn hostname”:
OMD[MySite1]:~$ cmk --debug -vvn MySERVER1
Checkmk version 2.2.0p21
+ FETCHING DATA
Source: SourceInfo(hostname='MySERVER1', ipaddress='10.0.0.1', ident='agent', fetcher_type=<FetcherType.TCP: 8>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7fd8c7e65fd0]
Read from cache: AgentFileCache(MySERVER1, path_template=/omd/sites/MySite1/tmp/check_mk/cache/{hostname}, max_age=MaxAge(checking=0, discovery=90.0, inventory=90.0), simulation=False, use_only_cache=False, file_cache_mode=6)
Not using cache (Too old. Age is 52 sec, allowed is 0 sec)
[TCPFetcher] Execute data source
Connecting via TCP to 10.0.0.1:6556 (10.0s timeout)
Detected transport protocol: TransportProtocol.TLS (b'16')
Reading data from agent via TLS socket
Reading data from agent
Detected transport protocol: TransportProtocol.PLAIN (b'<<')
Closing TCP connection to 10.0.0.1:6556
Write data to cache file /omd/sites/MySite1/tmp/check_mk/cache/MySERVER1
Trying to acquire lock on /omd/sites/MySite1/tmp/check_mk/cache/MySERVER1
Got lock on /omd/sites/MySite1/tmp/check_mk/cache/MySERVER1
Releasing lock on /omd/sites/MySite1/tmp/check_mk/cache/MySERVER1
Released lock on /omd/sites/MySite1/tmp/check_mk/cache/MySERVER1
[cpu_tracking] Stop [7fd8c7e65fd0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=1.2300000004470348))]
+ PARSE FETCHER RESULTS
<<<check_mk>>> / Transition NOOPParser -> HostSectionParser
<<<cmk_agent_ctl_status:sep(0)>>> / Transition HostSectionParser -> HostSectionParser
<<<wmi_cpuload:sep(124)>>> / Transition HostSectionParser -> HostSectionParser
<<<uptime>>> / Transition HostSectionParser -> HostSectionParser
<<<winperf_phydisk>>> / Transition HostSectionParser -> HostSectionParser
<<<winperf_if>>> / Transition HostSectionParser -> HostSectionParser
<<<winperf_processor>>> / Transition HostSectionParser -> HostSectionParser
<<<winperf_tcp_conn>>> / Transition HostSectionParser -> HostSectionParser
<<<mem>>> / Transition HostSectionParser -> HostSectionParser
<<<fileinfo:sep(124)>>> / Transition HostSectionParser -> HostSectionParser
<<<df:sep(9)>>> / Transition HostSectionParser -> HostSectionParser
<<<logwatch>>> / Transition HostSectionParser -> HostSectionParser
<<<services>>> / Transition HostSectionParser -> HostSectionParser
<<<checkmk_agent_plugins_win:sep(0)>>> / Transition HostSectionParser -> HostSectionParser
<<<wmi_webservices:sep(124)>>> / Transition HostSectionParser -> HostSectionParser
<<<dotnet_clrmemory:sep(124)>>> / Transition HostSectionParser -> HostSectionParser
<<<ps:sep(9)>>> / Transition HostSectionParser -> HostSectionParser
Transition HostSectionParser -> NOOPParser
<<<win_netstat>>> / Transition NOOPParser -> HostSectionParser
Transition HostSectionParser -> NOOPParser
<<<systemtime>>> / Transition NOOPParser -> HostSectionParser
HostKey(hostname='MySERVER1', source_type=<SourceType.HOST: 1>) -> Add sections: ['check_mk', 'checkmk_agent_plugins_win', 'cmk_agent_ctl_status', 'df', 'dotnet_clrmemory', 'fileinfo', 'logwatch', 'mem', 'ps', 'services', 'systemtime', 'uptime', 'win_netstat', 'winperf_if', 'winperf_phydisk', 'winperf_processor', 'winperf_tcp_conn', 'wmi_cpuload', 'wmi_webservices']
Received no piggyback data
[cpu_tracking] Start [7fd8c7e8cd10]
value store: synchronizing
Trying to acquire lock on /omd/sites/MySite1/tmp/check_mk/counters/MySERVER1
Got lock on /omd/sites/MySite1/tmp/check_mk/counters/MySERVER1
value store: loading from disk
Releasing lock on /omd/sites/MySite1/tmp/check_mk/counters/MySERVER1
Released lock on /omd/sites/MySite1/tmp/check_mk/counters/MySERVER1
CPU utilization Total CPU: 4.56%
Check_MK Agent Version: 2.2.0p21, OS: windows, Agent plugins: 1, Local checks: 0
Disk IO SUMMARY Read: 1.22 kB/s, Write: 47.5 kB/s, Latency: 339 microseconds
Filesystem C:/ Used: 29.97% - 29.8 GiB of 99.4 GiB, trend per 1 day 0 hours: -11.3 MiB, trend per 1 day 0 hours: -0.01%
Filesystem D:/ Used: 0.54% - 111 MiB of 20.0 GiB, trend per 1 day 0 hours: +2.59 MiB, trend per 1 day 0 hours: +0.01%, Time left until disk full: 21 years 193 days
Filesystem E:/ Used: 1.91% - 196 MiB of 9.98 GiB, trend per 1 day 0 hours: -65.8 KiB, trend per 1 day 0 hours: -0.00%
Interface 1 [Adaptateur Ethernet vmxnet3], (Connected), Speed: 10 GBit/s, In: 49.2 kB/s (<0.01%), Out: 49.6 kB/s (<0.01%)
Memory RAM: 77.63% - 3.10 GiB of 4.00 GiB, Commit charge: 72.15% - 3.53 GiB of 4.89 GiB
Processor Queue 15 min load: 0.26, 15 min load per core: 0.13 (2 logical cores)
System Time Offset: -463 milliseconds
TCP Connection Eth0 Matching entries found: 124
TCP Connections Established: 18
Uptime Up since Mar 20 2024 04:48:27, Uptime: 26 days 11 hours
Web Service My_WebSite_1 Connections: 0.06
[cpu_tracking] Stop [7fd8c7e8cd10 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.019999999552965164))]
[agent] Success, execution time 1.2 sec | execution_time=1.250 user_time=0.010 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=1.230