How-to monitor TCP/UDP ports
LAST TESTED ON CHECKMK 2.3.0P1
Active checks
We do provide some active checks to monitor the functionality of applications like DNS/HTML. For more information, read the Active Checks section of the documentation.
Agent Plugin "Established TCP/UDP connections."
We do provide a netstat plugin collecting the network statistics. To configure the plugin, you have two ways:
Manual Configuration
Copy the corresponding plugin to the monitored host as described in the documentation:
./share/check_mk/agents/plugins/netstat.solaris ./share/check_mk/agents/plugins/netstat.aix ./share/check_mk/agents/plugins/netstat.linux ./share/check_mk/agents/windows/plugins/netstat_an.bat
By Using the Agent Bakery
Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Established TCP/UDP connections → New rule:
Next, bake the new agent and to install it on the monitored host.
Start monitoring the ports
After the plugin is in place, you now need to configure the corresponding service rule. In that case, it's an enforced service.
Setup → Services → Enforced services → Monitor specific TCP/UDP connections and listeners → New rule: