用脚本监控windows tcp的连接数,这个更全面一点,个人倾向用脚本监控。

在windows上手动获得tcp连接数的命令为:

netstat -an | findstr TCP | find /C "TIME_WAIT"  
netstat -an | find /C "TIME_WAIT"
#这两条命令效果是一样的
 

编辑zabbix agent端的zabbix_agent.conf配置文件:

UnsafeUserParameters=1
UserParameter=tcp.status[*],netstat -an | find /C "$1"
 

 

重启zabbix—agent:

 

导入模板,模板我已做好,在附件中,导入即可使用。

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-12-17
  • 2021-09-20
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2021-09-10
  • 2021-06-19
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案