LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: leaper

mrtg+cpu等的GD图库

[复制链接]
发表于 2004-12-16 13:28:45 | 显示全部楼层
camor兄,我和你一样的错误,你解决没,解决了说声如何搞的啊,谢谢你了
发表于 2004-12-16 20:55:53 | 显示全部楼层
[root@shlinux mrtg-2.11.0]# urpmi gd
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi libpng
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi net-snmp
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi freetype
Everything already installed



可是
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 ...

真搞不懂。。怎么回事。。
发表于 2004-12-16 21:04:30 | 显示全部楼层
1。你没gd
2。如果你有gd,那你没有加参数--disable-shared
2。你油的话,你没 libpng/freetype
发表于 2004-12-16 21:09:30 | 显示全部楼层
最初由 黯然销魂 发表
1。你没gd
2。如果你有gd,那你没有加参数--disable-shared
2。你油的话,你没 libpng/freetype


[root@shlinux mrtg-2.11.0]# urpmi gd
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi libpng
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi net-snmp
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi freetype
Everything already installed



2。如果你有gd,那你没有加参数--disable-shared
不懂。。请解释一下下...
发表于 2004-12-16 21:36:43 | 显示全部楼层
./configure 的时候,加上 --disable-shared
发表于 2004-12-16 22:10:08 | 显示全部楼层
还是不可以,一样的提示..

好像FC自带...

但我的那台电脑是Mandrake10.1..
发表于 2004-12-22 15:19:35 | 显示全部楼层
还是不可以
一样的提示。。晕MK10.1用uprimi装的那些[root@shlinux mrtg-2.11.0]# urpmi gd
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi libpng
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi net-snmp
Everything already installed
[root@shlinux mrtg-2.11.0]# urpmi freetype
Everything already installed

会不会有点问题。。。
发表于 2004-12-22 16:06:52 | 显示全部楼层
Post by camor
/var/www/mrtg/cpu#mrtg /var/www/mrtg/cpu/04cpu.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.2021.11.50.0)
SNMPv1_Session (remote host: "192.168.0.4" [192.168.0.4].161)
                  community: "mrtg"
                 request ID: 1812923572
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 486
SNMPGET Problem for ssCpuRawUser.0 ssCpuRawIdle.0 sysUptime sysName on public@192.168.0.4::::::v4only
at /usr/bin/mrtg line 1798
ERROR: Target[cpu][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[cpu][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
WARNING: Skipping Update of cpu, inlast is not defined
WARNING: Skipping Update of cpu, outlast is not defined
/var/www/mrtg/cpu#

会不会因为要监控的目标主机是windows2000的服务器,所以没法从SNMP里取到CPU的数值呢?   苦恼ing...




把view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc 改为

view mib2 included .1.3.6.1.4.1.2021.11

后试试
发表于 2004-12-22 16:18:22 | 显示全部楼层
谢了。装成功了。。。
最主要是因为我的
gd安装的路径问题吧。。或说我用urpmi安装就不知道其到底在干到那里了。。
我在/usr/local/src下安装gd
/usr/loca/src安装mrtg就成功了。。。
发表于 2004-12-23 11:54:27 | 显示全部楼层
IE的cookie讓我以前沒有數據,可是用mozilla firefox就OK了.<喜歡上了firefox>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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