Aggregate, now at V0.66

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
crimsonstone
Posts: 19
Joined: Tue Feb 27, 2007 10:30 pm

Post by crimsonstone »

Actually, now that I look at it, the last STACK item is the only one that's still the same as the original graph. The other 5 items have changed... they're supposed to be padded like the last item is. I checked all the original graphs, and they're all padded like the last item on the aggregate graph.

Here's the graph debug output.. I don't see anything problematic.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="xxx 1/1/1 - Aggregate Modems Online" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Modems Online" \
DEF:a="/var/www/cacti/rra/xxx_111_modems_online_200.rrd":modems_online:AVERAGE \
DEF:b="/var/www/cacti/rra/xxx_111_modems_online_201.rrd":modems_online:AVERAGE \
DEF:c="/var/www/cacti/rra/xxx_111_modems_online_202.rrd":modems_online:AVERAGE \
DEF:d="/var/www/cacti/rra/xxx_111_modems_online_203.rrd":modems_online:AVERAGE \
DEF:e="/var/www/cacti/rra/xxx_111_modems_online_204.rrd":modems_online:AVERAGE \
DEF:f="/var/www/cacti/rra/xxx_111_modems_online_205.rrd":modems_online:AVERAGE \
AREA:a#4444FF:"1/1/1 US1 Modems Online "  \
GPRINT:a:LAST:"Current%8.0lf"  \
GPRINT:a:AVERAGE:"Average%8.0lf"  \
GPRINT:a:MAX:"Max%8.0lf"  \
STACK:b#4444FF:"1/1/1 US2 Modems Online"  \
GPRINT:b:LAST:" Current%8.0lf"  \
GPRINT:b:AVERAGE:"Average%8.0lf"  \
GPRINT:b:MAX:"Max%8.0lf"  \
STACK:c#4444FF:"1/1/1 US3 Modems Online"  \
GPRINT:c:LAST:" Current%8.0lf"  \
GPRINT:c:AVERAGE:"Average%8.0lf"  \
GPRINT:c:MAX:"Max%8.0lf"  \
STACK:d#4444FF:"1/1/1 US4 Modems Online"  \
GPRINT:d:LAST:" Current%8.0lf"  \
GPRINT:d:AVERAGE:"Average%8.0lf"  \
GPRINT:d:MAX:"Max%8.0lf"  \
STACK:e#4444FF:"1/1/1 US5 Modems Online"  \
GPRINT:e:LAST:" Current%8.0lf"  \
GPRINT:e:AVERAGE:"Average%8.0lf"  \
GPRINT:e:MAX:"Max%8.0lf"  \
STACK:f#4444FF:"1/1/1 US6 Modems Online"  \
GPRINT:f:LAST:" Current%8.0lf"  \
GPRINT:f:AVERAGE:"Average%8.0lf"  \
GPRINT:f:MAX:"Max%8.0lf"

EDIT:
Also.. I just tried creating an aggregate of only the first three items by themselves, and got the same results. The last item's GPRINT is close together like the source graph, but the other two preceding it were padded far apart.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hmm, thanks for the pointers. I seems that I will have to spend some time on debugging, finally ...
Reinhard
crimsonstone
Posts: 19
Joined: Tue Feb 27, 2007 10:30 pm

Post by crimsonstone »

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

Post by gandalf »

crimsonstone wrote:Sorry. :D
Why?
Reinhard
crimsonstone
Posts: 19
Joined: Tue Feb 27, 2007 10:30 pm

Post by crimsonstone »

Hey.. if you like debugging, then I take it back! Not one of my favorite tasks.
eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

This is an off-topic feature request!

I have spent the past few hours playing with the aggregate plugin, and I love it. There is TONS of potential, and many other things that could be added to make it even better.

I'm not sure if this request is even possible, but I'd like to explore the possibility of doing "on-the-fly" aggregation. So, for example, a user could select any number of graphs from a list and just hit a button, and they'd all be displayed with no additional setup required.

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

Post by gandalf »

cschutte wrote:I also get this error (refer problem logged by iYRe in May):

PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/share/cacti/site/lib/adodb/adodb-lib.inc.php' LINE NO:'537'

I just installed v0.63 and plugin arc 1.1, and the error message appears when I have selected 2 graphs, executed the aggregate option, and then selecting YES to confirm.

Was this problem resolved? I could not find a solution in the forums.

Regards
I can't reproducs this one. Please state your version of php and setting of /etc/php.ini concerning the var "error_reporting" and "display_errors".
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: error on install

Post by gandalf »

eddy wrote:I have just installed the Aggregate v0.63 plugin and I get this error message :
Notice: Undefined index: cdef.php: in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1422

any ideas
When aggregate is deactivated and only killspike is there, dies this error disappear? You know, on the killspike thread, there have been plenty reports concerning this error. I just downloaded latest killspike, and I can't reproduce this initialization error. Please check and report
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: error on install

Post by gandalf »

gandalf wrote:
eddy wrote:I have just installed the Aggregate v0.63 plugin and I get this error message :
Notice: Undefined index: cdef.php: in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1422

any ideas
When aggregate is deactivated and only killspike is there, dies this error disappear? You know, on the killspike thread, there have been plenty reports concerning this error. I just downloaded latest killspike, and I can't reproduce this initialization error. Please check and report
Reinhard
Nevermind. Found the error within killspike. Please see http://forums.cacti.net/viewtopic.php?p=113829#113829
Reinhard
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Not sure how I didn't find this post earlier. I love you gandalf.
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Wishlist:

Automatic color template creation (I might write a script to do this). Preferably with easier to read templates. Gradients are nice, but fall apart with a lot of data sources (second aggregate I made had 36 data sources).. A paired alternating gradient would be great.

Footer templates.. ie: Whenever I create an aggregate graph, it'd be nice to have a pulldown to (among other options) add 'Total Current: Total Average: Total Maximum:' to the end of the graph, with no ds, and a cdef of total_all_ds_nodups.
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Mike,

:o :o Oh, and BTB, I will be in SJ on November5th-10th.

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

Post by gandalf »

gninja wrote:Not sure how I didn't find this post earlier. I love you gandalf.
Don't tell my wife :lol:
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

gninja wrote:Wishlist:

Automatic color template creation (I might write a script to do this). Preferably with easier to read templates. Gradients are nice, but fall apart with a lot of data sources (second aggregate I made had 36 data sources).. A paired alternating gradient would be great.
I was already thinking about sth like a "wraparound" when reaching the last color template entry and still more data source to cope with. So, even a 12 element Color Template would satify 36 data sources: it would simply be applied thrice.
Footer templates.. ie: Whenever I create an aggregate graph, it'd be nice to have a pulldown to (among other options) add 'Total Current: Total Average: Total Maximum:' to the end of the graph, with no ds, and a cdef of total_all_ds_nodups.
Aah: This is a nice idea to cope with that already requested feature. But IMHO, data source sorting has to be solved first to apply this one. And this bit is quite UGLY!
Reinhard
repudi8or
Posts: 27
Joined: Tue Sep 25, 2007 7:41 pm

aggreagte post 8.7a upgrade

Post by repudi8or »

Hi,

I just tried to create my first aggregate since updating everything to 0.8.7a and got the following :-

PROGERR: ERRNO:'2' TYPE:'Warning' MESSAGE:'include(/usr/local/apache2/htdocs/cacti/include/config_arrays.php) [function.include]: failed to open stream: No such file or directory' IN FILE:'/usr/local/apache2/htdocs/cacti/plugins/aggregate/aggregate_functions.php' LINE NO:'99'

PROGERR: ERRNO:'2' TYPE:'Warning' MESSAGE:'include() [function.include]: Failed opening '/usr/local/apache2/htdocs/cacti/include/config_arrays.php' for inclusion (include_path='.:/usr/local/php/lib/php')' IN FILE:'/usr/local/apache2/htdocs/cacti/plugins/aggregate/aggregate_functions.php' LINE NO:'99'

And then these errors repeat many times in a box below the initial error.

looking at the code :-

function draw_aggregate_graph_items_list($_graph_id) {
global $colors, $config;

include($config["include_path"] . "/config_arrays.php");


but I cant find config_arrays.php anywhere

bash-3.00# find /usr/local -name config_*
bash-3.00#

Anyway it creates the aggregate graph ok, if i ignore the warnings. But I thought i would post what was happening into the thread.

Regards Rep
Locked

Who is online

Users browsing this forum: No registered users and 0 guests