LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 大熊宝宝

终于搞定了MTRG流量监控

[复制链接]
发表于 2004-9-23 16:08:01 | 显示全部楼层
snpo: Skipping ipAdEntIfIndex scanning because community@192.168.3.5: does not seem to support it
======================
Why?????
发表于 2004-11-28 11:04:24 | 显示全部楼层
楼主写的不是很详细吧!最起码gd要装吧!
发表于 2004-11-28 12:09:09 | 显示全部楼层
最初由 sbrd 发表
还有我看的别人做的有cpu,内存,硬盘的监控,还有网络流量的每天,每小时这样的监控,请问怎么做

利用sar命令可以看到cpu,mem等的运行信息,写个脚本,修改snmp.conf就可以了
发表于 2004-12-1 14:07:22 | 显示全部楼层
谢谢楼主!!!
发表于 2004-12-2 12:56:04 | 显示全部楼层
我的找不到GD库呀?
用rpm -qa | grep gd显示如下:

[root@QuickAS3 mrtg-2.10.15]# rpm -qa | grep gd
sysklogd-1.4.1-12                              
gdbm-1.8.0-20                                   
gd-1.8.4-12                                    

但是不论我用
[root@QuickAS3 mrtg-2.10.15]# ./configure --prefix=/usr/local/src/mrtg-2 --with
gd=/usr --with-gd-lib=/usr --with-gd-inc=/usr --with-png=/usr --with-zlib=/usr
还是用
[root@QuickAS3 mrtg-2.10.15]# ./configure  --prefix=/usr/local/mrtg-2  \
> --with-gd=/usr/include  \
> --with-gd-lib=/usr/lib  \
> --with-gd-inc=/usr/include  \
> --with-png=/usr/include  \
> --with-zlib=/usr/include

都提示找不到gd库,和sbrd兄发的内容一样
发表于 2004-12-15 21:03:03 | 显示全部楼层
snmpd.conf怎么配置都不对,参考了很多人的。在我这儿没有一个人的能用。我的通过web访问,已经能显示那个图了,界面差不多,这应该能说明httpd和mrtg没问题了,就只有snmp的问题了,我的snmpd也能运行,就是配置文件的问题了,下面是我的配置文件[PHP]####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
rocommunity  public
#       sec.name  source          community
#com2sec paranoid  default         public
com2sec  notConfigUser default         public
#com2sec readwrite default         private

####
# Second, map the security names into group names:

#                     sec.model  sec.name
#group MyROSystem v1        paranoid
#group MyROSystem v2c       paranoid
#group MyROSystem usm       paranoid
group notConfigGroup v1       notConfigUser
group notConfigGroup usm      notConfigUser
group notConfigGroup v2c     notConfigUser
#group MyROGroup usm        readonly
#group MyRWGroup v1         readwrite
#group MyRWGroup v2c        readwrite
#group MyRWGroup usm        readwrite

####
# Third, create a view for us to let the groups have rights to:

#           incl/excl subtree                          mask
view all    included  .1                              
#view system included  .iso.org.dod.internet.mgmt.mib-2.system
View  systemview included  .1.3.6.1.2.1.1
view  systemview included  .1.3.6.1.2.1.2
view  systemview included  .1.3.6.1.2.1.25.1.1

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#                context sec.model sec.level match  read   write  notif
access MyROSystem ""     any       noauth    exact  system none   none
access notConfigGroup ""      any       noauth    exact  all    none   none
access notConfigGroup ""      any       noauth    exact  mib2    all    none
[/PHP]

按楼主的命令生成cfg文件,执行
[PHP]root:~#cfgmaker --global "WorkDir:/var/www/mrtg/" --global "Options[_]:growright,bits" --ifref=eth0 output /etc/mrtg.cfg public@localhost[/PHP]时

结果如下:
[PHP]--base:Get Device Info on public@localhost:
SNMP Error:
Received SNMP response with error code
   error status:noSuchName
   index 1 (OID:1.3.6.1.2.1.1.9.1.4.0)
SNMPv1_Session (remote host: "localhost"[127.0.0.1].163)
                     community:"public"
                    request ID: -1691519616
                   PDU bufsize: 8000 bytes
                       timeout:2s
                       retries:5
                       backoff:1)
  at /usr/share/per15/SNMP_util.pm line 733
--base: Vendor Id:
--baseopulating confcache
--snpo:Skipping ifName scanning because public@localhost:dose not seem to support it
--snpo:Skipping ifDescr scanning because public@localhost:dose not seem to support it
--snpo:Skipping ifType scanning because public@localhost:dose not seem to support it
--snpo:Skipping ifAdEntIfIndex scanning because public@localhost:dose not seem to support it
--snpo:Skipping ifPhysAddress scanning because public@localhost:dose not seem to support it
--base:Get Interface Info
--base:Walking ifIndex
SNMP Error:
      [/PHP]后面错误差不多的东西还有两段,就是OID和一些东西变了

我是单网卡,哪位弟兄帮忙看看啊,头都大了
发表于 2004-12-16 09:18:52 | 显示全部楼层
很明显没有GD库


最初由 sbrd 发表
我照兄弟的方法做了,但是有下面的提示:

** Ooops, one of many bad things happened:

   a)  You don't have the GD library installed.
       Get it from http://www.boutell.com, compile it and
       use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
       its location. You might also have to use --with-z-inc,
             --with-z-lib and --with-png-inc, --with-png-lib for gd
             versions 1.6 and higher.  Check config.log for more
       information on the problem.

   b)  You have the GD library installed, but not the gd.h
       header file.  Download the source (see above) and use
       --with-gd-inc=DIR to specify where the file can be found.

   c)  You have the library and the header file installed, but
       you also have a shared GD library in the same directory.
       Remove the shared library files and/or links (e.g.
       libgd.so.2.0.0, libgd.so and libgd.so.2).  This is especially
             likely if you're using a recent (post 1.8.4) version of GD
       and didn't configure it with --disable-shared.

   d)  You have gd library installed and also it's headers, but you are
       missing libpng (and headers) or freetype (and headers)
       (mrtg does not use freetype, but if your copy of gd is precompiled
       against it, you have to install it ...

   Consider following the instructions in doc/mrtg-unix-guide.txt
我的系统是redhat as2
发表于 2004-12-16 13:29:40 | 显示全部楼层
[root@shlinux mrtg-2.10.0pre7]# rpm -qa | grep gd
ifplugd-0.21b-1mdk
libgdbm2-1.8.0-24mdk
sysklogd-1.4.1-5.1.100mdk
libgdk_pixbuf2.0_0-2.2.4-10.1.100mdk
gdb-6.0-2mdk
gdm-2.4.4.7-5mdk
libgdk-pixbuf2-0.22.0-2.2.100mdk
gdk-pixbuf-loaders-0.22.0-2.2.100mdk


还是和楼上的一样情况..
发表于 2005-5-9 17:30:50 | 显示全部楼层
能把标题改一下吗 “终于搞定了MTRG流量监控”  改成“终于搞定了MRTG流量监控 ”谢谢
回复 支持 反对

使用道具 举报

发表于 2005-8-3 15:42:09 | 显示全部楼层
mrtg的下载地址哪位给一个
还有人说snmp
哪位出来解释一下二者的区别
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表