Aggregate Plugin ERRNO:2048

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
dbuchner
Posts: 16
Joined: Thu Mar 13, 2008 7:01 pm
Location: Sydney
Contact:

Aggregate Plugin ERRNO:2048

Post by dbuchner »

Evening

Until recently - not sure what exactly has changed - the plugin architecture was working just fine. It always does until it breaks. grrr

When I go through and select graphs via Graph Management, check the graphs I want to aggregate, select drop down "Create Aggregate Graphs", click Go. Fill in Title and select the colour template of my choosing and click on Yes to create the aggregate.

Error:

Code: Select all

PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/local/apache2/htdocs/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
Line 536 & 537 read (respectively):

Code: Select all

$recordSet =& new $rsclass(-1,$zthis->fetchMode);
                $recordSet->connection = &$zthis;
Had a look at the SQL statements as per the debug log - however they aren't telling me much...see attached.

Anyone come across this or able to point me in another(right) direction sure would be appreciated.

Yes, I have seen the other thread relating to this error - unfortunately it goes nowhere - except the user being quite rude to the witness. ;)
http://forums.cacti.net/post-110192.html

Cacti: 0.8.7b
Mysql:5.0.51a
Plugin Arch: 2.0
PHP: 5.2.5
Perl: 5.8.5
Apache: 2.2.6

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

Post by gandalf »

What's your setting of php.ini's variable allow_call_time_pass_reference, then?
Reinhard
dbuchner
Posts: 16
Joined: Thu Mar 13, 2008 7:01 pm
Location: Sydney
Contact:

Post by dbuchner »

Hi Reinhardt,

thanks for the reply, the variable is set to ON, should there be a specific value against it or is there a recommended value?

Code: Select all

Directive	                                Local Value	Master Value
allow_call_time_pass_reference	On	                On

I compiled PHP 5.2.5 with the same config vars as per sunfreeware's version which was working fine with the aggregate plugin - except that it had been compiled without --enable-sockets - hence my reason for the recompile.

Code: Select all

'./configure' '--prefix=/opt/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/' '--with-config-file-path=/opt/php/etc' '--with-openssl=/usr/local/ssl/' '--with-gd=/usr/local/' '--with-gdbm=/usr/lib' '--with-freetype-dir=/usr/local/' '--with-jpeg-dir=/usr/local/' '--with-png-dir' '--with-zlib=/usr/local/' '--enable-mbstring' '--enable-sockets'
dbuchner
Posts: 16
Joined: Thu Mar 13, 2008 7:01 pm
Location: Sydney
Contact:

Post by dbuchner »

Hmmm soooo now I am a little embarrassed - it is working again...with the exception of the skins for the Color Templates link which isn't loading all the include path details and as such looks a little screwy.

What's changed...

I removed everything I could find in relation to the aggregate plugin, re-installed the plugin and all is well. I had done this before however in the later case I removed the plugin details before I copied it all back.

So in short. User error.

Thanks for your response anyway.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dbuchner wrote:.with the exception of the skins for the Color Templates link which isn't loading all the include path details and as such looks a little screwy.
Please post details
Reinhard
dbuchner
Posts: 16
Joined: Thu Mar 13, 2008 7:01 pm
Location: Sydney
Contact:

Post by dbuchner »

According to the error log the following files are not present in the /images directory.

Code: Select all

[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/cacti_backdrop.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/tab_graphs.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/tab_console_down.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/cacti_logo.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/transparent_line.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/left_border.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/shadow_gray.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/shadow.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
Here is my path to the plugin:

Code: Select all

bash-3.00# pwd
/usr/local/apache2/htdocs/plugins/reportit/images
bash-3.00# ls -la
total 82
drwxrwxrwx   2 root     root         512 Mar 18 09:15 .
drwxrwxrwx   7 root     root         512 Mar 17 17:02 ..
-r--r--r--   1 root     root       17920 Oct  1 13:46 Thumbs.db
-r--r--r--   1 root     root         900 Sep 23 11:29 bar.gif
-r--r--r--   1 root     root         776 Sep 23 11:29 bar_pie.png
-r--r--r--   1 root     root        1745 Sep 23 11:29 button_back.gif
-r--r--r--   1 root     root        1716 Sep 23 11:29 button_debug.gif
-r--r--r--   1 root     root        2006 Sep 23 11:29 button_next.gif
-r--r--r--   1 root     root          47 Sep 23 11:29 index.php
-r--r--r--   1 root     root        1045 Sep 23 11:29 pie.gif
-r--r--r--   1 root     root        2537 Sep 23 11:29 tab_reportit.gif
-r--r--r--   1 root     root        2622 Sep 23 11:29 tab_reportit_down.png
-r--r--r--   1 root     root        2814 Sep 23 11:29 tab_reportit_up.png
This is the case for all the plugins I have currently installed. (tools/docs/reportit/aggregate). Clearly I messed something up - somewhere along the way. I have gone and linked the images directory into the plugin directories but this hasn't completely solved the issues.
Attachments
Picture 1.png
Picture 1.png (94.64 KiB) Viewed 4088 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You configuration is not correct. The various colors are indicative to the url_path not be set correctly. Also, from your prior error messages, it would appear that ADODB is not installed in the Cacti directory. This is a sure sine of trouble. You appear to have ADODB installed separately.

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?
lcj
Posts: 2
Joined: Thu Mar 20, 2008 8:25 am

Post by lcj »

Well, hmmm. I can't seem to get past this error for the aggregate plugin, which by the way is very cool! The plugin, not the error! :)

The first time I setup an aggregate I received the adodb reference error. I figured I did something wrong, so went back and did it again and it worked.. and it's still graphing. However, on subsequent attempts I continually get the adodb error.

I have followed Dan's footsteps, removing and reinstalling the AG plug but to no avail. ADODB is where it should be in Cacti /lib/adodb .... Although, I had to do an apt-get install libphp-adodb. Which in turn mentioned that the adodb path in php.ini has changed. So I have corrected the "include path" in php.ini.

Deb - Etch
Apache - 1.3.34
PHP5
MySql 5.0
Cacti - latest port as of 03.20.08
PA - latest port as of 03.20.08


*******
Ok ..... this is interesting ..... I've had this reply window up for a while. Probably an hour or more while doing several other things. I had built an aggregate just prior to starting this reply and, of course, received the adodb error.

Seems like the graph was generated anyway. I just logged back into cacti and went to Graph Management and by golly, there it was.

So .. hmmm... why the error ....

Thanks folks, :)

Les
lcj
Posts: 2
Joined: Thu Mar 20, 2008 8:25 am

Post by lcj »

and after a bit more re-googling ...

This error is caused by this line # 537 as Dan stated.
$recordSet =& new $rsclass(-1,$zthis->fetchMode);
$recordSet->connection = &$zthis;
An adjusted line:
$recordSet = new $rsclass(-1,$zthis->fetchMode);
$recordSet->connection = &$zthis;
Remove the & after the " = " and the error goes away.

Don't know what else that breaks now ... :)

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

Post by TheWitness »

Send that to the ADODB forum's/support group. Keep us posted. It may be a PHP setting to maintain depricated option:

Code: Select all

allow_call_time_pass_reference = On
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