免费注册 查看新帖 |

Chinaunix

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

[Web] rrdtool + cacti的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-06 19:58 |只看该作者 |倒序浏览
求救呀!rrdtool + cacti的问题?   
装起后 在cacti中看不到流浪图形呀!
我在编译PHP的时候装了GD库的,
用php  web/cacti/poller.php > /dev/null
报错
PHP Warning:  PHP Startup: Unable to load dynamic library './php_gettext.dll' - ./php_gettext.dll: cannot open shared object file: No such file or directory in Unknown on line 0
我把gettext装好了,而却在PHP信息中能够看到gettext  已经是enable的.
但是还是这个错误,
我想知道我的cacti看不到流量图形是不是这个问题的原因所在.
我的系统的redhat AS 4
rrdtool 是自己编译安装的.    net-snmp 装的系统自带的4个 rpm包.没有修改snmp.conf文件.
还请个位给我找找原因所在把.
小第  先谢谢了!

QQ截图未命名.jpg (14.79 KB, 下载次数: 60)

错误的图片

错误的图片

论坛徽章:
0
2 [报告]
发表于 2008-09-06 21:17 |只看该作者
着是cacti的log文件
09/06/2008 07:44:27 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '181157', Max Runtime '298', Poller Runs: '1'
09/06/2008 07:44:27 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 181157 seconds have passed since the last poll!
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
09/06/2008 07:44:27 PM - POLLER: Poller[0] WARNING: Poller[0] Host[1] Ping Time was not numeric
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] PING: Ping not performed due to setting.
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /home/webserver/web/control/cacti/scripts/linux_memory.pl MemFree:, output: 53272
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /home/webserver/web/control/cacti/scripts/linux_memory.pl SwapFree:, output: 1052072
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /home/webserver/web/control/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /home/webserver/web/control/cacti/scripts/unix_users.pl , output: 1
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /home/webserver/web/control/cacti/scripts/unix_processes.pl, output: 61
09/06/2008 07:44:27 PM - CMDPHP: Poller[0] Time: 0.1790 s, Theads: N/A, Hosts: 2
09/06/2008 07:44:28 PM - SYSTEM STATS: Time:1.2748 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
09/06/2008 07:45:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '33', Max Runtime '298', Poller Runs: '1'
09/06/2008 07:45:00 PM - POLLER: Poller[0] NOTE: Cron is configured to run too often!  The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 33 seconds have passed since the poller last ran.

论坛徽章:
0
3 [报告]
发表于 2008-09-06 21:27 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2008-09-11 10:59 |只看该作者
那位大歌帮我看看。是为什么不出图呀!
用php  web/cacti/poller.php > /dev/null
现在没有那个错误了。
现在不晓得究竟是那里的问题呀!

论坛徽章:
0
5 [报告]
发表于 2008-09-11 11:30 |只看该作者
Poller Type,看看你cacti配置里的这个参数你用的是哪个,正常应该是用cmd.php,不然你就算执行这个命令,也还是不执行的

论坛徽章:
0
6 [报告]
发表于 2008-09-11 14:10 |只看该作者
看的了  默认都是用的"cmd.php"呀!

论坛徽章:
0
7 [报告]
发表于 2008-09-16 11:25 |只看该作者
snmp 配置的问题       rra 下面不能产生数据 就不能形成图像。

论坛徽章:
0
8 [报告]
发表于 2008-09-23 11:12 |只看该作者

回复 #7 liang3391 的帖子

rra 下面有数据.
这是在CACTI中的错误!

RRDTool Command:


/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="processes in the run queue" \
DEF:a="/home/webserver/web/control/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:b="/home/webserver/web/control/cacti/rra/localhost_load_1min_5.rrd":load_5min:MAX \
DEF:c="/home/webserver/web/control/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
DEF:d="/home/webserver/web/control/cacti/rra/localhost_load_1min_5.rrd":load_15min:MAX \
CDEF:cdefg=TIME,1220706951,GT,a,a,UN,0,a,IF,IF,TIME,1220706951,GT,c,c,UN,0,c,IF,IF,+ \
AREA:a#EACC00:"1 Minute Average"  \
GPRINT:a:LAST:" Current\:%8.2lf\n"  \
STACK:a#EA8F00:"5 Minute Average"  \
GPRINT:a:LAST:" Current\:%8.2lf\n"  \
STACK:c#FF0000:"15 Minute Average"  \
GPRINT:c:LAST:"Current\:%8.2lf\n"  \
LINE1:cdefg#000000:""
RRDTool Says:

libpng warning: Application was compiled with png.h from libpng-1.0.9
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP