Bug in syslog 0.5.2 (after move to Cacti 0.8.7e and PIA 2.6)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hpsmartyz
Posts: 34
Joined: Tue Oct 30, 2007 5:23 am

Bug in syslog 0.5.2 (after move to Cacti 0.8.7e and PIA 2.6)

Post by hpsmartyz »

all,

I have just upgraded from .7b to .7e and installed PIA 2.6.
I also installed back syslog pluggin.
Everything works perfectly except for one thing.

In syslog.php there is the following line:

Code: Select all

include($syslog_config["graphtime"] ? "./include/html/inc_timespan_settings.php" : "plugins/syslog/html/syslog_timespan_settings.php");
however apparently the directory ./include/html
does not exist anymore in .7e and the file inc_timespan_settings.php can not be found in the whole cacti tree structure.
Last edited by hpsmartyz on Tue Feb 23, 2010 7:57 pm, edited 1 time in total.
hpsmartyz
Posts: 34
Joined: Tue Oct 30, 2007 5:23 am

Post by hpsmartyz »

the bug only happens when, after login-in, and arriving on the Console page,
one directly goes to the syslog page.
It does not happen if one goes e.g. on the graph page before going ot the syslog one.

I solved the problem by modifying in syslog.php

Code: Select all

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

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");
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests