Aggregate, now at V0.66

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

After trying to add 3 fast-e ifaces that are set to 95th i'm seeing this

Code: Select all

ERROR: invalid rpn expression in: a,8,*
I've selected 3 graphs, clicked "Create Aggregate Graph", selected the last option (LINE1), or the other 2 and i still see this error..

Code: Select all

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Aggregate |host_description| - Traffic - |query_ifName|" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
CDEF:cdefa=a,8,* \
AREA:cdefa#004359:"66.225.194.2 Inbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefa#004359:"66.225.194.2 Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"\n"  \
HRULE:0#FFF200:"66.225.194.2 95th Percentile"  \
COMMENT:"(0 mbit in+out)"  \
AREA:cdefa#005D57:"66.225.194.2 Inbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefa#005D57:"66.225.194.2 Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"\n"  \
HRULE:0#FFD660:"66.225.194.2 95th Percentile"  \
COMMENT:"(0 mbit in+out)"  \
AREA:cdefa#00694A:"66.225.194.2 Inbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefa#00694A:"66.225.194.2 Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"\n"  \
HRULE:0#FFC73B:"66.225.194.2 95th Percentile"  \
COMMENT:"(0 mbit in+out)" 
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This statement is indeed wrong. Not a single DEF statement in there. Would you please mind to post the rrdtool graph statement for the basic three interfaces?
Reinhard
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

I fixed it. Apparently; the source graphs were corrupted (not displaying)
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

When I aggregate graphs; the source graphs are no longer displaying; ie:

Select ethernet 5,6,9 from a switch, aggregate them, then if i view 5, 6 or 9 they are no longer showing up. The aggregate graph shows up though.

Code: Select all

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="66.225.194.2 - Traffic - Fa0/5" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
CDEF:cdefa=a,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefa#002A97:"Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"\n"  \
HRULE:0#FF0000:"95th Percentile"  \
COMMENT:"(0 mbit in+out)" 
RRDTool Says:

ERROR: invalid rpn expression in: a,8,*

Next port..

Code: Select all

RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="66.225.194.2 - Traffic - Fa0/6" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
CDEF:cdefa=a,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:cdefa#002A97:"Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"\n"  \
HRULE:0#FF0000:"95th Percentile"  \
COMMENT:"(0 mbit in+out)" 
RRDTool Says:

ERROR: invalid rpn expression in: a,8,*

etc.

When I look at the graph source the DS's go to 'none' for the 3 ifaces..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Those statements suffer the same problem: no DEF statement in there. Do I understand you correctly, you're assuming that this plugin damages your original Graphs?
Reinhard
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

Yes.

1+2+3 -> Aggregated -> Shows up
View Original 1,2,3 -> Graphs fail to render, Aggregated graph still shows up.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

noskill wrote:Yes.

1+2+3 -> Aggregated -> Shows up
Ok, that was the goal. Let me ask again: Not only the Aggregate shows up, but the basic graphs do (if not, the aggregate would fail) before aggregation
View Original 1,2,3 -> Graphs fail to render,
That's strange. The code should not touch the original graphs. Do you use the latest version of Aggregate? Please verify
Aggregated graph still shows up.
As this are complete graphs on their own after aggregation, that's no surprise.
Please post version info for your cacti. Add version info of plugin arch (find all of them at the hostinfo plugin, if installed).
Reinhard
Last edited by gandalf on Sat Mar 31, 2007 8:08 am, edited 1 time in total.
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

0.8.6J, plugin arch 1.1, aggregate 0.6..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please use the latest one, V0.61
Reinhard
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

fixed it. thanks.

Is it possible to 95th the total graphs, ie; ethernet 1+2+3+4, then 95th them with this plugin? Or Total Bandwidth?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Of course, this is possible. But no automatism. You'll have to add this a a new Graph Item to the Aggregated Graph, just as usual
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Hello!

I'm new with cacti, installed this plugin too, but trying to aggregate 2 graphs...

Code: Select all

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined variable: skipped_items' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'476'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined variable:  hr_items' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'477'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  2' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  3' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  4' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  5' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  7' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  8' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  9' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  10' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined variable:  skipped_items' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'476'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined variable:  hr_items' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'477'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  2' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  3' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  4' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  5' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  7' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  8' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  9' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'

PROGERR: ERRNO:'8' TYPE:'Notice' MESSAGE:'Undefined offset:  10' IN FILE:'/opt/cacti/plugins/aggregate/setup.php' LINE NO:'275'
What's wrong?

I've:

cacti-0.8.6j
cacti-cactid-0.8.6i
cacti-plugin-arch v1.1
RRDtool 1.2.19
CentOS release 4.4 (Final)
aggregate (last version) plugin.

Thank's a lot and, of course, GRATE JOB!

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

Post by gandalf »

Did you import the aggregate.sql file into your cacti database?
Reinhard
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Yes, I did it.
There are tables like "plugin_color_templates_item" into cacti DB.

Simon
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

I've seen the graph is created, only with these errors.
It works.. have to check if it's right :)

Simon
Locked

Who is online

Users browsing this forum: No registered users and 2 guests