免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: joecen
打印 上一主题 下一主题

你还在用mrtg吗?--使用cacti监测系统性能 [复制链接]

论坛徽章:
0
411 [报告]
发表于 2005-12-20 18:10 |只看该作者
Type
The poller to use. This setting will take effect at next polling interval.

找到了,改回原来的cmd.php就行了,怎么回事啊?

cactid我装了啊?
cactid-0.8.6.f_2    A multithreaded poller for Cacti written in C

怎么回事?

论坛徽章:
0
412 [报告]
发表于 2005-12-20 18:27 |只看该作者
哪位大哥帮忙看看啊,我的图怎么是这样的?

未命名.jpg (15.71 KB, 下载次数: 9)

未命名.jpg

论坛徽章:
0
413 [报告]
发表于 2005-12-21 11:27 |只看该作者
原帖由 shijiunv 于 2005-12-14 17:07 发表
RH9系统默认安装的net-snmp.5.0.6对内存的监控有bug,无法正确获取数据。建议更新net-snmp版本。
这个bug有的机器会出现,有的机器不会出现,看运气。
推荐net-snmp-5.2.1


旧版本的snmpwalk缺少一些参数,比如-O中的"U"参数.
而cacti-0.86g或以上版本需要这些参数,可以安装一个新的net-snmp包.

论坛徽章:
0
414 [报告]
发表于 2005-12-21 15:54 |只看该作者
[root@localhost root]# tar -zvxf rrdtool-1.0.50.tar.gz
[root@localhost root]# ll
总用量 1824
-rw-r--r--    1 root     root         1201 12月 12 17:44 anaconda-ks.cfg
-rw-r--r--    1 root     root        18275 12月 12 17:43 install.log
-rw-r--r--    1 root     root         2930 12月 12 17:42 install.log.syslog
drwxr-xr-x   14 root     root         4096 12月 21 15:42 rrdtool-1.0.50
-rw-r--r--    1 root     root      1474200 12月 21 15:41 rrdtool-1.0.50.tar.gz
-rw-r--r--    1 root     root        12436 12月 12 10:16 Screenshot1.png
-rw-r--r--    1 root     root       154135 12月 12 15:36 Screenshot2.png
-rw-r--r--    1 root     root       174868 12月 20 08:20 Screenshot.png
[root@localhost root]# cd rrdtool-1.050
[root@localhost rrdtool-1.0.50]# ll
总用量 1204
-rw-r--r--    1 510      ftp        237087 2005-04-26  aclocal.m4
drwxr-xr-x    2 root     root         4096 12月 21 15:42 cgilib-0.4
-rw-r--r--    1 510      ftp         38674 2005-04-26  CHANGES
drwxr-xr-x    2 root     root         4096 12月 21 15:42 config
-rw-r--r--    1 510      ftp          4929 2005-04-26  config.h.in
-rwxr-xr-x    1 510      ftp        785407 2005-04-26  configure
-rw-r--r--    1 510      ftp         14148 2005-04-26  configure.ac
drwxr-xr-x   15 root     root         4096 12月 21 15:42 contrib
-rw-r--r--    1 510      ftp          4458 2004-02-02  CONTRIBUTORS
-rw-r--r--    1 510      ftp         15125 2002-02-26  COPYING
-rw-r--r--    1 510      ftp           866 2002-02-26  COPYRIGHT
drwxr-xr-x    2 root     root         4096 12月 21 15:42 doc
drwxr-xr-x    2 root     root         4096 12月 21 15:42 examples
drwxr-xr-x    2 root     root         4096 12月 21 15:42 gd1.3
drwxr-xr-x    2 root     root         4096 12月 21 15:42 libpng-1.0.9
-rw-r--r--    1 510      ftp          6439 2004-08-04  Makefile.am
-rw-r--r--    1 510      ftp         28570 2005-04-26  Makefile.in
-rw-r--r--    1 510      ftp          1515 2002-02-26  NT-BUILD-TIPS.txt
drwxr-xr-x    3 root     root         4096 12月 21 15:42 perl-piped
drwxr-xr-x    3 root     root         4096 12月 21 15:42 perl-shared
-rw-r--r--    1 510      ftp          4175 2004-10-22  README
-rw-r--r--    1 510      ftp          4029 2005-04-26  rrdtool.spec
drwxr-xr-x    2 root     root         4096 12月 21 15:42 src
drwxr-xr-x    2 root     root         4096 12月 21 15:42 tcl
-rw-r--r--    1 510      ftp          2175 2002-02-26  TODO
drwxr-xr-x    2 root     root         4096 12月 21 15:42 zlib-1.1.4
[root@localhost rrdtool-1.0.50]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.


安装不成功!

5、安装rrdtool
下载:
http://people.ee.ethz.ch/~oetike ... dtool-1.0.50.tar.gz
然后
./configure
make && make install 即可


请问rrdtool的安装路径是什么???

论坛徽章:
0
415 [报告]
发表于 2005-12-21 16:04 |只看该作者
谁能告诉我我的图为什么会是这样啊?装好以后我只是添加了设备,然后生成图片,全部都是默认的啊,怎么搞的?

论坛徽章:
0
416 [报告]
发表于 2005-12-21 16:44 |只看该作者
我安装完成后,一直是数据得不到,我查看log的结果是
CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid.  Partial Result:
后来我运行php,php cmd.php后服务才正常,才能够得到数据,但是仍然有错误
WARNING: Result from CMD not valid.  Partial Result:
这个是什么错误呀,查不到呀,是不是为了说明一些数据是抓不到的呀

论坛徽章:
0
417 [报告]
发表于 2005-12-22 04:01 |只看该作者
错误原因已经查到,是perl的问题和我crobtab环境变量的问题
我的系统是solaris,所以memory抓取的有问题
我的perl是
#!/usr/local/bin/perl
@vmstat = split /\n/, `/usr/bin/vmstat -p`;
@mem = split /\s+/, $vmstat[-1];
print $ARGV[0]=~/swap/i ? $mem[1] : $mem[2]
供大家参考

论坛徽章:
0
418 [报告]
发表于 2005-12-22 08:42 |只看该作者
晕,我知道了,居然是因为这个:
RRDTool Default Font Path
The path to the rrdtool default true type font for version 1.2 and above.

/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
我刚开始只写到了/usr/local/share/rrdtool/fonts/,还想着指定目录就行了,晕死啊

论坛徽章:
0
419 [报告]
发表于 2005-12-29 10:48 |只看该作者
Fatal error: Call to undefined function: session_start() in /usr/local/www/apache22/data/cacti/include/config.php on line 89
我的访问页面时出现上面的错误?这是为什么?

论坛徽章:
0
420 [报告]
发表于 2005-12-29 11:18 |只看该作者
好文章啊 不过我现在正在学着使用ntop 也是很不错的 而且似乎更加容易上手^_^
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP