Ad Widget

Collapse

how to count number of connections on a tcp/ip port on a windows server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CaptainRobThe1st
    Junior Member
    • Jul 2021
    • 2

    #1

    how to count number of connections on a tcp/ip port on a windows server?

    Hi,
    i know that with the dos command:
    netstat -a -n | find /c "9999"

    you can get a count of the number of lines that have "9999" portnumber in them
    i am trying to get that information within zabbix.
    i have modified the conf file to include UserParameter=Key[*],netstat -a -n | find /c "9999"
    and then i added an item and a trigger for it
    but the values remain empty (checked manually on command prompt, there is a value)

    anyone any ideas on how to get these values shown within zabbix?

    Zabbix: 5.4
    Server: Ubuntu 20.04
    Web: Apache2

    Target server: Windows2016 server, windows zabbix agent

    Any feedback is highly appreciated :-).
    Rob
Working...