——Ajian
2007-11-27
环境:Cacticacti-0.8.6jSNMP 5.1.2
squid-2.6.STABLE14
1、add to the squid.conf
acl ALL src 0.0.0.0/0.0.0.0
acl ADMIN src 127.0.0.1/32
acl SNMP snmp_community public
snmp_access allow SNMP ADMIN
snmp_access deny ALL
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
2、add to the snmp.conf (in the machine of the squid)
proxy -v 1 -c public 127.0.0.1:3401 .1.3.6.1.4.1.3495.1
3、add to the firewall ,open ports 3401 and 161 (注意协议是UDP)
4、add the Squid templates to the cacti
5、Set the cacti
问题:
1、在Squid的服务器上查看SNMP
snmpwalk -v 1 -c public 127.0.0.1:3401 1.3.6.1.4.1.3495.1
结果会显示:
Error: OID not increasing: SNMPv2-SMI::enterprises.3495.1.5.1.1.1........
2、添加HTTP DATA图的时候不行,打开Debug显示
RRDTool Says:
ERROR: invalid y-grid format
正在有待解决。
