GRAPHING ONLY IN OUTBOUND DIRECTION

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

Moderators: Developers, Moderators

SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Hello,

I have a problem with one of my graphs graphing in only one direction-OUTBOUND, but not graphing in the INBOUND direction. Anybody knows how to solve this? Any help is appreciated.

Sammy.
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by netniV »

Look at the data being fed into the RRD file (use the graph debug options). If that does not hold the data you are expecting, use SNMPWALK to check that the values are actually being returned by the device in question.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
RustedKnight
Posts: 39
Joined: Fri Mar 18, 2016 8:49 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by RustedKnight »

Look on the device, what is the actual traffic on the interface. Is there really two way traffic on the interface or is the traffic one way? If the traffic is two way what is the value?
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Hi. There is 2 way traffic. The device on the other end of the connection indicates there is traffic in both inbound and outbound directions. I am doing a peak of 9.7 Gig on the other side in outbound direction, but none is seen in the inbound direction of the device in question.
RustedKnight
Posts: 39
Joined: Fri Mar 18, 2016 8:49 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by RustedKnight »

can you provide a screen shot of the graph for both sides of the link? Also, do you know how to check the max value of the rrd file?
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Hi. The graphs are attached. Actually, I do not know how to check max RRD value. Open to any guidance. Thanks.
Attachments
Graphing_wrong.png
Graphing_wrong.png (25.58 KiB) Viewed 1055 times
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Correctly graphing...
Attachments
Graphing_well.PNG
Graphing_well.PNG (24.3 KiB) Viewed 1055 times
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by netniV »

When you are under Console -> Management -> Graphs -> Edit Graph there is a Turn On Graph Debug option top right. That will give you a whole set of information.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Hi. Below is the output from graph debug.

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='pk - lag pvc 1158 Traffic - traf' \
--rigid \
--base=1000 \
--height=200 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/usr/share/cacti/site/rra/pk_traffic_in_3083.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/pk_traffic_in_3083.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by netniV »

OK so the definition looks OK. What is in the actual data? Use the Cog icon next to the displayed graph on the graphs tab.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

Hi. Do you mean the 'spanner' icon?
Attachments
Sample.PNG
Sample.PNG (28.03 KiB) Viewed 1041 times
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by netniV »

Ah, did I miss that you are running an older version of Cacti?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

I am using Version 0.8.7i
SammyKim
Posts: 18
Joined: Mon Mar 10, 2014 8:18 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by SammyKim »

From the 'spanner' icon, I get the below output...

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1524981090 \
--end=1525067490 \
--title='lag pvc 1158 Traffic - ' \
--rigid \
--base=1000 \
--height=200 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2018/04/29 08\:51\:30 To 2018/04/30 08\:51\:30\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/usr/share/cacti/site/rra/pksepg01_traffic_in_3083.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/pksepg01_traffic_in_3083.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: GRAPHING ONLY IN OUTBOUND DIRECTION

Post by netniV »

Ah, if you are saying that it's a spanner, then you must be running a pre-1.x version of Cacti.

That means you would have to manually look at the data, etc. I'm not even sure if that version has device debugging which would give you more information as it's polling.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests