当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 今天花了一上午的时间,总算做成了Mrtg对Squid的监控
 

 

    摘要: 下载地址 http://custom.lab.unb.br/pub/linux/routerlinux 官方网站 http://www.routerlinux.com 可安装到硬盘上,最小可以只安装4m空间,带分区ro属性保护,安全、方便、快捷,是做router的理想选择! (感觉好像在为别人做广告 :( ) solarischina 回复于:2004-04-06 20:58:26 能不能做透明nat? yongpeng......
 ·发现一个新的情况 求解    »显示摘要«
    摘要: 突然发现 在进入系统的时候 到了 bring up interface eth0 这一行 要等好久,最后还是ok 但是真的要等好久。 什么原因呢? 天外闲云 回复于:2004-04-03 12:39:21 不知道! faquirsun 回复于:2004-04-03 14:23:00 用了动态分配ip地址? sakulagi 回复于:2004-04-03 14:28:17 dhcp的原因,正常现象 yongpe......


使用 Mrtg 监控 squid(希望版主能够加入精华)

今天花了一上午的时间,总算做成了mrtg对squid的监控.我把我的配置过程贴出来.希望对大家有帮助 【相关文章:[原创]架设基于Fedora的openm

【扩展阅读:在内核2.6.0-test中安装最新驱动

(1)我们需要修改squid 【扩展信息:请教个Boot Loader的小问题.

vi /etc/squid/squid.conf

acl snmppublic snmp_community public (设置snmp监控的共同体为public)

snmp_port 3401(设置snmp监控端口)

snmp_access allow snmppublic all(允许所有的计算机访问snmppublic)

然后从新启动squid /etc/rc.d/init.d/squid restart

(2)把/etc/squid/mib.txt 复制到/etc/mrtg/squid.mib

cp /etc/squid/mib.txt /etc/mrtg/squid.mib

(3)然后修改/etc/mrtg/mrtg.cfg

加入loadmibs: /etc/mrtg/squid.mib

(4)在/etc/mrtg/mrtg.cfg加入如下

target[proxy-hit]: cachehttphits&cacheserverrequests:public@x.x.x.x:3401(x.x.x.x为你机器的ip地址)

maxbytes[proxy-hit]: 100000

title[proxy-hit]: http hits

pagetop[proxy-hit]: <h1>proxy cache statistics: http hits/requests</h1>

 <table>

   <tr><td>system:</td><td>redhat.grandunion.com.cn</td></tr>

   <tr><td>maintainer:</td><td>serassio guido</td></tr>

   <tr><td>description:</td><td>squid proxy server</td></tr>

 </table>

suppress[proxy-hit]: y

legendi[proxy-hit]:  http hits

legendo[proxy-hit]:  http requests

legend1[proxy-hit]:  http hits

legend2[proxy-hit]:  http requests

ylegend[proxy-hit]: perminute

shortlegend[proxy-hit]: req/min


...   下一页
 ·多重上连isp的路由设置    »显示摘要«
    摘要: [color=red:e5adcaf9d6]作者:白金 网名:platinum(chinaunix) 超超白金(白金论坛) 欢迎转载,转载请保留上述信息 =========================================================================== [/color:e5adcaf9d6] 如果你有两个isp,那么,通过下面的方法,可以将两个isp绑定,并做负载均衡,可以实现带宽加倍。 也就是......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE