Aggregation of 2,3, and 4 sources

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
drose12
Posts: 31
Joined: Thu Mar 10, 2005 11:02 am

Aggregation of 2,3, and 4 sources

Post by drose12 »

Not sure if this will help anyone, but we have 4 Internet providers where I work, and I wanted to graph them all to see what our aggregate Internet bw was coming in and out. So attached are some graph templates.
Attachments
cacti_graph_template_aggregate_4_sources.xml
4 Sources
(24.21 KiB) Downloaded 3506 times
cacti_graph_template_aggregate_3_sources.xml
3 Sources
(20.71 KiB) Downloaded 2807 times
cacti_graph_template_aggregate_2_sources.xml
2 Sources
(17.78 KiB) Downloaded 4157 times
4 Source Aggregate Inbound Internet Sample Graph
4 Source Aggregate Inbound Internet Sample Graph
4sourceagg.png (43.76 KiB) Viewed 32420 times
volumen1
Posts: 15
Joined: Mon Nov 21, 2005 5:25 pm

Post by volumen1 »

I just wanted to let you know that this Template rocks my world. Thanks much!

It seems like the Total Out: comment numbers are off, though? I was assuming that this was total traffic through the interface for the time period. However, it seems like it's far too tiny to be that number. Maybe it's off by 1024 or 8*1024 or something?

Hmm.. actually it looks like the "Sum of 4" CDEF isn't applied to the Total Out comment. That seems to make it look better.
r_chetanjain
Cacti User
Posts: 83
Joined: Fri Aug 22, 2003 4:33 am

howto

Post by r_chetanjain »

Hi,

Can you please post a howto on the steps to be followed after importing the templates.... how do i create graphs for two hosts or aggregate of 2 interfaces into one...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sunperz
Posts: 1
Joined: Tue Mar 17, 2009 9:15 am

Post by sunperz »

why i use the template display some error?

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="T64G " \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/xxx_traffic_in_34.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/xxx_traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/cacti/rra/xxx_traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti/rra/xxx_traffic_in_33.rrd":traffic_in:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=c,8,* \
CDEF:cdefbd=cdefa,cdefe,cdefi,+,+ \
AREA:cdefa#F5F800FF:"|query_ifAlias| |query_ifIP|\n" \
GPRINT:cdefa:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefe#00CF00FF:"|query_ifAlias| |query_ifIP|\n":STACK \
GPRINT:cdefe:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefi#4444FFFF:"|query_ifAlias| |query_ifIP|\n":STACK \
GPRINT:cdefi:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Max\:%8.2lf %s\n" \
COMMENT:" \n" \
LINE1:cdefbd#FF0000FF:"Total" \
GPRINT:cdefbd:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefbd:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefbd:MAX:"Max\:%8.2lf %s"

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/xxx_traffic_in_33.rrd': No such file or directory
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests