Aggregate, now at V0.66
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I suppose this will make it for a new howto:
Use "SIMILAR_DATA_SOURCES_NODUPS" in a new custom CDEF. This one will automagically sum up all data sources. You may graph the result of such a CDEF over time, just as the basic data sources. It sould yield the same results as stacking the data sources will do.
If you're graphing IN/OUT traffic seperatley, you will have to have two of them. When creating the Graph Item for this one, please do not forget to select a datasource for IN when summing IN traffic and a data source for OUT when summing OUT traffic.
Hope this is clear enough
Reinhard
Use "SIMILAR_DATA_SOURCES_NODUPS" in a new custom CDEF. This one will automagically sum up all data sources. You may graph the result of such a CDEF over time, just as the basic data sources. It sould yield the same results as stacking the data sources will do.
If you're graphing IN/OUT traffic seperatley, you will have to have two of them. When creating the Graph Item for this one, please do not forget to select a datasource for IN when summing IN traffic and a data source for OUT when summing OUT traffic.
Hope this is clear enough
Reinhard
Hi Reinhard,gandalf wrote:I suppose this will make it for a new howto:
Use "SIMILAR_DATA_SOURCES_NODUPS" in a new custom CDEF. This one will automagically sum up all data sources. You may graph the result of such a CDEF over time, just as the basic data sources. It sould yield the same results as stacking the data sources will do.
If you're graphing IN/OUT traffic seperatley, you will have to have two of them. When creating the Graph Item for this one, please do not forget to select a datasource for IN when summing IN traffic and a data source for OUT when summing OUT traffic.
Hope this is clear enough
Reinhard
thank you for the lengthy tute. much apprecaited. however after reading a few other threads today, i have come across another thread that talks about this.
http://forums.cacti.net/viewtopic.php?p=100387#100387
it seems that the function to do what i have been trying to do doesn't exist in cacti yet. would this be true from that thread? i am pretty sure that it is the same thing i have been trying to get figured out in this thread? what do you think?
thank you
Last edited by churchi on Sun May 20, 2007 9:13 am, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yep, I followed all those topics.
But please bear with me; I always get confused when it comes to "summing up" and/or "totalling". I'm not a native english speaker (well, you will have guessed this).
Let's talk about "Totals" this way: Add up all data points of a given timespan. Example: Show the amount of Bytes transmitted in a given timeframe. That one is described in http://docs.cacti.net/node/50 under Bandwitdh Summation. But it works for all kind of data sources. To be honest, I lost track about the "unit" issue that existed once (or still exists? I'm so confused!). Some time ago, cacti always printed "Bytes" as a Unit. If you summed up e.g. pages printed from a printer, this was not what you wanted it to be, for sure.
Let's talk about "Summing" this way: Suppose you have a graph showing more than one data source of same kind. Perhaps you've used AGGREGATE to get this. And now you want to sum up all Traffic In and all Traffic Out data sources, respectively. Well, you may want to solve this by stacking those items and you are correct. But if you need a Legend printed, you will need a "Special Data Source" for a custom CDEF that's known by "All Similar Datasources (no duplicates)". If you add a new graph item referring to a "Traffic IN" data source _and_ referring to your custom CDEF, you will be able to graph it. I'm not sure whether all "Traffic IN" data sources must be grouped together, but I'm quite sure that they must preceed this special item in the list of graph items.
Hope I did not confuse you. That's why I talked about a new HowTo. But you know, time is a precious thing
Reinhard
But please bear with me; I always get confused when it comes to "summing up" and/or "totalling". I'm not a native english speaker (well, you will have guessed this).
Let's talk about "Totals" this way: Add up all data points of a given timespan. Example: Show the amount of Bytes transmitted in a given timeframe. That one is described in http://docs.cacti.net/node/50 under Bandwitdh Summation. But it works for all kind of data sources. To be honest, I lost track about the "unit" issue that existed once (or still exists? I'm so confused!). Some time ago, cacti always printed "Bytes" as a Unit. If you summed up e.g. pages printed from a printer, this was not what you wanted it to be, for sure.
Let's talk about "Summing" this way: Suppose you have a graph showing more than one data source of same kind. Perhaps you've used AGGREGATE to get this. And now you want to sum up all Traffic In and all Traffic Out data sources, respectively. Well, you may want to solve this by stacking those items and you are correct. But if you need a Legend printed, you will need a "Special Data Source" for a custom CDEF that's known by "All Similar Datasources (no duplicates)". If you add a new graph item referring to a "Traffic IN" data source _and_ referring to your custom CDEF, you will be able to graph it. I'm not sure whether all "Traffic IN" data sources must be grouped together, but I'm quite sure that they must preceed this special item in the list of graph items.
Hope I did not confuse you. That's why I talked about a new HowTo. But you know, time is a precious thing
Reinhard
- ruud
- Cacti User
- Posts: 64
- Joined: Tue Aug 22, 2006 3:07 am
- Location: Rotterdam, The Netherlands
- Contact:
Errors after installing Aggegate plugin
After installing and activating the plugin a bunch of errors eppear in cacti.
As soon as i login (admin level) i get :
As soon as i login (admin level) i get :
When i select color templates :Notice: Undefined index: index.php: in /var/www/localhost/htdocs/cacti/lib/functions.php on line 1422
Maybe i am missing somthing here, any hints ?Notice: Undefined index: index.php: in /var/www/localhost/htdocs/cacti/lib/functions.php on line 1432
Notice: Undefined index: index.php: in /var/www/localhost/htdocs/cacti/lib/functions.php on line 1451
-> Color Templates
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.17-gentoo-r8
Web Server - Apache
PHP - 5.1.6-pl6-gentoo
PHP Extensions - libxml, xml, standard, SPL, sockets, snmp, session, Reflection, mysql, mcrypt, mbstring, iconv, gettext, gd, dom, dba, date, zlib, pcre, openssl, apache2handler, rrdtool, eAccelerator
MySQL - 5.0.26
RRDTool - 1.2.15
SNMP - 5.4
Plugins
- Thresholds (thold - v0.3.0)
Device Monitoring (monitor - v0.7)
Network Discovery (discovery - v0.7)
report it! (report it! - v0.3.2)
Network Tools (tools - v0.2)
Host Info (hostinfo - v0.1)
Poller Performance Report (pollperf - v0.2)
killspike (killspike - v0.1.0a)
Create Aggregate Graphs (aggregate - v0.62)
Server #1 : Cacti 0.8.7b | cmd.php | HP Proliant DL380 G5 (Dual Core Xeon 3.2 GHz, 14 Gb, 2x73 Gb RAID1 - System + 3x73 Gb RAID5 - SQL/RRA) | Gentoo Linux
_________SYSTEM STATS: Time:114.6022 Method:cmd.php Processes:8 Threads:N/A Hosts:408 HostsPerProcess:51 DataSources:32276 RRDsProcessed:16148
_________SYSTEM STATS: Time:114.6022 Method:cmd.php Processes:8 Threads:N/A Hosts:408 HostsPerProcess:51 DataSources:32276 RRDsProcessed:16148
graph debug mode tells this:
any idea ? I;m using cacti 0.8.6h with PA 1.0
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Aggregate TEST" \
--rigid \
--base=1000 \
--height=150 \
--width=650 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17555.rrd":traffic_in:AVERAGE \
DEF:b="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17555.rrd":traffic_out:AVERAGE \
DEF:c="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17559.rrd":traffic_in:AVERAGE \
DEF:d="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17559.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefc=a,8,100,*,*,1000000000,/ \
CDEF:cdefh=b,8,* \
CDEF:cdefj=b,8,100,*,*,1000000000,/ \
CDEF:cdefbg=c,8,* \
CDEF:cdefbi=c,8,100,*,*,1000000000,/ \
CDEF:cdefcd=d,8,* \
CDEF:cdefcf=d,8,100,*,*,1000000000,/ \
AREA:cdefa:"10.128.0.130 Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefc:LAST:"(%5.2lf %%)" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefc:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefc:MAX:"(%5.2lf %%)\n" \
LINE1:cdefh:"10.128.0.130 Outbound" \
GPRINT:cdefh:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefj:LAST:"(%5.2lf %%)" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefj:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefj:MAX:"(%5.2lf %%)\n" \
COMMENT:"10.128.0.130 Total speed\: (234.42 Mbit in+out)\n" \
COMMENT:"10.128.0.130 Forwarded" \
AREA:cdefbg:"10.128.0.130 Inbound" \
GPRINT:cdefbg:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefbi:LAST:"(%5.2lf %%)" \
GPRINT:cdefbg:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefbi:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefbg:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefbi:MAX:"(%5.2lf %%)\n" \
LINE1:cdefcd:"10.128.0.130 Outbound" \
GPRINT:cdefcd:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefcf:LAST:"(%5.2lf %%)" \
GPRINT:cdefcd:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefcf:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefcd:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefcf:MAX:"(%5.2lf %%)\n" \
COMMENT:"10.128.0.130 Total speed\: (234.42 Mbit in+out)\n" \
COMMENT:"10.128.0.130 Forwarded"
RRDTool Says:
ERROR: Legend set but no color: 10.128.0.130 Inbound
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Errors after installing Aggegate plugin
Which version of Aggregate, Which Version of cacti and PIA?ruud wrote:After installing and activating the plugin a bunch of errors eppear in cacti.
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please show me the graph debug of the graph that holds the line abovetimi wrote:graph debug mode tells this:
any idea ? I;m using cacti 0.8.6h with PA 1.0Code: Select all
LINE1:cdefh:"10.128.0.130 Outbound" \
Reinhard
gandalf wrote:Please show me the graph debug of the graph that holds the line abovetimi wrote:graph debug mode tells this:
any idea ? I;m using cacti 0.8.6h with PA 1.0Code: Select all
LINE1:cdefh:"10.128.0.130 Outbound" \
Reinhard
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ac1.hub4 - Traffic - Gi0/6" \
--rigid \
--base=1000 \
--height=150 \
--width=650 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17555.rrd":traffic_in:AVERAGE \
DEF:b="/srv/apache/htdocs/cacti/rra/ac1hub5_traffic_in_17555.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefc=a,8,100,*,*,1000000000,/ \
CDEF:cdefh=b,8,* \
CDEF:cdefj=b,8,100,*,*,1000000000,/ \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefc:LAST:"(%5.2lf %%)" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefc:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefc:MAX:"(%5.2lf %%)\n" \
LINE1:cdefh#002A97:"Outbound" \
GPRINT:cdefh:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefj:LAST:"(%5.2lf %%)" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefj:AVERAGE:"(%5.2lf %%)" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefj:MAX:"(%5.2lf %%)\n" \
COMMENT:"Total speed\: (99.32 Mbit in+out)\n" \
COMMENT:"Forwarded"
RRDTool Says:
OK
I am unable to see the "Create Aggregate Graphs" entry. I installed the 0.62 version on 0.8.6j, with plugin architecture 1.1, inserted the aggregate.sql into the database, added the aggregate plugin to the config file and gave the user accounts permission to use the plugin, but I don't see the "Create Aggregate Graphs". What did I miss?
EDIT: Never mind, I was looking in the wrong place.
Thank you,
Steve
EDIT: Never mind, I was looking in the wrong place.
Thank you,
Steve
[quote][b]Cacti Version[/b] - 0.8.8f
[b]Plugin Architecture[/b] - 3.1
[b]Server Info[/b] - CentOS 5.11
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.1.6
[b]MySQL[/b] - 5.0.95
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.3.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.71)
Thresholds (thold - v0.5)
Device Tracking (mactrack - v2.9)
PHP Network Weathermap (weathermap - v0.97c)
ipsubnet - v0.4f
SuperLinks (superlink - v1.4)
Create Aggregate Graphs (aggregate - v0.75)[/list][/quote]
[b]Plugin Architecture[/b] - 3.1
[b]Server Info[/b] - CentOS 5.11
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.1.6
[b]MySQL[/b] - 5.0.95
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.3.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.71)
Thresholds (thold - v0.5)
Device Tracking (mactrack - v2.9)
PHP Network Weathermap (weathermap - v0.97c)
ipsubnet - v0.4f
SuperLinks (superlink - v1.4)
Create Aggregate Graphs (aggregate - v0.75)[/list][/quote]
-
- Posts: 12
- Joined: Wed Feb 21, 2007 12:28 pm
Great stuff.gandalf wrote:Published version 0.63. See first post
Reinhard
Your initial graph offerings aren't what I am looking for but it did allow me to move things around, play with the data, and create this sort of graph for four interfaces (two interfaces on two different routers):
I tried creating this sort of graph manually. But for whatever reason cacti would just revert the datasources to be for just one of the two routers I was trying to graph.
That is something I would consider a bug. When creating a generic graph any datasource from any device should be fair game.
Other notes:
The STACK trick I used to make the Outbound LINE1 "aggregation" is a total hackjob (i.e. making the underlying ones white and printing them first) I suppose you could make the bottom ones green if your Inbound outweighed your Outbound but when you get a mix, there just isn't a clean way to do it in cacti as far as I know.
The Totals at the bottom are created with these two simple CDEFs:
Code: Select all
CDEF:cdefe=a,b,+,c,+,d,+,8,*
CDEF:cdefbb=e,f,+,g,+,h,+,8,*
Who is online
Users browsing this forum: No registered users and 0 guests