Aggregate plugin error
Moderators: Developers, Moderators
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
Aggregate plugin error
Cacti 0.8.6j
Plugin Arch 1.1
Aggregate 0.63
When I select "yes" at create aggregate graph I get:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
I have been searching for a solution and haven't found anything yet.
I tried to patch the graphs.php file with the patch file included but it always fails on the 3rd hunk.
patch
patching file graphs.php
Hunk #1 succeeded at 49 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 239 with fuzz 2 (offset -123 lines).
Hunk #3 FAILED at 381.
1 out of 3 hunks FAILED -- saving rejects to file graphs.php.rej
And the rej file includes:
***************
*** 376,381 ****
</td>
</tr>\n
";
}
if (!isset($graph_array)) {
--- 381,391 ----
</td>
</tr>\n
";
+ }else {
+ $save["drp_action"] = $_POST["drp_action"];
+ $save["graph_list"] = $graph_list;
+ $save["graph_array"] = $graph_array;
+ do_hook_function("graphs_action_prepare", $save);
}
if (!isset($graph_array)) {
Any ideas?
Thanks,
John
Plugin Arch 1.1
Aggregate 0.63
When I select "yes" at create aggregate graph I get:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
I have been searching for a solution and haven't found anything yet.
I tried to patch the graphs.php file with the patch file included but it always fails on the 3rd hunk.
patch
patching file graphs.php
Hunk #1 succeeded at 49 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 239 with fuzz 2 (offset -123 lines).
Hunk #3 FAILED at 381.
1 out of 3 hunks FAILED -- saving rejects to file graphs.php.rej
And the rej file includes:
***************
*** 376,381 ****
</td>
</tr>\n
";
}
if (!isset($graph_array)) {
--- 381,391 ----
</td>
</tr>\n
";
+ }else {
+ $save["drp_action"] = $_POST["drp_action"];
+ $save["graph_list"] = $graph_list;
+ $save["graph_array"] = $graph_array;
+ do_hook_function("graphs_action_prepare", $save);
}
if (!isset($graph_array)) {
Any ideas?
Thanks,
John
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Aggregate plugin error
As per READMEjrothlisberger wrote:Cacti 0.8.6j
Plugin Arch 1.1
Aggregate 0.63
...
I tried to patch the graphs.php file with the patch file included but it always fails on the 3rd hunk.
patch
patching file graphs.php
Hunk #1 succeeded at 49 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 239 with fuzz 2 (offset -123 lines).
Hunk #3 FAILED at 381.
1 out of 3 hunks FAILED -- saving rejects to file graphs.php.rej
the patch is NOT required for Plugin Arch 1.1! Please replace by the original code.----[ Prerequisites
Before you install Aggregate, you need to have met the following pre-requisites:
1) Cacti 0.8.6i or Above. Versions of Cacti prior to 0.8.6 are not supported.
2) Cacti Plugin Architecture v1.0 (requires 3 new hooks provided as a patch) OR
Cacti Plugin Architecture v1.1 (includes the needed hooks)
Reinhard
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
ok, but I only tried to apply the patch after getting this error when trying to create an aggregate graph:
When I select "yes" at create aggregate graph I get:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
The files, although I attempted to patch them, are still the original files. I only tried patching when I ran into the error above.
I cannot find any information about the above error. In fact several posts back someone else had the error but it was not addressed and I don't know what the solution is.
Thanks,
John
When I select "yes" at create aggregate graph I get:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
The files, although I attempted to patch them, are still the original files. I only tried patching when I ran into the error above.
I cannot find any information about the above error. In fact several posts back someone else had the error but it was not addressed and I don't know what the solution is.
Thanks,
John
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
Running Ubuntu 7.04
I have installed the plugin as required (also have other plugins working - not my first)
Steps:
Graph Management -> Select 4 "CPU" graphs for single host -> Action (create aggregate graph)
If I change nothing and click "yes" to confirm I get the error:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
And that is where anything useful ends - no useful graphs etc.
Thanks for your help and if there is any additional information that i can provide I will.
John
I have installed the plugin as required (also have other plugins working - not my first)
Steps:
Graph Management -> Select 4 "CPU" graphs for single host -> Action (create aggregate graph)
If I change nothing and click "yes" to confirm I get the error:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
And that is where anything useful ends - no useful graphs etc.
Thanks for your help and if there is any additional information that i can provide I will.
John
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
Seems to be the same error.
Here is what I am doing step by step (just to be certain that I am not doing something wrong)
- from graph management
I check 4 boxes next to serverA with cpus 0-3
I choose create create aggregate graph from the "choose action" box.
- now at create aggregate graph screen
It shows the 4 cpus for the serverA and I leave the title as the default
Graph type I choose area/stack graph (although error occurs on the other two as well.
I change color template to yellow light->dark 4 colors
I do not select any of the boxes to the right (<HR> skip)
I then press "yes"
Then I get the error:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
(this is on a screen alone and by itself there is no other cacti titles/boxes etc displayed)
If I hit the back button (I get a confirm box... the data you are about to view.. POSTDATA... blah blah..) select ok/yes and I am back to the create aggregate graph page.
If I now go to the graph management and search/filter for aggregate I have 1 item listed. For the name it is listed at "Aggregate |host_description| - CPU Utilization - CPU|query_hrProcessorFrwID|". Under Template name is has "None".
If I click the link "Aggregate |host_description| - CPU Utilization - CPU|query_hrProcessorFrwID|" it takes me to a page that has the sections "graph template selection", "graph items", and "graph configuration".
These sections seem to have default settings such as selected graph template = none and host = none.
For selected graph template drop down I choose host mib - cpu utilization and for host I select the host I originally selected the cpu's from.
For graph items and graph configuration I leave them all with default settings and select save. It says save successful along with the note "The template you have selected requires some changes to be made to the structure of your graph. Below is a preview of your graph along with changes that need to be completed as shown in the left-hand column."
I leave the bullet in the box - "the items with - will be removed ... (recommended)"
Select save
Next window has graph template selection and Supplemental Graph Template Data areas. Where it asks for CPU utilization data source - the included items in the drop down do not show anything related to cpu. (disk, network, etc are there).
So, I hope that provides plenty of information and I truely appologize if it's a bit much.
Thanks again,
John
Here is what I am doing step by step (just to be certain that I am not doing something wrong)
- from graph management
I check 4 boxes next to serverA with cpus 0-3
I choose create create aggregate graph from the "choose action" box.
- now at create aggregate graph screen
It shows the 4 cpus for the serverA and I leave the title as the default
Graph type I choose area/stack graph (although error occurs on the other two as well.
I change color template to yellow light->dark 4 colors
I do not select any of the boxes to the right (<HR> skip)
I then press "yes"
Then I get the error:
PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/lib/adodb/adodb-lib.inc.php' LINE NO:'537'
(this is on a screen alone and by itself there is no other cacti titles/boxes etc displayed)
If I hit the back button (I get a confirm box... the data you are about to view.. POSTDATA... blah blah..) select ok/yes and I am back to the create aggregate graph page.
If I now go to the graph management and search/filter for aggregate I have 1 item listed. For the name it is listed at "Aggregate |host_description| - CPU Utilization - CPU|query_hrProcessorFrwID|". Under Template name is has "None".
If I click the link "Aggregate |host_description| - CPU Utilization - CPU|query_hrProcessorFrwID|" it takes me to a page that has the sections "graph template selection", "graph items", and "graph configuration".
These sections seem to have default settings such as selected graph template = none and host = none.
For selected graph template drop down I choose host mib - cpu utilization and for host I select the host I originally selected the cpu's from.
For graph items and graph configuration I leave them all with default settings and select save. It says save successful along with the note "The template you have selected requires some changes to be made to the structure of your graph. Below is a preview of your graph along with changes that need to be completed as shown in the left-hand column."
I leave the bullet in the box - "the items with - will be removed ... (recommended)"
Select save
Next window has graph template selection and Supplemental Graph Template Data areas. Where it asks for CPU utilization data source - the included items in the drop down do not show anything related to cpu. (disk, network, etc are there).
So, I hope that provides plenty of information and I truely appologize if it's a bit much.
Thanks again,
John
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please post a screenshot of this.jrothlisberger wrote:If I click the link "Aggregate |host_description| - CPU Utilization - CPU|query_hrProcessorFrwID|" it takes me to a page that has the sections "graph template selection", "graph items", and "graph configuration".
Then, please post settings of php.ini's variable allow_call_time_pass_reference.
Last: Please try to find that error in your httpd's error_log and post the whole error message. I'm waiting for a reference to the original php module/line that caused this error.
Reinhard
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
From php.ini:
allow_call_time_pass_reference = On
From access.log: (no actual error to coincide with error displayed)
10.99.99.99 - - [30/Aug/2007:08:03:08 -0500] "POST /cacti/graphs.php HTTP/1.1" 200 178 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
## This is where the PROGERR message is displayed and the following are
## after pressing the "back" button on the browser.
10.99.99.99 - - [30/Aug/2007:08:03:25 -0500] "POST /cacti/graphs.php HTTP/1.1" 200 12725 "http://99.99.99.99/cacti/graphs.php?cbo ... =1&x=0&y=0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
10.99.99.99 - - [30/Aug/2007:08:03:26 -0500] "GET /cacti/include/main.css HTTP/1.1" 200 6931 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
10.99.99.99 - - [30/Aug/2007:08:03:26 -0500] "GET /cacti/include/layout.js HTTP/1.1" 200 7109 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
allow_call_time_pass_reference = On
From access.log: (no actual error to coincide with error displayed)
10.99.99.99 - - [30/Aug/2007:08:03:08 -0500] "POST /cacti/graphs.php HTTP/1.1" 200 178 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
## This is where the PROGERR message is displayed and the following are
## after pressing the "back" button on the browser.
10.99.99.99 - - [30/Aug/2007:08:03:25 -0500] "POST /cacti/graphs.php HTTP/1.1" 200 12725 "http://99.99.99.99/cacti/graphs.php?cbo ... =1&x=0&y=0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
10.99.99.99 - - [30/Aug/2007:08:03:26 -0500] "GET /cacti/include/main.css HTTP/1.1" 200 6931 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
10.99.99.99 - - [30/Aug/2007:08:03:26 -0500] "GET /cacti/include/layout.js HTTP/1.1" 200 7109 "http://99.99.99.99/cacti/graphs.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
- Attachments
-
- image 1.gif (28.42 KiB) Viewed 7842 times
-
- image 2.gif (5.1 KiB) Viewed 7842 times
-
- image 3.gif (7.73 KiB) Viewed 7842 times
-
- image 4.gif (10.99 KiB) Viewed 7842 times
-
- image 5.gif (11.1 KiB) Viewed 7842 times
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
-
- Posts: 22
- Joined: Tue Jul 31, 2007 8:50 am
- Location: chicago,il
- Contact:
Who is online
Users browsing this forum: No registered users and 2 guests