免费注册 查看新帖 |

Chinaunix

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

[网络管理] 网络流量监控器mrtg的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-26 23:49 |只看该作者 |倒序浏览
参照这两个贴子配置了mrtg配置过程中未报任何错误!

http://bbs.chinaunix.net/forum/viewtopic.php?t=546821&highlight=%C1%F7%C1%BF%BC%E0%BF%D8

http://chinaunix.net/jh/30/446659.html


我在地址栏里输入http://192.168.1.5/mrtg
出现如下的画面!

抓图3.jpg (44.29 KB, 下载次数: 9)

抓图3.jpg

论坛徽章:
0
2 [报告]
发表于 2005-08-26 23:54 |只看该作者

网络流量监控器mrtg的问题

这是我的/etc/mrtg.cfg

# Created by
# ./cfgmaker --global 'WorkDir: /usr/local/apache/htdocs/mrtg--global' 'Options[_]: growright,bits' --ifref=ip --output /etc/mrtg.cfg public@192.168.1.5                                                                                                                                                                                                                                        ### Global Config Options                                                                                                                                                                       #  for UNIX                                                                                     # WorkDir: /home/http/mrtg                                                                                                                                                                      #  or for NT                                                                                    # WorkDir: c:\mrtgdata                                                                                                                                                                          ### Global Defaults                                                                                                                                                                             #  to get bits instead of bytes and graphs growing to the right                                 # Options[_]: growright, bits                                                                                                                                                                   EnableIPv6: no                                                                                  WorkDir: /usr/local/apache/htdocs/mrtg                                                                                                                                                          ######################################################################                          # System:                                                                                       # Description:                                                                                  # Contact:                                                                                      # Location:                                                                                     ######################################################################                                                                                                                                                                                                                                                                                                                          ######################################################################                                                                                                        

######################################################################                          # System: sky.com
# Description: Linux sky.com 2.4.26-1 #1 二 9月 28 00:24:54 EDT 2004 i686
# Contact: Root <root@localhost>; (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################


### Interface 1 >;>; Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[192.168.1.5_127.0.0.1]: /127.0.0.1:public@192.168.1.5:
# SetEnv[192.168.1.5_127.0.0.1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[192.168.1.5_127.0.0.1]: 1250000
# Title[192.168.1.5_127.0.0.1]: Traffic Analysis for 127.0.0.1 -- sky.com
# PageTop[192.168.1.5_127.0.0.1]: <h1>;Traffic Analysis for 127.0.0.1 -- sky.com</h1>;
#               <div id="sysdetails">;
#                       <table>;
#                               <tr>;
#                                       <td>;System:</td>;
#                                       <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Maintainer:</td>;
#                                       <td>;Root &amp;root@localhost&amp; (configure /etc/snmp/snmp.local.conf)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Description:</td>;
#                                       <td>;lo  </td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifType:</td>;
#                                       <td>;softwareLoopback (24)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifName:</td>;
#                                       <td>;</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Max Speed:</td>;
#                                       <td>;1250.0 kBytes/s</td>;
#                               </tr>;
#
#                               <tr>;
#                                       <td>;Ip:</td>;
#                                       <td>;127.0.0.1 (localhost.localdomain)</td>;
#                               </tr>;
#
#                       </table>;
#               </div>;


### Interface 2 >;>; Descr: 'eth0' | Name: '' | Ip: '' | Eth: '00-e0-4f-00-1f-75' ###
### The following interface is commented out because:
### * --ifref=ip is not unique for this interface
#
# Target[192.168.1.5_2]: 2:public@192.168.1.5:
# SetEnv[192.168.1.5_2]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
# MaxBytes[192.168.1.5_2]: 12500000
# Title[192.168.1.5_2]: Traffic Analysis for 2 -- sky.com
# PageTop[192.168.1.5_2]: <h1>;Traffic Analysis for 2 -- sky.com</h1>;
#               <div id="sysdetails">;
#                       <table>;
#                               <tr>;
#                                       <td>;System:</td>;
#                                       <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Maintainer:</td>;
#                                       <td>;Root &amp;root@localhost&amp; (configure /etc/snmp/snm
p.local.conf)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Description:</td>;
#                                       <td>;eth0  </td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifType:</td>;
#                                       <td>;ethernetCsmacd (6)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifName:</td>;
#                                       <td>;</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Max Speed:</td>;
#                                       <td>;12.5 MBytes/s</td>;
#                               </tr>;
#
#
#                       </table>;
#               </div>;


### Interface 3 >;>; Descr: '' | Name: '' | Ip: '192.168.1.5' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of  which makes no sense
### * got 'Received SNMP response with error code
###       error status: noSuchName
###       index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3)
###     SNMPv1_Session (remote host: "192.168.1.5" [192.168.1.5].161)
###                       community: "public"
###                      request ID: 1522466444
###                     PDU bufsize: 8000 bytes
###                         timeout: 2s
###                         retries: 5
###                         backoff: 1)' from interface when trying to query
#
# Target[192.168.1.5_192.168.1.5]: /192.168.1.5:public@192.168.1.5:
# SetEnv[192.168.1.5_192.168.1.5]: MRTG_INT_IP="192.168.1.5" MRTG_INT_DESCR=""
# MaxBytes[192.168.1.5_192.168.1.5]: 0
# Title[192.168.1.5_192.168.1.5]: Traffic Analysis for 192.168.1.5 -- sky.com
# PageTop[192.168.1.5_192.168.1.5]: <h1>;Traffic Analysis for 192.168.1.5 -- sky.com</h1>;
#               <div id="sysdetails">;
#                       <table>;
#                               <tr>;
#                                       <td>;System:</td>;
#                                       <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
#                               </tr>;
#                               <tr>;
#                               <tr>;
#                                       <td>;Maintainer:</td>;
#                                       <td>;Root &amp;root@localhost&amp; (configure /etc/snmp/snmp.local.conf)</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Description:</td>;
#                                       <td>;  </td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifType:</td>;
#                                       <td>; ()</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;ifName:</td>;
#                                       <td>;</td>;
#                               </tr>;
#                               <tr>;
#                                       <td>;Max Speed:</td>;
#                                       <td>;0.0 Bytes/s</td>;
#                               </tr>;
#
#                               <tr>;
#                                       <td>;Ip:</td>;
#                                       <td>;192.168.1.5 (sky.com)</td>;
#                               </tr>;
#
#                       </table>;
#               </div>;

论坛徽章:
0
3 [报告]
发表于 2005-08-27 08:55 |只看该作者

网络流量监控器mrtg的问题

没人回呢???

up

论坛徽章:
0
4 [报告]
发表于 2005-08-27 11:32 |只看该作者

网络流量监控器mrtg的问题

前面都有注释符号 "#",怎么能取出流量?
先检查你的网络端口是否有连线,然后重新cfgmaker

论坛徽章:
0
5 [报告]
发表于 2005-08-27 12:35 |只看该作者

网络流量监控器mrtg的问题

是不是这个的问题呢
不支持mrtg的设备:
D-Link switches (details)  

我的机器是接在D-Link 交换机上的。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP