How do I change maximum value?

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

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

How do I change maximum value?

Post by TFC »

Hi,
I have an interface. Its speed is 1024 K. But due to some routing tricks I set the speed 10 K. And I create data files. But data files sees interface speed as 10K
How can i set max. value a 1024 K
here is rrdtool info output:
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+04
ds[traffic_in].last_ds = "2261100525"
ds[traffic_in].value = 3.6397000000e+02
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+04
ds[traffic_out].last_ds = "2188510148"
ds[traffic_out].value = 3.5923000000e+02
ds[traffic_out].unknown_sec = 0
I mean how can i set the red values as 1.0240000000e+06 ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please change the data template first. Then use "rrdtool tune --maximum" for all existing rrd files
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

You mean, uncheck the Maximum value. Ok but i wanna change only two existing interface's max. value not all..
rrdtool tune seems correct solution for me i think. But i dont know how to use this options.
Its help in not clear for me.
I try like that:
root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_in=1.0240000000e+06
root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_out=1.0240000000e+06
and output of rrd files becomes:
filename = "ankaraybp2610_traffic_in_472.rrd"
rrd_version = "0003"
step = 300
last_update = 1229319003ds[traffic_in].last_ds = "2289791717"
ds[traffic_in].value = 3.0777000000e+02
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = NaN
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = NaN
I dont know how to use this "tune" option
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_in:1.0240000000e+06
root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_out:1.0240000000e+06

TFC wrote:You mean, uncheck the Maximum value. Ok but i wanna change only two existing interface's max. value not all..
rrdtool tune seems correct solution for me i think. But i dont know how to use this options.
Its help in not clear for me.
I try like that:
root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_in=1.0240000000e+06
root@cacti:/var/www/cacti/rra# rrdtool tune ankaraybp2610_traffic_in_472.rrd -a traffic_out=1.0240000000e+06
and output of rrd files becomes:
filename = "ankaraybp2610_traffic_in_472.rrd"
rrd_version = "0003"
step = 300
last_update = 1229319003ds[traffic_in].last_ds = "2289791717"
ds[traffic_in].value = 3.0777000000e+02
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = NaN
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = NaN
I dont know how to use this "tune" option
Cacti user
hmorneau
Posts: 3
Joined: Fri Mar 12, 2010 6:11 pm

Post by hmorneau »

Hi,

Thanks for this help, it was usefull to change the current rrd file.

But I have change my value in my data template in cacti, but new rrd file are not generated with the value I specify, but with the default one...

I have double check every thing multiple times.

Thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

It's pulling that value from the interface speed for the new data sources.
Chrysalis
Cacti User
Posts: 70
Joined: Fri Sep 19, 2008 10:14 am
Location: UK

Re: How do I change maximum value?

Post by Chrysalis »

Hi, it seems a bit silly cacti doesnt run rrdtool tune automatically?

If i change my template and especially if the value is defined per source and I change it on individual data sources it seems reasonable to expect the change to be applied to existing graphs.

Instead I have to make a new data source, and basically abandon the old one losing historical data in the process. This seems very backwards.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest