Interface Traffic Template

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Author
Message
shoko
Posts: 17
Joined: Sun Jul 01, 2012 1:22 am

Interface Traffic Template

#1 Post by shoko » Tue Jul 31, 2012 9:29 am

Hey ,

can anyone add here Interface traffic template ?
i've messed up my template :( .

thanks ,

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

Re: Interface Traffic Template

#2 Post by gandalf » Wed Aug 01, 2012 7:07 am

Please see 4th link of my sig for template repository
R.

roodydoo
Posts: 3
Joined: Mon Aug 06, 2012 8:07 am

Re: Interface Traffic Template

#3 Post by roodydoo » Thu Aug 09, 2012 4:35 am

Hi Gandalf,

I'm actually using your template (http://docs.cacti.net/usertemplate:grap ... ce_traffic) for interfaces traffic.
I've changed the polling too, 1m RRAs for hour,day,week, default 5min for month/year.
The template actually works quite alright, the polling too, but the peak part of the graph is still running on 5min polling.

Can I change it ? Or am I just misunderstanding the way it works ?

Some examples :
example cacti - Int traffic.JPG
example cacti - Int traffic.JPG (83.24 KiB) Viewed 6362 times
Thanks for the template anyway ;)

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

Re: Interface Traffic Template

#4 Post by gandalf » Thu Aug 23, 2012 2:26 pm

roodydoo wrote:Hi Gandalf,

I'm actually using your template (http://docs.cacti.net/usertemplate:grap ... ce_traffic) for interfaces traffic.
I've changed the polling too, 1m RRAs for hour,day,week, default 5min for month/year.
The template actually works quite alright, the polling too, but the peak part of the graph is still running on 5min polling.
Please send your RRA definitions. I fear bad things happening here
R.

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#5 Post by argon0 » Wed Feb 13, 2013 12:24 pm

Hi Gandalf, :D

Really liked the look of your Interface Traffic graphs (including the 95th centile one), so went and installed them on Cacti 0.8.8a (CactiEZ install). All is good with new graphs, but...

It doesn't retro fit to the old graphs unless I go into graph management, change template, apply the same template, then go in and save each one..

Now I've got a fairly new install, so only about 100 graphs to do this to, but... is this how it SHOULD work?

(I noticed this same behaviour when changing the template for CPU graph to include vertical lines for work hours... which leads to another question - for another thread...)
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#6 Post by argon0 » Wed Feb 13, 2013 12:33 pm

<erm> Just noticed something see attached:
graph_image_interface traffic with 95th for Vitalpac server.png
graph_image_interface traffic with 95th for Vitalpac server.png (35.62 KiB) Viewed 6209 times

Why is peak usage lower than average? Is this possible (I think not, but await an explanation...)?
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

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

Re: Interface Traffic Template

#7 Post by gandalf » Thu Mar 07, 2013 6:18 am

Mathematically speaking, average always is lower or equal to peak.
Please provide Graph Management Debug output for this graph
R.

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#8 Post by argon0 » Thu Mar 07, 2013 7:52 am

Yup -here you go...

Note the figures seem to be accurate, but the graph seems to be wrong.... Don't get it.


i.e. why is the green area often higher than the peak value....

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='VitalPacSQL Node#4 - Traffic - ethernet_4' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_in':AVERAGE \
DEF:b="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_out':MAX \
DEF:c="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
CDEF:cdeff='c,8,*,-1,*' \
CDEF:cdefg='c,8,*' \
CDEF:cdefi='a,8,*' \
CDEF:cdefj='b,8,*,-1,*' \
--watermark "Created for RSCH" \
AREA:cdefa#00FF0099:"Inbound"  \
GPRINT:cdefa:LAST:"   Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s"  \
LINE1:cdefe#005D57FF:"Peak Usage\n"  \
AREA:cdeff#00A0FF99:"Outbound"  \
GPRINT:cdefg:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefg:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"  \
LINE1:cdefj#0000AAFF:"Peak Usage\n"  \
COMMENT:" \n" \
HRULE:78301.94#FF0000FF:"95th Percentile"  \
COMMENT:"(0.08 mbit in+out)" 
RRDTool Says:


OK
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

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

Re: Interface Traffic Template

#9 Post by gandalf » Thu Mar 07, 2013 9:24 am

argon0 wrote: DEF:a="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_in':AVERAGE \
DEF:b="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_out':MAX \
DEF:c="/var/www/html/rra/vitalpacsql_node4_traffic_in_71.rrd":'traffic_out':AVERAGE \
[/code]
There are three DEFs only where we need 4. The traffic_in:MAX is missing.
R.

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#10 Post by argon0 » Thu Mar 07, 2013 9:36 am

Hmmm, let me check some other graphs then.
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#11 Post by argon0 » Thu Mar 07, 2013 9:50 am

Ah... Its the 95th Centile version which is broken only.... <thinks>Did I do that?</thinks>

Don't THINK I did anything to that graph....
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#12 Post by argon0 » Thu Mar 07, 2013 9:53 am

But its NOT ALL OF THE 95th Centile graphs....

Odd.... Is there a way to check all of them have the correct no. of associated RRAs easily? And is there a way to fix it, without recreating graphs?
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

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

Re: Interface Traffic Template

#13 Post by gandalf » Thu Mar 07, 2013 10:29 am

Please see tha graph definition at Graph Management and post a screenshot of a broken one
R.

argon0
Cacti User
Posts: 443
Joined: Fri Mar 12, 2004 1:22 pm

Re: Interface Traffic Template

#14 Post by argon0 » Thu Mar 07, 2013 10:46 am

gandalf wrote:graph definition at Graph Management
Huh - ? Not entirely sure what you mean, but here is a broken graph:
graph_image_Broken_95th.png
Broken 95th
graph_image_Broken_95th.png (45.33 KiB) Viewed 6165 times
Here's the top half of the Graph Definition page (I think).
Broken95thGraphDefinition.PNG
Broken 95th top half
Broken95thGraphDefinition.PNG (30.86 KiB) Viewed 6165 times
The RRDTool Command is:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='HPGb2E.slot1.rsch-bc2 - Traffic - utp ethernet (1/275' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/hpgb2e_slot1_rsch-bc2_traffic_in_121.rrd":'traffic_in':AVERAGE \
DEF:b="/var/www/html/rra/hpgb2e_slot1_rsch-bc2_traffic_in_121.rrd":'traffic_out':MAX \
DEF:c="/var/www/html/rra/hpgb2e_slot1_rsch-bc2_traffic_in_121.rrd":'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
CDEF:cdeff='c,8,*,-1,*' \
CDEF:cdefg='c,8,*' \
CDEF:cdefi='a,8,*' \
CDEF:cdefj='b,8,*,-1,*' \
--watermark "Created for RSCH" \
AREA:cdefa#00FF0099:"Inbound"  \
GPRINT:cdefa:LAST:"   Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s"  \
LINE1:cdefe#005D57FF:"Peak Usage\n"  \
AREA:cdeff#00A0FF99:"Outbound"  \
GPRINT:cdefg:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefg:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"  \
LINE1:cdefj#0000AAFF:"Peak Usage\n"  \
COMMENT:" \n" \
HRULE:6569.74#FF0000FF:"95th Percentile"  \
COMMENT:"(0.01 mbit in+out)" 
RRDTool Says:
OK
Is that all you need...

I'm not sure why this has happened, but at the moment it is not a major issue as I think only ~ 5 graphs are affected (out of ~ 100 traffic graphs so far) - but don' want to see this happen to any new graphs going forwards...
[size=50]No longer a n00by but[/size] not yet an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....

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

Re: Interface Traffic Template

#15 Post by gandalf » Sat Mar 09, 2013 3:16 pm

The graph debug looks fine.
Next, I need a screenshot of the broken graph template
R.

Post Reply