SQL Select Errors in Fresh 87g install
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SQL Select Errors in Fresh 87g install
How come? On a pure cacti install, without PIA, do you get the same error?dononeil wrote:This seems to be a problem with the PIA.
When using PIA, you know that you have to copy config.php.dist to config.php and apply the required database settings and url_path?
If problem still applies:
If you have an old 087e install at hand, please replace ./lib/adodb of 087g by the code from 087e and retry.
Please post results.
R.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This is a PHP issue. You can aleviate if you simply back off the lib/database.php to the 0.8.7e version of that file.
However, tools like syslog v1.04 will not work properly if the syslog database is maintained separately from the Cacti database.
TheWitness
However, tools like syslog v1.04 will not work properly if the syslog database is maintained separately from the Cacti database.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- phreakocious
- Posts: 7
- Joined: Mon Sep 25, 2006 7:44 pm
Which version od PHP does not have this issue? Is it an issue with a new verision of PHP where we need to roll back to an older one, or vice versa?TheWitness wrote:This is a PHP issue. You can aleviate if you simply back off the lib/database.php to the 0.8.7e version of that file.
However, tools like syslog v1.04 will not work properly if the syslog database is maintained separately from the Cacti database.
TheWitness
I haven't had a chance to try the fresh install yet, but I will post results once I do.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
We are not sure the versions yet as we have not identified the specific issue other than to know it has to do with assigning a class to a variable and only affects some versions of PHP. I have seen it in 5.2.1 for sure. Not sure if it affects all builds.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I was never able to ger 87e to work either, same problem. I figured it was something with 87e so I just waited until f/g came out.TheWitness wrote:We are not sure the versions yet as we have not identified the specific issue other than to know it has to do with assigning a class to a variable and only affects some versions of PHP. I have seen it in 5.2.1 for sure. Not sure if it affects all builds.
What version of PHP are you running? What extensions/patches? Since my machine is basically a scratch machine, maybe I can try re-creating the issue with different versions of PHP.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I can't reproduce the problem. If you want to try, that would be good. My version varies.
Works fine on Debian Lenny:
PHP 5.3.2-1 with Suhosin-Patch (cli) (built: Mar 14 2010 01:11:12)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Works fine on Windows:
PHP 5.2.13 (cli) (built: Feb 24 2010 14:32:32)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
Works fine on Debian Lenny:
PHP 5.3.2-1 with Suhosin-Patch (cli) (built: Mar 14 2010 01:11:12)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Works fine on Windows:
PHP 5.2.13 (cli) (built: Feb 24 2010 14:32:32)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
As mentioned else where install lib/database.php from the 0.8.7e version of Cacti. Also, please PM Gandalf as he has a new version of that file ready for others to test.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I doubt this is going to solve my problem as I was never able to get 87e to work either... the same problem.TheWitness wrote:As mentioned else where install lib/database.php from the 0.8.7e version of Cacti.
You're running a newer version of PHP, I think that may be the key. There are quite a few differences between 5.1 and 5.2/5.3. I'm going to try to test upgrading PHP today.
Ok... I tried out the lib, now the SQL errors are gone and things seem to be working much better...
However, now I'm seeing this:
07/27/2010 11:20:01 AM - SPINE: Poller[0] NOTE: Spine did not detect multithreaded device polling.
What does that mean?
I'm also not seeing most of the graphs get updated when running with Boost (some do, some don't, most stay red X's) and the realtime plugin is still just showing a red X when it's run, even on a graph that is updating.
I only have one device defined, the local linux host, and am using the local linux template.
However, now I'm seeing this:
07/27/2010 11:20:01 AM - SPINE: Poller[0] NOTE: Spine did not detect multithreaded device polling.
What does that mean?
I'm also not seeing most of the graphs get updated when running with Boost (some do, some don't, most stay red X's) and the realtime plugin is still just showing a red X when it's run, even on a graph that is updating.
I only have one device defined, the local linux host, and am using the local linux template.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I recommend doing this one at a time.
So for now, we first know that the SQL errors have been fixed.
As to the threading, Larry has to drop in. I'm not (yet) familiar with that option.
Then I recommend deactivating those plugins until you're satisfied. Then enable them one by one and retry. You may have to post errors to those plugin's forum threads.
R.
So for now, we first know that the SQL errors have been fixed.
As to the threading, Larry has to drop in. I'm not (yet) familiar with that option.
Then I recommend deactivating those plugins until you're satisfied. Then enable them one by one and retry. You may have to post errors to those plugin's forum threads.
R.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
It's a new 'not-so-advertised' feature that allows you to take a host and poll it with multiple threads. This is a requirement for some 'real big' systems.
It is a part of 0.8.7g spine, but the UI component is not there until 0.8.8 (at least for most customers).
TheWitness
It is a part of 0.8.7g spine, but the UI component is not there until 0.8.8 (at least for most customers).
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 1 guest