cacti-0.8.7i监控TCP连接

  • 在目标机器上,解压附件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,使用新模板在目标机器上创建图像。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值