CMK version: 1.6.0p27
OS version: Windows 2008 R2 / Windows 2012 R2
Hello everyone,
Im having trouble find out where to look to fix this:
We have some windows servers (doesnt seems to be related to specific O.S. version) that the agent output is not showing the LOCAL scripts.
When we run the test locally (PS C:\Program Files (x86)\checkmk\service> .\check_mk_agent.exe test) , everything is fine.We can see the local scripts. Ex;
TCP [fe80::5efe:10.233.202.14%13]:45000 [::]:0 LISTENING
<<<>>>
<<<local>>>
0 Check_Dns - OK - velocity.vcamp.io is resolving correctly
0 check_ec2scheduled - No scheduled events
0 check_mcollective - mcollective is health
0 PuppetCheck - OK - puppet agent service is running
<<<systemtime>>>
1655919143
PS C:\Program Files (x86)\checkmk\service>
Now if we run the command from the cmk server or any other server: (telnet servername 6556)
The LOCAL section is gone Ex:
TCP [fe80::5efe:10.233.202.14%13]:19101 [::]:0 LISTENING
TCP [fe80::5efe:10.233.202.14%13]:28080 [::]:0 LISTENING
TCP [fe80::5efe:10.233.202.14%13]:45000 [::]:0 LISTENING
<<<>>>
<<<>>>
<<<systemtime>>>
1655919843
Connection closed by foreign host.
[root@cmkcore0005 ~]# telnet c24m0051 6556
On cmk Dashboard, we see this output:
WARN - [agent] Version: 1.6.0p20, OS: windows, Missing agent sections: local WARN, execution time 1.3 sec
The discovery also doesnt find it:
OMD[default]:~$ cmk -vII c24m0051.aws.vtscloud.io
WARNING: Found rules for deprecated ruleset 'inventory_services'. These rules are not applied anymore. In case you still need them, you need to migrate them by hand. Otherwise you can remove them from your configuration.
Discovering services on: c24m0051.aws.vtscloud.io
c24m0051.aws.vtscloud.io:
+ FETCHING DATA
[agent] Execute data source
[piggyback] Execute data source
No piggyback files for 'c24m0051.aws.vtscloud.io'. Skip processing.
No piggyback files for '10.233.202.14'. Skip processing.
+ EXECUTING DISCOVERY PLUGINS (1756)
ps.perf does not support discovery. Skipping it.
win_netstat does not support discovery. Skipping it.
2 df
1 mem.win
1 services.summary
1 systemtime
1 uptime
2 winperf_if
2 winperf_phydisk
1 winperf_processor.util
1 wmi_cpuload
SUCCESS - Found 12 services, no host labels
OMD[default]:~$
We have checked the logs and nothing seems off.
We also tried to compare from any other server that is working fine but was not able to find anything so far.
Is worth mention that we started to see this when we upgraded the agents from 1.5.0 version.
He keeps the old version disabled but on some servers we have uninstalled the older version and got the same behavior.
So that makes us believe is not related but we are not sure.
Any help would be appreciated.
Thank you