nagios部分项目无法绘图
在安装部署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.
能告诉我在哪个地方需要修改哪些吗,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
RRD Database/usr/local/nagios/share/perfdata//被监控机/total_procs.rrd not found.
是不是进程也不生成performance data啊,无法生成图形
有些service是不生成performance data的(点击进去,performance data栏目为空),所以这些service不生成rrd文件
现在就是有些可以生成rrd文件,证明rrdtool安装应该是没问题的吧。这个项目不行,是不是需要做一些配置才行?具体在哪个地方配置呢?谢谢!
/usr/local/nagios/share/perfdata/172.16.121.54/check_netcard.rrd
这个数据没有生成,也就是说,这个文件不存在或者不能访问
pnp4nagios需要读取rrd文件再绘图,而这个rrd文件无法访问
部分的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) ...