RRDTool File

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

Moderators: Developers, Moderators

ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

gandalf wrote:
ambre wrote:
TheWitness wrote:For future graphs, you need to change the upper limit. For existing graphs, you must execute the "rrdtool tune -a" command. Goto rrdtool.org and read all about it.

TheWitness
ok

If I want to change the max value of my graph in order to show on graph the :
current, average and max, I can execute that:

rrdtool tune xxx.rrd --maximum <ds-name>:<new-ds max>

To See other information than Nan:
Please visit graph management and post debug output
Reinhard
when I execute :
rrdtool fetch xxx.rrd AVERAGE --start "now -1h"

I get:

Avail Used Total

1235389200: nan 3,1975380400e+08 nan
1235389500: nan 3,1975380400e+08 nan
1235389800: nan 3,1975380400e+08 nan
1235390100: nan 3,1975380400e+08 nan
1235390400: nan 3,1975380400e+08 nan
1235390700: nan 3,1975380400e+08 nan
1235391000: nan 3,1975380400e+08 nan
1235391300: nan 3,1975380400e+08 nan
1235391600: nan 3,1975380400e+08 nan
1235391900: nan 3,1975380400e+08 nan
1235392200: nan 3,1975380400e+08 nan
1235392500: nan 3,1975380400e+08 nan
1235392800: nan nan nan

why nan?
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

anyone can help me ?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Here is my original rrd file
root@cacti:/home/awtadm# rrdtool info /var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd
filename = "/var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd"
rrd_version = "0003"
step = 300
last_update = 1239284403
ds[traffic_in_ast].type = "COUNTER"
ds[traffic_in_ast].minimal_heartbeat = 600
ds[traffic_in_ast].min = 0.0000000000e+00
ds[traffic_in_ast].max = 1.0000000000e+04
ds[traffic_in_ast].last_ds = "1357099668"
ds[traffic_in_ast].value = 2.3132889551e+02
ds[traffic_in_ast].unknown_sec = 0
ds[traffic_out_ast].type = "COUNTER"
ds[traffic_out_ast].minimal_heartbeat = 600
ds[traffic_out_ast].min = 0.0000000000e+00
ds[traffic_out_ast].max = 1.0000000000e+04
ds[traffic_out_ast].last_ds = "1864489093"
ds[traffic_out_ast].value = 3.2021517390e+02
ds[traffic_out_ast].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 115200
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
And here is the cacti debug file:
/usr/bin/rrdtool create \
/var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd \
--step 300 \
DS:traffic_in_ast:COUNTER:600:0:10000 \
DS:traffic_out_ast:COUNTER:600:0:10000 \

RRA:AVERAGE:0.5:1:115200 \
I use this comands:
root@cacti:/home/awtadm# rrdtool tune /var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd --maximum traffic_in_ast:2.0480000000e+06
root@cacti:/home/awtadm# rrdtool tune /var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd --maximum traffic_out_ast:2.048000000e+06
And my rrdtool output becomes:
root@cacti:/home/awtadm# rrdtool info /var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd
filename = "/var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd"
rrd_version = "0003"
step = 300
last_update = 1239285302
ds[traffic_in_ast].type = "COUNTER"
ds[traffic_in_ast].minimal_heartbeat = 600
ds[traffic_in_ast].min = 0.0000000000e+00
ds[traffic_in_ast].max = 2.0480000000e+06
ds[traffic_in_ast].last_ds = "1357165596"
ds[traffic_in_ast].value = 1.5133333333e+02
ds[traffic_in_ast].unknown_sec = 0
ds[traffic_out_ast].type = "COUNTER"
ds[traffic_out_ast].minimal_heartbeat = 600
ds[traffic_out_ast].min = 0.0000000000e+00
ds[traffic_out_ast].max = 2.0480000000e+06
ds[traffic_out_ast].last_ds = "1864581495"
ds[traffic_out_ast].value = 2.1134666667e+02
ds[traffic_out_ast].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 115200
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
But cacti side is like:
/usr/bin/rrdtool create \
/var/www/cacti/rra/pinarbasi-3750_traffic_in_ast_591.rrd \
--step 300 \
DS:traffic_in_ast:COUNTER:600:0:10000 \
DS:traffic_out_ast:COUNTER:600:0:10000 \

RRA:AVERAGE:0.5:1:115200 \
As you see cacti debug not change. WHY?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest