SQL Select Errors in Fresh 87g install

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I was going to ask this.
But I'm running 087g fine on F12/64 bit. So I suppose it's not only the 64bit thingy.
R.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SQL Select Errors in Fresh 87g install

Post by gandalf »

dononeil wrote:This seems to be a problem with the PIA.
How come? On a pure cacti install, without PIA, do you get the same error?
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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
User avatar
phreakocious
Posts: 7
Joined: Mon Sep 25, 2006 7:44 pm

Post by phreakocious »

Thanks for getting back on this... I am going to try your solution, as I'm not using the syslog plugin.
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

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
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?

I haven't had a chance to try the fresh install yet, but I will post results once I do.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

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.
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.

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
alexfossa
Posts: 7
Joined: Tue Mar 29, 2005 12:50 pm

Post by alexfossa »

Any idea how to solve this. I've got the same issue on a fresh install of Centos with Cacti.

Thanks,

Alex
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

TheWitness wrote:As mentioned else where install lib/database.php from the 0.8.7e version of Cacti.
I doubt this is going to solve my problem as I was never able to get 87e to work either... the same problem.

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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Posted lib/database.php on request.
R.
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest