cacti监控squid

十一月 9th, 2009 Posted in cacti | 阅读次数: 639 次

制作:高进波
时间:20009-3-18

1.修改squid配置文件,启用snmp
vi squid.conf
acl CactiServer src 192.168.1.237 127.0.0.1 //只让本机和这个IP访问
acl SNMP snmp_community passwd

snmp_port 3401
snmp_access allow SNMP CactiServer
snmp_access deny ALL

 

2.检查是否安装成功

service squid restart    #重启squid服务

yum install -y net-snmp-utils

snmpwalk -v 1 -c passwd localhost:3401 .1.3.6.1.4.1.3495.1

 

3.下载cacti-squid
http://forums.cacti.net/download.php?id=79

unzip SquidStats-0.1.zip

mv webcache_squid_* /var/www/html/cacti/resource/snmp_queries/

chown apache:apache /var/www/html/cacti/

 

4.在CACTI管理导入模板
cacti_host_template_webcache_squid_server_snmp.xml

 

5.添加设备
在“Devices”选项中添加新主机,注意“Host Template”选择"squid sever"
就是导入进的那个.并注意填写以下内容:

SNMP Community = passwd
SNMP Version = 1
SNMP Port = 3401

 

完成

相关日志:

Tags: ,

6 Responses to “cacti监控squid”

  1. Exercise to Lose Love Handles Says:

    Lose Love Handles Fast…

    [...]below you’ll see my links page http://www.loselovehandlesfastblog.com/links/ with some fantastic websites that I think you should definitely go visit[...]…


  2. Resources Says:

    Interesting Posts…

    [...]some other related resources on the web that are worth viewing on this subject include[...]…


  3. hemorrhoid removal Says:

    Interesting Posts…

    [...]some other related resources on the web that are worth viewing on this subject include[...]…


  4. skoal hotel discounts Says:

    Sites we Like………

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]………


  5. prague hotel discounts Says:

    Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]………


  6. london accommodation Says:

    Cool sites……

    [...]we came across a cool site that you might enjoy. Take a look if you want[...]………


留下您的脚印