zabbix监控tcp的11种状态

  监控tcp的11种状态 一、编写shell脚本,传递参数,根据参数返回结果shell #!/bin/bash metric=$1 tmp_file=/tmp/tcp_status.txt /bin/netstat -an|awk '/^tcp/{++S[$NF]}END{for(a in S) print a,S[a]}' > $tmp_file case $metric in c
相关文章
相关标签/搜索