RRDTool File
Moderators: Developers, Moderators
RRDTool File
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 )
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 (73.72 KiB) Viewed 5753 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
okTheWitness 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
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 (73.72 KiB) Viewed 5668 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
no but if I unchecked Auto scale I change just the graduation of my graph, not value of Available and total (graph see previously).Vins wrote:You also unchecked the "Auto scale" options, right?ambre wrote:just that change the upper limit , doesn't work...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...
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)ambre wrote:no but if I unchecked Auto scale I change just the graduation of my graph, not value of Available and total (graph see previously).Vins wrote:You also unchecked the "Auto scale" options, right?ambre wrote: just that change the upper limit , doesn't work...
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please visit graph management and post debug outputambre wrote:okTheWitness 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
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:
Reinhard
I have already see the debug of my graph but I have see nothing .....gandalf wrote:Please visit graph management and post debug outputambre wrote:okTheWitness 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
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:
Reinhard
gandalf wrote:Please visit graph management and post debug outputambre wrote:okTheWitness 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
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:
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:
Who is online
Users browsing this forum: No registered users and 0 guests