[SOLVED] Timespan error on Syslog v0.5.2 - 0.8.7d - PA 2.4

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
tonyperez
Posts: 34
Joined: Sat Nov 05, 2005 12:43 am
Location: Guadalajara, Jalisco, Mexico

[SOLVED] Timespan error on Syslog v0.5.2 - 0.8.7d - PA 2.4

Post by tonyperez »

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

Code: Select all

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: Select all

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: Select all

#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. :)
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

You rock! Thanks for the tip
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

thanks. that was just what I needed.
doraemon0214
Posts: 5
Joined: Sun Jul 17, 2005 11:03 pm

Post by doraemon0214 »

Thanks. I also got this error and solved your suggestion.
phamtankiet
Posts: 3
Joined: Tue Apr 05, 2011 3:54 am

Re: [SOLVED] Timespan error on Syslog v0.5.2 - 0.8.7d - PA 2

Post by phamtankiet »

i have just proplem follow ( because i ugradge Cactiez V.6 to Cacti 0.8.7g
when i click Tab syslogs in Cacti, i see log
Can you help me fix it, i use Cacti 0.8.7g va PA 2.8
Image

thks so much!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests