免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7184 | 回复: 3

cacti+nagios的php错误提示 [复制链接]

论坛徽章:
1
2015元宵节徽章
日期:2015-03-06 15:50:39
发表于 2010-12-11 18:38 |显示全部楼层
本帖最后由 dbsrv 于 2010-12-12 17:48 编辑

cacti-0.87e
nagios-3.2.3

安装并登陆成功后,每次从console或者graphs的标签页点击npc时,可以正常进入,但httpd/error_log中会弹出三行相同的错误提示
[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php
[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php
[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php

搜了半天,说改php.ini中的两个参数,但无效
error_reporting = E_ALL & ~E_NOTICE
或者
display_error = Off
还有个说法
The npc_* tables are not created correctly by the NPC plugin.

Modified and then loaded the ndoutils mysql.sql file into the cacti database before enabling NPC plugin .

这个也试过了,没戏。

论坛徽章:
0
发表于 2011-11-30 09:13 |显示全部楼层
我也和你一样
[Wed Nov 30 08:53:13 2011] [error] [client 192.168.10.33] PHP Notice:  Undefined index:  action in /usr/local/wwwroot/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.120.18/cacti/index.php

nagios status 没有状态显示 但host status 和service status 又都是正常的

论坛徽章:
0
发表于 2011-11-30 09:55 |显示全部楼层
求解

论坛徽章:
0
发表于 2015-08-14 13:39 |显示全部楼层
我也遇到这个问题, 怎么破

[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php
[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php
[Sun Dec 12 02:36:14 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index:  action in /var/www/html/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://192.168.1.203/cacti/index.php
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP