Chinaunix首页 | 论坛 | 博客
  • 博客访问: 267623
  • 博文数量: 82
  • 博客积分: 2477
  • 博客等级: 大尉
  • 技术积分: 725
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-06 23:24
文章分类

全部博文(82)

文章存档

2013年(1)

2012年(3)

2011年(15)

2010年(36)

2009年(27)

分类: 网络与安全

2009-07-09 17:06:54

I get this errors after install Syslog v0.5.2 with Cacti 0.8.7e and PA 2.5:

Code:

Warning: include(./include/html/inc_timespan_settings.php) [function.include]: failed to open stream: No such file or directory in /var/www/cacti/plugins/syslog/syslog.php on line 126

Warning: include() [function.include]: Failed opening './include/html/inc_timespan_settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cacti/plugins/syslog/syslog.php on line 126


This error is generated on line 126 syslog.php code because the include for timespan settings is wrong.

Original line 126 on syslog.php
Code:

include($syslog_config["graphtime"] ? "./include/html/inc_timespan_settings.php" : "plugins/syslog/html/syslog_timespan_settings.php");


Just change the line (or coment and add a new one on my case) on line 126:

Code:

#include($syslog_config["graphtime"] ? "./include/html/inc_timespan_settings.php" : "plugins/syslog/html/syslog_timespan_settings.php");
include($syslog_config["graphtime"] ? "./lib/timespan_settings.php" : "plugins/syslog/html/syslog_timespan_settings.php");


I hope this help to others to resolve this issue.
阅读(973) | 评论(0) | 转发(0) |
0

上一篇:syslog-ng学习心得之一

下一篇:svg详细介绍

给主人留下些什么吧!~~