Error http 500 Cacti 0.8.8 settings
Moderators: Developers, Moderators
Error http 500 Cacti 0.8.8 settings
Hi, i have a problem with the settings in cacti, with the plugin Thold, the plugin settings works fine but after i install Thold i try to access the settings and i get http 500 error. Thold works fine in all cases.
Here the apache2 logs:
Tue Feb 26 10:17:57 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:03 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:23 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:38 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132 [Tue Feb 26 10:58:19 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
Here the apache2 logs:
Tue Feb 26 10:17:57 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:03 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:23 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
[Tue Feb 26 10:23:38 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132 [Tue Feb 26 10:58:19 2013] [error] [client 192.168.1.230] PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://192.168.1.250/cacti/plugins.php
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
are you using Php 5.4 ?
are you using Php 5.4 ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Error http 500 Cacti 0.8.8 settings
phalek wrote:This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
are you using Php 5.4 ?
Yes im using php 5.4.6
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
try commenting out line 132 in your /usr/local/share/cacti/plugins/thold/includes/settings.php file:
Code: Select all
include_once("./plugins/thold/thold_functions.php");
define_syslog_variables();
if ($config["cacti_server_os"] == "unix") {
Code: Select all
include_once("./plugins/thold/thold_functions.php");
// define_syslog_variables();
if ($config["cacti_server_os"] == "unix") {
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Error http 500 Cacti 0.8.8 settings
phalek wrote:try commenting out line 132 in your /usr/local/share/cacti/plugins/thold/includes/settings.php file:
Code: Select all
include_once("./plugins/thold/thold_functions.php"); define_syslog_variables(); if ($config["cacti_server_os"] == "unix") {
Code: Select all
include_once("./plugins/thold/thold_functions.php"); // define_syslog_variables(); if ($config["cacti_server_os"] == "unix") {
Hi, commenting out line 132 worked,

-
- Posts: 4
- Joined: Fri Mar 15, 2013 5:55 am
- Location: Berlin, Germany
Re: Error http 500 Cacti 0.8.8 settings
Hey
I'm totally new to Cacti and have some problems with the Thold plugin. I have installed Cacti on a fresh Ubuntu and so I got PHP 5.4.6 like jFlorenz. I was commenting out line 132 and it helped a bit. now I can see the settings again BUT I can still not open anything relate to Thold. I became the Error 500 in Apache and in the logs I see that they are a lot unknown functions.
I'm using Cacti 0.8.8a and php 5.4.6
Thanks fore helping and sorry fore my strange english, I'm from Germany
I'm totally new to Cacti and have some problems with the Thold plugin. I have installed Cacti on a fresh Ubuntu and so I got PHP 5.4.6 like jFlorenz. I was commenting out line 132 and it helped a bit. now I can see the settings again BUT I can still not open anything relate to Thold. I became the Error 500 in Apache and in the logs I see that they are a lot unknown functions.
I'm using Cacti 0.8.8a and php 5.4.6
Thanks fore helping and sorry fore my strange english, I'm from Germany

- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
What does the log say ? It's a bit too vague to just say there are lot of unknown functions.
Ein bischen mehr Details bitte ...
Ein bischen mehr Details bitte ...

Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 4
- Joined: Fri Mar 15, 2013 5:55 am
- Location: Berlin, Germany
Re: Error http 500 Cacti 0.8.8 settings
Okay so her you have some lines out of the Apache2 log:
[Mon Mar 18 09:02:01 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function plugin_thold_upgrade() in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 39, referer: http://localhost/cacti/user_admin.php?a ... _edit&id=1
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(./include/auth.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 29, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening './include/auth.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 29, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/thold_functions.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/thold_functions.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/setup.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/setup.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/includes/database.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/includes/database.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Fatal error: Call to undefined function plugin_thold_upgrade() in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 39, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:02:01 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function plugin_thold_upgrade() in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 39, referer: http://localhost/cacti/user_admin.php?a ... _edit&id=1
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(./include/auth.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 29, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening './include/auth.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 29, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/thold_functions.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/thold_functions.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 31, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/setup.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/setup.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 32, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Notice: Undefined variable: config in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(/plugins/thold/includes/database.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Warning: include_once(): Failed opening '/plugins/thold/includes/database.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 33, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
[Mon Mar 18 09:07:57 2013] [error] [client 192.168.200.137] PHP Fatal error: Call to undefined function plugin_thold_upgrade() in /usr/local/share/cacti/plugins/thold/thold_graph.php on line 39, referer: http://192.168.200.10/cacti/utilities.p ... ew_logfile
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
This looks like an apt-get install.
Does the file
/usr/local/share/cacti/include/auth.php
and
/usr/local/share/cacti/include/config.php
exist ?
Does the file
/usr/local/share/cacti/include/auth.php
and
/usr/local/share/cacti/include/config.php
exist ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 4
- Joined: Fri Mar 15, 2013 5:55 am
- Location: Berlin, Germany
Re: Error http 500 Cacti 0.8.8 settings
Yes it is an apt-get Installation. Im not at work at the moment but I believe THW Files are there. But if Not?
I will Check it tomorrow.
I found your book at Amazone, hope it will help.
I will Check it tomorrow.
I found your book at Amazone, hope it will help.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
the packages usually put the config files in other places (e.g. /etc/cacti and the like ). The RPM package had a similiar issue as all plugins expect the config.php file to be in /path/to/cacti/include.
They solved it by creating a symlink to the /etc/cacti/config file witin that include dir.
So search for the config.php file (e.g. usign "locate config.php" ) and create a symlink to it.
Or, start over and install using the source files ( The HowTo Section has some install guides for ubuntu based on this.
They solved it by creating a symlink to the /etc/cacti/config file witin that include dir.
So search for the config.php file (e.g. usign "locate config.php" ) and create a symlink to it.
Or, start over and install using the source files ( The HowTo Section has some install guides for ubuntu based on this.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Error http 500 Cacti 0.8.8 settings
Please read the README.txt of the Debian package as described in the FAQRackowBerlin wrote:Yes it is an apt-get Installation. Im not at work at the moment but I believe THW Files are there. But if Not?
I will Check it tomorrow.
I found your book at Amazone, hope it will help.
By the way, which version of the Debian package are you running, because I thought the automatic linking to /usr/local/share did not exist for so long.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
-
- Posts: 4
- Joined: Fri Mar 15, 2013 5:55 am
- Location: Berlin, Germany
Re: Error http 500 Cacti 0.8.8 settings
Oh boys THX so mutch. IT WORKS.
So I just have set up the Thresholds and I hope that is the point your book will help.
So I just have set up the Thresholds and I hope that is the point your book will help.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Error http 500 Cacti 0.8.8 settings
If not, feel free to ask in the forum ( Probably the Thold section then ) if you need help. This community is quite active and a lot of help and information can be found here.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Who is online
Users browsing this forum: No registered users and 40 guests