To add on
- Make sure that netstat_an.bat is in the right plugin directory.
- We can check the plugin directory simply by doing a telnet. telnet [monitored server ip or fqdn] 6556
- Take note of the line : ‘PluginsDirectory: C:\ProgramData\checkmk\agent\plugins’, we can place the netstat_an.bat plugin here instead. Setup everything on Enforced Services.
Extra: If the plugin works correctly, doing telnet again will return the netstat infos.
Kudos to the team for this awesome plugin, saves a lot of my time