免费注册 查看新帖 |

Chinaunix

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

cacti &nagios [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-26 23:01 |只看该作者 |倒序浏览
ndoutils已经调通了,但是现在一个要命的问题是,我压根就看不到npc tab

global.php
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'npc';

1、user management------>Plugin Management
2、install---->enable
3、settings----------->npc
填入了一下信息
/var/www/html/nagios/var/rw/nagios.cmd
http://192.168.10.10/nagios
4、user management-->npc
                                 --->NPC Global Commands
都勾选了然后看不到npc 的tab

我靠都要郁闷死了,

查看/var/log/http/error.log报出以下错误:
Mon Jun 21 19:17:29 2010] [error] [client 192.168.10.111] PHP Notice:  Undefined variable: config in /var/www/htm
l/cacti/lib/functions.php on line 1654, referer: http://192.168.10.10/cacti/graphs.php
[Mon Jun 21 19:17:29 2010] [error] [client 192.168.10.111] PHP Notice:  Undefined variable: config in /var/www/htm
l/cacti/lib/functions.php on line 1655, referer: http://192.168.10.10/cacti/graphs.php
[Mon Jun 21 19:17:29 2010] [error] [client 192.168.10.111] PHP Notice:  Undefined variable: rrdtool_pipe in /var/w
ww/html/cacti/lib/rrd.php on line 563, referer: http://192.168.10.10/cacti/graph ... mp;tree_id=1&le
af_id=7&select_first=true
[Mon Jun 21 19:17:29 2010] [error] [client 192.168.10.111] PHP Notice:  Undefined variable: rrdtool_pipe in /var/w
ww/html/cacti/lib/rrd.php on line 563, referer: http://192.168.10.10/cacti/graph ... mp;tree_id=1&le
af_id=7&select_first=true


谢谢各位大侠,帮着看一下吧。

论坛徽章:
0
2 [报告]
发表于 2010-06-26 23:07 |只看该作者
看了一下出问题的那几行
/var/www/html/cacti/lib/functions.php
1654  是 "index.php:" => array("title" => "Console", "mapping" => "", "url" => $config['url_path'] . "index.php", "level" => "0"),

/var/www/html/cacti/lib/rrd.php
$data = api_plugin_hook_function('rrdtool_function_graph_cache_check', array('local_graph_id' => $local_graph_id,'rra_id' => $rra_id,'rrd_struc' => $rrdtool_pipe,'graph_data_array' => $graph_data_array, 'return' => false));

论坛徽章:
0
3 [报告]
发表于 2010-06-27 09:46 |只看该作者
php-json 也已经装了,不知道什么原因啊!

论坛徽章:
0
4 [报告]
发表于 2010-06-28 10:10 |只看该作者
没人回帖,自己顶吧!

论坛徽章:
0
5 [报告]
发表于 2010-06-28 10:11 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP