Inbound and Outbound Same on Traffic Graphs

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

Moderators: Developers, Moderators

Post Reply
cymba
Posts: 3
Joined: Thu Oct 26, 2006 8:24 pm

Inbound and Outbound Same on Traffic Graphs

Post by cymba »

Hey guys,

I was troubleshooting the fact that in some of my high traffic graphs values over 114Mb weren't being shown properly. I found the problem mentioned on the forums so proceeded to change those particular devices to SNMP v2. I was looking around to find any mention of 64bit counters in the templates but didn't find anything.

However I made a small change to the data sources in the templates but undid them afterwords. But next thign I know ALL my Traffic bits/sec graphs had the outbound being drawn being the same as the inbound data. Contrary to the results in the legend. I've checked and rechecked everthing including importing the template from another installation of cacti but the graphs are still not rendered properly. I'm running 0.86i on CentOS 4.3.

I've included an example graph and its RRD command.

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=1161826128 \
--end=1161912528 \
--title="Juniper M7i-BG02 - Traffic - so-0/2/1" \
--rigid \
--base=1000 \
--height=168 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/10/25 20\:28\:48 To 2006/10/26 20\:28\:48\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12:/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:8:/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font LEGEND:10:/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:8:/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
DEF:a="/var/www/html/cacti/rra/juniper_m7ibg02_traffic_in_326.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/juniper_m7ibg02_traffic_in_326.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,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:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"

Any help would be greatly appreciated....
Attachments
graph.jpg
graph.jpg (80.88 KiB) Viewed 1642 times
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

your line is pointing to cdefa and not cdeff as it should.
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?
cymba
Posts: 3
Joined: Thu Oct 26, 2006 8:24 pm

Post by cymba »

TheWitness wrote:your line is pointing to cdefa and not cdeff as it should.
Hmm I figured it was something like that but I was looking thru all the template settings etc and I wasn't finding where to set it back to the proper data source. Can u direct me to the correct setting?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please select the 4th item of your Graph Template (the one that uses LINE1, color 002A97) and change it to point to the correct data source
Reinhard
cymba
Posts: 3
Joined: Thu Oct 26, 2006 8:24 pm

Post by cymba »

lvm wrote:Please select the 4th item of your Graph Template (the one that uses LINE1, color 002A97) and change it to point to the correct data source
Reinhard
Its currently pointing to the right Data source now but ALL my graphs based on this template have the same problem now. So even tho the template looks correct the graphs aren't reflecting the change. Is there a way to reset all the outbound datasource or am I going to have to do this manually?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, don't panic, your data is still there, you just need to spend a little time with the template.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests