Interface - Traffic (bytes/sec, Total Bandwidth) shows 2days

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Interface - Traffic (bytes/sec, Total Bandwidth) shows 2days

Post by jeepinbob »

I was able to use this template to show bandwidth and I like that it shows cumulative as well, but it is only showing 2 days worth. I tried searching the forums but couldn't find anything. please help or send me to a previous post with answers.

Thanks,
Bob
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by victorantunes »

Go to Console -> Data Sources -> Click on desired Data Source -> Turn on Data Source Debug Mode

post the results


also, for how long have you been using it?
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by jeepinbob »

/usr/bin/rrdtool create \
/var/lib/cacti/rra/mail_svr_traffic_in_85.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:500 \
RRA:MAX:0.5:1:500 \

Been using for about a month or so. I have data going further back for all the other graphs.
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by victorantunes »

well, there's your problem.

300 x 1 x 500 = 150000 seconds (500 rows of data, each containing a 300 seconds zoom) = 1,736 days

you'll have to recalculate your RRA's to your desired results.


Example:

If you want data to go back 6 months, replace your 500 with:

86400 (one day) x 6 x 31 = 16070400
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by jeepinbob »

Can you explain these numbers?
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by victorantunes »

I could try, but this mini tutorial does a very good job already: http://ds9a.nl/rrd-mini-howto/cvs/rrd-m ... wto-1.html
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by jeepinbob »

Okay, I should probably know this, but how do I change that? I cannot get into the rra folder even with sudo command.
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by victorantunes »

Console -> Data Sources -> RRAs
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by jeepinbob »

Found it and made the changes, but still have only two days worth.

/usr/bin/rrdtool create \
/var/lib/cacti/rra/websvr_traffic_in_31.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:1:86400 \
RRA:AVERAGE:0.5:1:86400 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:1:86400 \
RRA:MAX:0.5:1:86400 \
RRA:MAX:0.5:288:797 \
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by gandalf »

After changing RRAs, you will have to drop the old rrd file. The new one will be automatically re-created on next polling interval, using the latest definitions
R.
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by jeepinbob »

How do I drop the old one? Do I need to go into the file structure and delete the file?
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2

Post by paulgevers »

jeepinbob wrote:How do I drop the old one? Do I need to go into the file structure and delete the file?
Yes.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest