免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3515 | 回复: 7
打印 上一主题 下一主题

cacti監控squid [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-06 17:22 |只看该作者 |倒序浏览
現在我cacti搭建好了,也能正常獲取流量,現在我想要把服務器的squid監控起來,因为是实验,所以首先用来监控虚拟机的squid服务了.我在CU上搜索了许多帖子,不过都说得不是很详细,自己也照着做,但是做不出来,现在我感到困惑的是,如何才能成功能为squid启用snmp,另外在CACTI中要如何添加squid服务的主机.请问谁有写过相关的BLOG或文档吗?借鉴一下,不胜感激.

[ 本帖最后由 fine102 于 2008-5-6 17:25 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-05-06 17:34 |只看该作者
自己先顶下,

论坛徽章:
0
3 [报告]
发表于 2008-05-07 11:06 |只看该作者
请问有谁可以帮忙回答下吗?

论坛徽章:
0
4 [报告]
发表于 2008-05-07 22:58 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2008-05-09 13:42 |只看该作者

回复 #4 anthonyfeng 的帖子

首先感谢anthonyfeng的回复,不过你发的这个我已经看过了,因为自己对squid不是很了解,在参考过一些资料后还是没有成功.我想在这里希望有搭建过cacti监控squid的朋友,帮忙写详细点.谢谢了

论坛徽章:
0
6 [报告]
发表于 2008-05-11 23:07 |只看该作者
不会吧,大哥,我按那个做,很顺利的。

论坛徽章:
0
7 [报告]
发表于 2008-05-14 16:15 |只看该作者
我列出一下我的 squid 设置吧,我的是带Dansguardian 杀毒的

[root@localhost ~]# cat /etc/squid/squid.conf |grep -v ^# |grep -v ^$
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 16 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 14096 KB
minimum_object_size 0 KB
fqdncache_size 1024
cache_dir ufs /var/spool/squid 1000 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
cache_peer_access 127.0.0.1 allow all
follow_x_forwarded_for allow localhost
acl_uses_indirect_client on
delay_pool_uses_indirect_client on
log_uses_indirect_client on
acl  CactiServer  src 192.168.1.10
acl  snmpcommunity snmp_community public
snmp_port  3401
snmp_access  allow snmpcommunity CactiServer
snmp_access  deny all

[root@localhost ~]# rpm -qv squid
squid-2.6.STABLE6-3.el5

估计楼主是防火墙设置问题。

论坛徽章:
0
8 [报告]
发表于 2012-09-15 17:00 |只看该作者
我想用cacti监控本机的cpu信息怎么做啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP