Hi,
I cannot see my settings page (at all) after I check the install link on the Plugin management page. Thold tab appears up above but when I click on it I got an error log (below).
Can you please help me?
FreeBSD 9.0
Cacti 0.8.8a
Thold 0.4.9
Log:
06/30/2012 03:29:13 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT * FROM thold_data LEFT JOIN user_auth_perms ON ((thold_data.graph_id=user_auth_perms.item_id AND user_auth_perms.type=1 AND user_auth_perms.user_id=1) OR (thold_data.host_id=user_auth_perms.item_id AND user_auth_perms.type=3 AND user_auth_perms.user_id=1) OR (thold_data.graph_template=user_auth_perms.item_id AND user_auth_perms.type=4 AND user_auth_perms.user_id=1)) WHERE ((user_auth_perms.type != 1 OR user_auth_perms.type is null) AND ((user_auth_perms.type != 3) OR (user_auth_perms.type is null)) AND ((user_auth_perms.type != 4) OR (user_auth_perms.type is null))) ORDER BY thold_alert DESC LIMIT 0,"
Empty Settings Page after THOLD Installation
Moderators: Developers, Moderators
- okeozkilic
- Posts: 9
- Joined: Thu Mar 24, 2011 2:54 pm
- Location: Ankara / Turkey
Empty Settings Page after THOLD Installation
There are 10 kinds of people in the world. Those who understand binary, and those who don't...
- okeozkilic
- Posts: 9
- Joined: Thu Mar 24, 2011 2:54 pm
- Location: Ankara / Turkey
Re: Empty Settings Page after THOLD Installation
I finally found something...
remarked the following line:
define_syslog_variables();
in file:
/usr/local/www/cacti/plugins/thold/includes/settings.php
any comments on the subject will be appreciated. I was too lazy (and happy) to search for define_syslog_variables(); function within the php files. I will do so in an hour or two, but now its time to celebrate
and the mysql error message was gone after I added a thold rule and applied it to one of my devices...
remarked the following line:
define_syslog_variables();
in file:
/usr/local/www/cacti/plugins/thold/includes/settings.php
any comments on the subject will be appreciated. I was too lazy (and happy) to search for define_syslog_variables(); function within the php files. I will do so in an hour or two, but now its time to celebrate
and the mysql error message was gone after I added a thold rule and applied it to one of my devices...
There are 10 kinds of people in the world. Those who understand binary, and those who don't...
Re: Empty Settings Page after THOLD Installation
I had to do the same thing in my installations. Unfortunately I didn't really bother to look too much further into it.
-Dan
-Dan
Please mark the topic solved if this resolves your problem.
Re: Empty Settings Page after THOLD Installation
Hi, Yep ended up with the same myself, Guess you guys also run PHP 5.4 or newer.
define_syslog_variables()
[root@poller hold]# grep -ir define_syslog *
includes/settings.php: /* define_syslog_variables(); */
thold_functions.php: /* define_syslog_variables(); */
thold_functions.php: /* define_syslog_variables(); */
With syslog alert enabled:
Jul 6 09:50:20 poller CactiTholdLog[2164]: host1 - Traffic - ge-0/0/0 [traffic_in] went above threshold of 600 with 1598.1739 at trigger 1 out of 1 - http://192.168.1.60/cacti//graph.php?lo ... rra_id=all
so yeah, the solution seems to be to just comment it out.
define_syslog_variables()
so that seems to be why.This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
So I commented it out and syslog works.define_syslog_variables(), which initializes all syslog related variables. This function isn't required because the constants it defines are already defined globally. Simply removing this function call should be all that is necessary.
[root@poller hold]# grep -ir define_syslog *
includes/settings.php: /* define_syslog_variables(); */
thold_functions.php: /* define_syslog_variables(); */
thold_functions.php: /* define_syslog_variables(); */
With syslog alert enabled:
Jul 6 09:50:20 poller CactiTholdLog[2164]: host1 - Traffic - ge-0/0/0 [traffic_in] went above threshold of 600 with 1598.1739 at trigger 1 out of 1 - http://192.168.1.60/cacti//graph.php?lo ... rra_id=all
so yeah, the solution seems to be to just comment it out.
Who is online
Users browsing this forum: No registered users and 5 guests