免费注册 查看新帖 |

Chinaunix

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

nagios部分项目无法绘图 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-17 15:42 |只看该作者 |倒序浏览
在安装部署nagios的时候,使用了pnp和rrdtool绘图。大部分的监控项目都可以绘图成功。但是部分提示如下错误:

Initalising

Using /usr/local/nagios/share/perfdata/

RRDTool /usr/local/rrdtool-1.0.50/bin/rrdtool found.

RRDTool /usr/local/rrdtool-1.0.50/bin/rrdtool is executable

PHP Function proc_open is enabled

PHP Function fpassthru is enabled

PHP Function xml_parser_create is enabled

PHP zlib Support found.

PHP GD Support found.

RRD Base Directory /usr/local/nagios/share/perfdata/ found.

Hostname 172.16.121.54 is set.

Directory /usr/local/nagios/share/perfdata/172.16.121.54 found.

Service Description check_netcard is set.

RRD Database/usr/local/nagios/share/perfdata/172.16.121.54/check_netcard.rrd not found.
能告诉我在哪个地方需要修改哪些吗,谢谢!

论坛徽章:
0
2 [报告]
发表于 2010-09-17 15:52 |只看该作者
部分的perfdata.log日志

2010-09-17 23:28:20 [8399] Template is check_netcard.php
2010-09-17 23:28:20 [8399] No Custom Template found for check_netcard (/usr/local/nagios/etc/pnp/check_commands/check_netcard.cfg)
2010-09-17 23:28:20 [8399] RRD Datatype is GAUGE
2010-09-17 23:28:20 [8399] Template is check_netcard.php
2010-09-17 23:28:20 [8399] data2rrd called
2010-09-17 23:28:30 [8412] Using Config File /usr/local/nagios/etc/pnp/process_perfdata.cfg parameters
2010-09-17 23:28:30 [8412] process_perfdata.pl-0.4.13 starting in DEFAULT Mode
2010-09-17 23:28:30 [8412] Datatype set to 'SERVICEPERFDATA'
2010-09-17 23:28:30 [8412] Found Performance Data for 172.16.75.231 / Memory Usage ('Memory usage'=1255.57Mb;4778.36;5375.66;0.00;5972.95)
2010-09-17 23:28:30 [8412] No Custom Template found for check_nt (/usr/local/nagios/etc/pnp/check_commands/check_nt.cfg)
2010-09-17 23:28:30 [8412] RRD Datatype is GAUGE
2010-09-17 23:28:30 [8412] Template is check_nt.php
2010-09-17 23:28:30 [8412] data2rrd called
2010-09-17 23:28:30 [8412] RRDs Perl Modules are not installed. Falling back to rrdtool system call.
2010-09-17 23:28:30 [8412] /usr/local/rrdtool-1.0.50/bin/rrdtool update /usr/local/nagios/share/perfdata/172.16.75.231/Memory_Usage.rrd 1284737310:1255.57
2010-09-17 23:28:30 [8412] rrdtool update returns 0
2010-09-17 23:28:30 [8412] PNP exiting (runtime 0.007424s) ...
2010-09-17 23:28:40 [8423] Using Config File /usr/local/nagios/etc/pnp/process_perfdata.cfg parameters
2010-09-17 23:28:40 [8423] process_perfdata.pl-0.4.13 starting in DEFAULT Mode
2010-09-17 23:28:40 [8423] Datatype set to 'SERVICEPERFDATA'
2010-09-17 23:28:40 [8423] No Performance Data for 172.16.75.231 / Explorer
2010-09-17 23:28:40 [8423] PNP exiting ...
2010-09-17 23:28:40 [8425] Using Config File /usr/local/nagios/etc/pnp/process_perfdata.cfg parameters
2010-09-17 23:28:40 [8425] process_perfdata.pl-0.4.13 starting in DEFAULT Mode
2010-09-17 23:28:40 [8425] Datatype set to 'SERVICEPERFDATA'
2010-09-17 23:28:40 [8425] Found Performance Data for 172.16.75.245 / CPU LOAD ('5 min avg Load'=0%;80;90;0;100)
2010-09-17 23:28:40 [8425] No Custom Template found for check_nt (/usr/local/nagios/etc/pnp/check_commands/check_nt.cfg)
2010-09-17 23:28:40 [8425] RRD Datatype is GAUGE
2010-09-17 23:28:40 [8425] Template is check_nt.php
2010-09-17 23:28:40 [8425] data2rrd called
2010-09-17 23:28:40 [8425] RRDs Perl Modules are not installed. Falling back to rrdtool system call.
2010-09-17 23:28:40 [8425] /usr/local/rrdtool-1.0.50/bin/rrdtool update /usr/local/nagios/share/perfdata/172.16.75.245/CPU_LOAD.rrd 1284737320:0
2010-09-17 23:28:40 [8425] rrdtool update returns 0
2010-09-17 23:28:40 [8425] PNP exiting (runtime 0.007924s) ...

论坛徽章:
0
3 [报告]
发表于 2010-09-18 17:43 |只看该作者
/usr/local/nagios/share/perfdata/172.16.121.54/check_netcard.rrd
这个数据没有生成,也就是说,这个文件不存在或者不能访问
pnp4nagios需要读取rrd文件再绘图,而这个rrd文件无法访问

论坛徽章:
0
4 [报告]
发表于 2010-09-19 13:51 |只看该作者
现在就是有些可以生成rrd文件,证明rrdtool安装应该是没问题的吧。这个项目不行,是不是需要做一些配置才行?具体在哪个地方配置呢?谢谢!

论坛徽章:
0
5 [报告]
发表于 2010-09-28 09:14 |只看该作者
有些service是不生成performance data的(点击进去,performance data栏目为空),所以这些service不生成rrd文件

论坛徽章:
0
6 [报告]
发表于 2012-08-20 11:59 |只看该作者
RRD Database/usr/local/nagios/share/perfdata//被监控机/total_procs.rrd not found.
是不是进程也不生成performance data啊,无法生成图形
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP