ITeye博客

cacti-0.8.7i监控TCP连接

willvvv · 2012-06-04 14:13 · Cacti · 开源软件 · Markdown

  • 在目标机器上,解压附件tcp_stats.zip

1. 复制 netstat.py 到 /usr/local/bin/
2. 复制 netstat 到 /etc/cron.d/ (确保 crond 被安装并且运行正确)
3. 安装以下软件:yum install net-snmp net-snmp-devel net-snmp-utils
4. 编辑 /etc/snmp/snmpd.conf, 添加下面内容:
pass .1.3.6.1.3.2 /usr/bin/python /usr/local/bin/netstat.py
(You should change snmp OID (.1.3.6.1.3.2) to other if your system is used it and change in the script netstat.py also. Check if python is installed on your server)
5.重启 service snmpd restart

 

  • 在Cacti机器上

1.引入图像模版cacti_graph_template_snmp_-_zing_tcp_stats.xml,使用新模板在目标机器上创建图像。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。