nagios部分项目无法绘图

发布于 2022-09-07 06:24:43 字数 904 浏览 7 评论 5

在安装部署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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

娇纵 2022-09-11 04:45:24

RRD Database/usr/local/nagios/share/perfdata//被监控机/total_procs.rrd not found.
是不是进程也不生成performance data啊,无法生成图形

人生百味 2022-09-11 01:58:12

有些service是不生成performance data的(点击进去,performance data栏目为空),所以这些service不生成rrd文件

人海汹涌 2022-09-08 19:17:35

现在就是有些可以生成rrd文件,证明rrdtool安装应该是没问题的吧。这个项目不行,是不是需要做一些配置才行?具体在哪个地方配置呢?谢谢!

恏ㄋ傷疤忘ㄋ疼 2022-09-08 08:26:30

/usr/local/nagios/share/perfdata/172.16.121.54/check_netcard.rrd
这个数据没有生成,也就是说,这个文件不存在或者不能访问
pnp4nagios需要读取rrd文件再绘图,而这个rrd文件无法访问

沉默的熊 2022-09-07 07:04:31

部分的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) ...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文