The Transmission Control Protocol is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol. Therefore, the entire suite is commonly referred to as TCP/IP.
Starting from the template that they published in:https://systembash.com/track-tcp-and-udp-connections-with-zabbix/I have modified the parameters for use in Windows. For it to work, add the following lines in UserParameter of zabbix_agent.confUserParameter=sockstat.sockets, netstat -ano | find /V "hola" /CUserParameter=sockstat.tcp.inuse, netstat -ano | findstr ESTABLISHEDUserParameter=sockstat.tcp.inuse.count, netstat -ano | find /C "ESTABLISHED"UserParameter=sockstat.tcp.orphan, netstat -ano | findstr CLOSE_WAITUserParameter=sockstat.tcp.orphan.count, netstat -ano | find /C "CLOSE_WAIT"UserParameter=sockstat.tcp.timewait, netstat -ano | findstr TIME_WAITUserParameter=sockstat.tcp.timewait.count, netstat -ano | find /C "TIME_WAIT"UserParameter=sockstat.tcp.allocated, netstat -ano | findstr LISTENINGUserParameter=sockstat.tcp.allocated.count, netstat -ano | find /C "LISTENING"UserParameter=sockstat.udp.inuse, netstat -ano | findstr UDPUserParameter=sockstat.udp.inuse.count, netstat -ano | find /C "UDP"Restart Zabbix agent
zabbix loadable module for aggregating TCP sessions
TCP Connection Status