Mrtg + rrdtool + 14all.cgi(网络流量的监测)
来源:互联网 发布:apm飞控源码下载 编辑:程序博客网 时间:2024/05/20 10:54
1.1 安装IIS和SNMP(简单网络管理协议)[这里需要使用Windows XP的安装盘]
将Windows XP的安装盘放入光驱中。
开始=>控制面板=>添加/删除程序=>添加/删除Windows组件(A),将Internet信息服务(IIS)和管理和监测工具打勾,然后下一步直至完成
1.2 下载运行所需的环境
1.2.1 下载Perl
Perl(http://ftp.activestate.com/ActivePerl/Windows/5.8/ActivePerl-
该环境按照它的默认安装就行了.
1.2.2 下载mrtg
下载mrtg(http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-
将其解压到c:\mrtg
1.2.3 下载rrdtool
下载rrdtool
(http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-
首先在c盘下建立目录: c:\rrdtool
将其解压后双击install.bat,完成后会在C:\Perl\site\lib下产生一个rrds.pm文件,将该文件拷贝到 c:\rrdtool下
然后将其目录rrdtool-
2 使用工具mrtg
2.1 编译、修改配置文件
C:\mrtg\bin>perl cfgmaker public@
tput c:\www\mrtg\mrtg.cfg
--base: Get Device Info on public@
--base: Vendor Id: cisco
--base: Populating confcache
--coca: populate confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifMtu
--base: Walking ifAlias
--base: Walking vmVlan
--base: Walking ifSpeed
--base: Writing c:\www\mrtg\mrtg.cfg
C:\mrtg\bin>perl mrtg c:\www\mrtg\mrtg.cfg
WARNING:
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for 10.0.
0.199_1
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
lid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove
le
Rateup WARNING: C:/mrtg/bin\rateup Can't rename
.old updating log file
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for 10.0.
0.199_3
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
lid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove
le
Rateup WARNING: C:/mrtg/bin\rateup Can't rename
.old updating log file
C:\mrtg\bin>perl mrtg c:\www\mrtg\mrtg.cfg
WARNING:
Rateup WARNING: C:/mrtg/bin\rateup Can't remove
le
Rateup WARNING: C:/mrtg/bin\rateup Can't remove
le
C:\mrtg\bin>perl mrtg c:\www\mrtg\mrtg.cfg
WARNING:
2.2 编译首页文件
C:\mrtg\bin>perl indexmaker c:\www\mrtg\mrtg.cfg --output c:\www\mrtg\index.htm
3 使用工具rrdtool
3.1 编译、修改配置文件
C:\mrtg\bin>perl cfgmaker public@
al "PathAdd: c:\rrdtool" --global "LibAdd: c:\rrdtool" --global "Options[_]: gro
wright,bits" --global "workdir: c:\www\mrtg" --global "RunAsDaemon:yes" --global
"Interval:5" --output c:\www\mrtg\mrtg1.cfg
--base: Get Device Info on public@
--base: Vendor Id: cisco
--base: Populating confcache
--coca: populate confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--coca: store in confcache public@
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifMtu
--base: Walking ifAlias
--base: Walking vmVlan
--base: Walking ifSpeed
--base: Writing c:\www\mrtg\mrtg1.cfg
C:\mrtg\bin>perl mrtg c:\www\mrtg\mrtg1.cfg
WARNING:
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
3.2 下载与编辑14all.cgi
(http://mesh.dl.sourceforge.net/sourceforge/my14all/14all-1.1p25.tar.gz)
use lib qw(c:\mrtg\lib\mrtg2); #set paths
$cfgfile = "c:\www\mrtg\mrtg1.cfg";
$cfgfiledir = "c:\www\mrtg\";
4 参考资料
http://www.wtcs.org/snmp4tpc/rrdtool.htm
上一篇:SNMP口令的利用以及一些相关知识
下一篇:Cisco交换机实现隔离访问
- 承接自动化测试培训、外包、实...
- Solaris PowerTOP 1.0 发布
- For STKMonitor
- busybox的httpd使用CGI脚本(Bu...
- 项目小体会
- 请教想查12个月的数据条数,看...
- new/delete 和malloc/free 有...
- ubuntu下hadoop环境的搭建...
- 求助:如何用Linux架设ISATAP...
- redhat图形界面不出先登录界面...
- Mrtg + rrdtool + 14all.cgi(网络流量的监测)
- Mrtg + rrdtool + 14all.cgi(网络流量的监测)
- Windows 2003下使用MRTG+RRDtool+Routers2来监测网络流量
- 配置MRTG监测网络流量
- mrtg/prtg/RRDTool/CACTI网络流量监控
- RRDTool和mrtg的比较
- 总结RRDtool 和 MRTG 的不同之处
- 网络流量的监测
- 关于网络流量的实时监测
- [教學]大作 rrdtool (像 mrtg 的東東) 完全攻略
- [教學]大作 rrdtool (像 mrtg 的東東) 完全攻略
- 网络流量监控器(MRTG)配置
- 网络流量监控mrtg
- mrtg--网络流量监控
- 网络流量分析/网络流量监测
- 什么是MRTG、RRDTool、Cacti、CactiEZ?
- 网络流量监控器mrtg全攻略
- 网络流量监控器mrtg全攻略
- 使用Cacti监控你的网络(四)- Cacti脚本及模板
- 使用Cacti监控你的网络(五)- Cacti插件
- 使用Cacti监控你的网络(六)- Cacti高级应用--打造自己的Cacti模板
- snmputil
- SNMP口令的利用以及一些相关知识
- Mrtg + rrdtool + 14all.cgi(网络流量的监测)
- Cisco交换机实现隔离访问
- c++核心基础知识(内存管理)
- nagios全攻略
- Cisco的MAC地址与IP绑定
- 解密:XP、VISTA双系统安装指南及维护
- 零命令玩转Ubuntu 8.04之 安装篇
- 写得蛮好的linux学习笔记
- Linux下的seq命令