wget https://www.haiyun.me/download/tcp-connections.zip
unzip tcp-connections.zip
修改get_tcp_connections脚本目录:
CACTIDIR=/cactipath/scripts
修改cacti_graph_template_tcp_connections.xml模板内脚本路径:
/bin/bash /var/www/htdocs/cacti/scripts/get_tcp_connections
然后在Cacti界面导入cacti_graph_template_tcp_connections.xml模板。
TCP连接状态监控效果如下: