求助一个关于网管软件mrgt的问题

zhj_then 2018-01-05 09:51:30
这是我在windows下的安装步骤,最后运行结果也贴出来了,返回结果是否正确?我打开index.html文件后已经读取出路由器型号、端口等配置信息,就是不显示流量曲线图,是什么原因?
1、 安装ActivePerl
2、 windows下IIS服务开启支持其web页面的浏览。用“打开或关闭windows功能”选项开启,找到ISS后勾选所有。
3、windows以及路由器上SNMP服务开启。windows开启方法如IIS,打开后用services.msc查看并编辑属性中的安全选项卡,添加团体名和IP;路由器上需在snmp管理里配置团体名并选择版本号。
4、下载MRTG,注意下载的windows版本,格式为zip格式。安装完成后配置环境变量,并cd到bin目录下用perl mrtg测试,如果打印
Usage: mrtg <config-file>
mrtg-2.17.4 - Multi Router Traffic Grapher
Copyright 1995-2006 by Tobias Oetiker Licensed under the Gnu GPL. If you want to know more about this tool, you might want to read the docs. You can find everything on the mrtg website: http://oss.oetiker.ch/mrtg/则说明Perl和mrtg安装正确。
5、运行命令行切换到mrtg的bin目录下去指定需要监控的主机地址等相关信息,在bin目录执行如下命令: C:/mrtg-2.17.2/bin/perl cfgmaker fiberhome@192.168.100.1 --global "workdir: c:/inetpub/wwwroot/mrtg" --output "c:/inetpub/wwwroot/mrtg/pc.cfg" 然后直接回车,cfgmaker是mrtg的命令,fiberhome@192.168.100.1 中fiberhome就是SNMP Service中配置的接受团体名称,@后面是IP地址;workdir是指定工作目录,而output是指定生成配置文件的输出目录,最后生成的配置文件以cfg后缀格式。这样就已经配置好了监控的那台主机的配置服务。
6、生成一个web页面来显示当前监控的信息
c:\mrtg\bin>perl indexmaker c:/inetpub/wwwroot/mrtg/mrtg.cfg>c:/inetpub/wwwroot/mrtg/index.html
7、运行mrtg,执行命令
c:\mrtg\bin>perl mrtg --logging=c:/inetpub/wwwroot/mrtg/mrtg.log c:/inetpub/wwwr
oot/mrtg/mrtg.cfg
运行这个命令之后就可以在dos屏幕下看到有数据信息在滚动,说明SNMP已经在发送和接受信息了,这个时候可以在本地浏览器或者远程流程上访问当前的IIS服务,访问index.html页面,查看流量信息,默认是5分钟发送一次信息。最后一步信息如下:
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima
ry log file for 192.168.100.1_16777217
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
192.168.100.1_16777217 was invalid as well
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 192.168.100
.1_16777217.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't rename 192.168.100
.1_16777217.log to 192.168.100.1_16777217.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima
ry log file for 192.168.100.1_385875968
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
192.168.100.1_385875968 was invalid as well
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 192.168.100
.1_385875968.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't rename 192.168.100
.1_385875968.log to 192.168.100.1_385875968.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima
ry log file for 192.168.100.1_385875969
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
192.168.100.1_385875969 was invalid as well
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 192.168.100
.1_385875969.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't rename 192.168.100
.1_385875969.log to 192.168.100.1_385875969.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima
ry log file for 192.168.100.1_385875970
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
192.168.100.1_385875970 was invalid as well
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 192.168.100
.1_385875970.old updating log file
2018-01-05 13:45:05, Rateup WARNING: C:/mrtg/bin\rateup Can't rename 192.168.100
.1_385875970.log to 192.168.100.1_385875970.old updating log file
2018-01-05 13:45:06, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima
ry log file for 192.168.100.1_385875971
2018-01-05 13:45:06, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for
192.168.100.1_385875971 was invalid as well
2018-01-05 13:45:06, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 192.168.100
.1_385875971.old updating log file
2018-01-05 13:45:06, Rateup WARNING: C:/mrtg/bin\rateup Can't rename 192.168.100
.1_385875971.log to 192.168.100.1_385875971.old updating log file
...全文
620 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,321

社区成员

发帖
与我相关
我的任务
社区描述
网络维护与管理相关内容讨论专区
网络网络安全安全 技术论坛(原bbs)
社区管理员
  • 网络维护与管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧