3、linux客户端配置(RHEL AS 5)

直接编译安装net-snmp安装包。

  1. #mkdir /etc/snmp  
  2.  
  3. #vi /etc/snmp.conf  
  4.  
  5. syslocation hunaisyscontact testrocommunity cssl#123  
  6.  
  7. #/opt/snmp/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a -c /etc/snmp/snmpd.conf启动  
  8.  
  9. #netstat -naup  
  10.  

udp 0 0 0.0.0.0:161 0.0.0.0:* 12501/snmpd

4、一般说来,图片的流量统计描述都是 |host_description| - Traffic - |query_ifName| 按照这个形式来描述的,对于华为的设备,Gi显示成GigabitEthernet,可能导致后面的模块号,端口好无法显示。如 GigabitEthernet4/3/2显示成GigabitEthernet,解决办法:Console -> Settings -> Visual -> Maximum Field Length: 默认 15,我修改成30就OK了。The maximum number of characters to display for a data query field.

5、对于Traffic 大于800Mbits/s的无法显示问题,在创建graph前修改 Data Templates -> Interface Traffic -> 1: traffic_in -> Maximum Value Use Per-Data Source Value 默认是100000000 后面再添 几个0就OK了,同样 2: traffic_out也要修改哦,最好在使用new graph创建新的graph之前修改后,否则之后修改会有一定的麻烦,甚至无法正常工作。本文来自:http://msplinks.com.cn/MDFodHRwOi8vZG9jLmxpbnV4cGsuY29tLzYzNy5odG1s

6、cacti常用工具命令:

  1. #rrdtool fetch ahtt_huainan_222_48_255_10_traffic_in_228.rrd AVERAGE  
  2.  
  3. #/opt/snmp/bin/snmpwalk -v 2c -c 'tsst' ip 121.9.27.245  
  4.  

通过文章的描述,我们进一步了解到了cacti的配置过程,希望对你们有帮助!


相关内容