Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Dec 18, 2017 12:22 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Feb 26, 2013 10:42 am 
Offline

Joined: Tue Feb 26, 2013 10:34 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Feb 26, 2013 1:21 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
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 ?

_________________
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Feb 26, 2013 1:47 pm 
Offline

Joined: Tue Feb 26, 2013 10:34 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Feb 26, 2013 3:01 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
try commenting out line 132 in your /usr/local/share/cacti/plugins/thold/includes/settings.php file:

Code:
   include_once("./plugins/thold/thold_functions.php");

   define_syslog_variables();

   if ($config["cacti_server_os"] == "unix") {



Code:
   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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Wed Feb 27, 2013 4:26 pm 
Offline

Joined: Tue Feb 26, 2013 10:34 am
Posts: 3
phalek wrote:
try commenting out line 132 in your /usr/local/share/cacti/plugins/thold/includes/settings.php file:

Code:
   include_once("./plugins/thold/thold_functions.php");

   define_syslog_variables();

   if ($config["cacti_server_os"] == "unix") {



Code:
   include_once("./plugins/thold/thold_functions.php");

   // define_syslog_variables();

   if ($config["cacti_server_os"] == "unix") {



Hi, commenting out line 132 worked, :) ty very much


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Sat Mar 16, 2013 3:10 am 
Offline

Joined: Fri Mar 15, 2013 5:55 am
Posts: 4
Location: Berlin, Germany
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 :lol:


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Sat Mar 16, 2013 3:20 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
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 ... :-)

_________________
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Mon Mar 18, 2013 3:31 am 
Offline

Joined: Fri Mar 15, 2013 5:55 am
Posts: 4
Location: Berlin, Germany
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?action=user_edit&tab=user_realms_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_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.php?action=view_logfile


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Mon Mar 18, 2013 4:47 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
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 ?

_________________
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Mon Mar 18, 2013 11:49 am 
Offline

Joined: Fri Mar 15, 2013 5:55 am
Posts: 4
Location: Berlin, Germany
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.


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Mon Mar 18, 2013 1:00 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
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.

_________________
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Mon Mar 18, 2013 3:08 pm 
Offline
Cacti Pro User

Joined: Tue Aug 29, 2006 4:09 pm
Posts: 544
Location: NL
RackowBerlin 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.


Please read the README.txt of the Debian package as described in the FAQ

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
My PPA for cacti backports in Ubuntu
FAQ Ubuntu and Debian differences
Generic cacti debugging


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Mar 19, 2013 2:17 am 
Offline

Joined: Fri Mar 15, 2013 5:55 am
Posts: 4
Location: Berlin, Germany
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.


Top
 Profile  
 
 Post subject: Re: Error http 500 Cacti 0.8.8 settings
PostPosted: Tue Mar 19, 2013 2:20 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2644
Location: Kressbronn, Germany
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group