Interface - Traffic (bytes/sec, Total Bandwidth) shows 2days
Moderators: Developers, Moderators
Interface - Traffic (bytes/sec, Total Bandwidth) shows 2days
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
Thanks,
Bob
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
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?
post the results
also, for how long have you been using it?
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
/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.
/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.
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
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
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
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
Can you explain these numbers?
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
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
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
Okay, I should probably know this, but how do I change that? I cannot get into the rra folder even with sudo command.
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
Console -> Data Sources -> RRAs
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
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 \
/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 \
- 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
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.
R.
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
How do I drop the old one? Do I need to go into the file structure and delete the file?
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Interface - Traffic (bytes/sec, Total Bandwidth) shows 2
Yes.jeepinbob wrote:How do I drop the old one? Do I need to go into the file structure and delete the file?
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
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Who is online
Users browsing this forum: No registered users and 3 guests