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

RRDTool File

Post by ambre »

hello,

I would like to change the maximum of a graph with command rrdtool.

I have for example that: for rrdtool create and rrdtool info:

/var/lib/cacti/rra/xxx.rrd \
--step 300 \
DS:Avail:GAUGE:600:0:U \
DS:Used:GAUGE:600:0:U \
DS:Total:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

rrdtool info xxx_xxxl_919.rrd
filename = "xxxx_xxxx_919.rrd"
rrd_version = "0003"
step = 300
last_update = 1234865112
ds[Avail].type = "GAUGE"
ds[Avail].minimal_heartbeat = 600
ds[Avail].min = 0.0000000000e+00
ds[Avail].max = NaN
ds[Avail].last_ds = "-1603876492"
ds[Avail].value = NaN
ds[Avail].unknown_sec = 12
ds[Used].type = "GAUGE"
ds[Used].minimal_heartbeat = 600
ds[Used].min = 0.0000000000e+00
ds[Used].max = NaN
ds[Used].last_ds = "315386304"
ds[Used].value = 3.7846356480e+09
ds[Used].unknown_sec = 0
ds[Total].type = "GAUGE"
ds[Total].minimal_heartbeat = 600
ds[Total].min = 0.0000000000e+00
ds[Total].max = NaN
ds[Total].last_ds = "-1288490188"
ds[Total].value = NaN
ds[Total].unknown_sec = 12
rra[0].cf = "AVERAGE"
rra[0].rows = 500
rra[0].cur_row = 205
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
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 600
rra[1].cur_row = 27
rra[1].pdp_per_row = 1
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[1].cdp_prep[2].value = NaN
rra[1].cdp_prep[2].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 700
rra[2].cur_row = 359
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 1
rra[2].cdp_prep[1].value = 3.1538630400e+08
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[2].cdp_prep[2].value = NaN
rra[2].cdp_prep[2].unknown_datapoints = 1
rra[3].cf = "AVERAGE"
rra[3].rows = 775

etc......
I have that when I click on debug mode:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Samarra - Usage Space - /vol/snapvault/" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:9: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/xxx.rrd":Used:AVERAGE \
DEF:b="/var/lib/cacti/rra/xxx.rrd":Used:MAX \
DEF:c="/var/lib/cacti/rra/xxx.rrd":Avail:AVERAGE \
DEF:d="/var/lib/cacti/rra/xxx.rrd":Avail:MAX \
DEF:e="/var/lib/cacti/rra/xxx.rrd":Total:AVERAGE \
DEF:f="/var/lib/cacti/rra/xxx.rrd":Total:MAX \
CDEF:cdefa=a,1024,* \
CDEF:cdefd=b,1024,* \
CDEF:cdefe=c,1024,* \
CDEF:cdefh=d,1024,* \
CDEF:cdefi=e,1024,* \
CDEF:cdefbb=f,1024,* \
AREA:cdefa#0000FFFF:"Used" \
GPRINT:cdefa:LAST:" Cur\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefe#D2D8F9FF:"Available":STACK \
GPRINT:cdefe:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Max\:%8.2lf %s\n" \
LINE1:cdefi#00004DFF:"Total" \
GPRINT:cdefi:LAST:" Cur\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefbb:MAX:"Max\:%8.2lf %s\n"


how do you do to change that in oder to show all values in my graph?
(For example : Availlable and Total values of graph below )
Attachments
graph.png
graph.png (73.72 KiB) Viewed 5756 times
User avatar
Vins
Cacti User
Posts: 116
Joined: Tue Sep 12, 2006 3:06 am

Post by Vins »

I think it's sufficient to redefine the upper-limit boundaries under Templates->GraphTemplates to the value you want to be displayed as max value...
:roll:
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

Vins wrote:I think it's sufficient to redefine the upper-limit boundaries under Templates->GraphTemplates to the value you want to be displayed as max value...
:roll:
just that change the upper limit , doesn't work...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

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:
Attachments
graph.png
graph.png (73.72 KiB) Viewed 5671 times
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

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
Why the graph doesn't show the values? (see my graph previously)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hookup gandolf. Second link on his signature line.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

TheWitness wrote:Hookup gandolf. Second link on his signature line.
ok I will tell him of my problem.

I haven't understand your post, sorry .
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

when I change the Max value in data template , there is no change.... the Available and total are already as value "nan" in my graph.
User avatar
Vins
Cacti User
Posts: 116
Joined: Tue Sep 12, 2006 3:06 am

Post by Vins »

ambre wrote:
Vins wrote:I think it's sufficient to redefine the upper-limit boundaries under Templates->GraphTemplates to the value you want to be displayed as max value...
:roll:
just that change the upper limit , doesn't work...
You also unchecked the "Auto scale" options, right?
:lol:
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

Vins wrote:
ambre wrote:
Vins wrote:I think it's sufficient to redefine the upper-limit boundaries under Templates->GraphTemplates to the value you want to be displayed as max value...
:roll:
just that change the upper limit , doesn't work...
You also unchecked the "Auto scale" options, right?
:lol:
no but if I unchecked Auto scale I change just the graduation of my graph, not value of Available and total (graph see previously).
ambre
Cacti User
Posts: 64
Joined: Tue Jan 27, 2009 5:41 am

Post by ambre »

ambre wrote:
Vins wrote:
ambre wrote: just that change the upper limit , doesn't work...
You also unchecked the "Auto scale" options, right?
:lol:
no but if I unchecked Auto scale I change just the graduation of my graph, not value of Available and total (graph see previously).
when I utilized the command "rrdtool tune -a", I have now values for "available and Total" but the value is negaative (Available current: -1.32G average:-1.32G Maximum: -1.32G)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
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
I have already see the debug of my graph but I have see nothing .....
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

here my debug of graph management:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Usage Space - /vol/snapvault/" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:9: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/xxx.rrd":Used:AVERAGE \
DEF:b="/var/lib/cacti/rra/xxx.rrd":Used:MAX \
DEF:c="/var/lib/cacti/rra/xxx.rrd":Avail:AVERAGE \
DEF:d="/var/lib/cacti/rra/xxx.rrd":Avail:MAX \
DEF:e="/var/lib/cacti/rra/xxx.rrd":Total:AVERAGE \
DEF:f="/var/lib/cacti/rra/xxx.rrd":Total:MAX \
CDEF:cdefa=a,1024,* \
CDEF:cdefd=b,1024,* \
CDEF:cdefe=c,1024,* \
CDEF:cdefh=d,1024,* \
CDEF:cdefi=e,1024,* \
CDEF:cdefbb=f,1024,* \
AREA:cdefa#0000FFFF:"Used" \
GPRINT:cdefa:LAST:" Cur\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Max\:%8.2lf %s\n" \
AREA:cdefe#D2D8F9FF:"Available":STACK \
GPRINT:cdefe:LAST:"Cur\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Max\:%8.2lf %s\n" \
LINE1:cdefi#00004DFF:"Total" \
GPRINT:cdefi:LAST:" Cur\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Avr\:%8.2lf %s" \
GPRINT:cdefbb:MAX:"Max\:%8.2lf %s\n"

RRDTool Says:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest