Latest Comments

Santiago

In response to: Adding a column to an existing RRD database...

Santiago [Visitor]
Thanks! This article helped me a lot!!!
PermalinkPermalink 10/06/11 @ 17:23
Nancy

In response to: Video Card ATI HD3300

Nancy [Visitor]
Thanks for the share!
Nancy.R
PermalinkPermalink 09/30/11 @ 14:36
marta

In response to: Adding a column to an existing RRD database...

marta [Visitor]
thanks!! it works fine :)
PermalinkPermalink 06/29/11 @ 04:12
Jean-Marc

In response to: Adding a column to an existing RRD database...

Jean-Marc [Visitor]
Wow! I haven't try that, but sound way easier!

Thanks for sharing. If anyone can test and provide a feedback, it's welcome.

JM
PermalinkPermalink 02/15/11 @ 15:36
Marcus

In response to: Adding a column to an existing RRD database...

Marcus [Visitor]
#!/usr/bin/perl

use strict;
use warnings;

use RRD::Simple();

my $rrd_file = "./orig.rrd";
my $rrd = RRD::Simple->new();

print "Processing $rrd_file...";
$rrd->add_source($rrd_file, 'APACHE2' => 'GAUGE');
print " ok.\n";
PermalinkPermalink 02/13/11 @ 19:40

In response to: Adding a column to an existing RRD database...

jmspaggi [Member]
You're right!

Thanks for highlighting that.

It should have been done by something like that first:


rrdtool create eau2.rrd --start 1202484376 \
DS:HWH:GAUGE:288:U:U \
DS:HWL:GAUGE:288:U:U \
DS:ROOM:GAUGE:288:U:U \
RRA:AVERAGE:0.5:1:12 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:1:2016 \
RRA:AVERAGE:0.5:1:8928 \
RRA:AVERAGE:0.5:1:105408 \
RRA:AVERAGE:0.5:1:316224



to create the eau2.rd, then editing the file by adding <ds> tag. Your dump file should already contain something like:


<ds>
<name> HWH </name>
<type> GAUGE </type>
<minimal_heartbeat> 288 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>

<!-- PDP Status -->
<last_ds> 55 </last_ds>
<value> 1.0130448955e+04 </value>
<unknown_sec> 0 </unknown_sec>
</ds>


so you should add that 2 times with the new fields name.


<ds>
<name> HWL </name>
<type> GAUGE </type>
<minimal_heartbeat> 288 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>

<!-- PDP Status -->
<last_ds> 53.5 </last_ds>
<value> 9.8541639835e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>

<ds>
<name> ROOM </name>
<type> GAUGE </type>
<minimal_heartbeat> 288 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>

<!-- PDP Status -->
<last_ds> -19.5 </last_ds>
<value> -3.5917046295e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>



JM

PermalinkPermalink 01/07/10 @ 16:50
ilConsigliere

In response to: Adding a column to an existing RRD database...

ilConsigliere [Visitor]
It works, but I think you have forgotten to define the new column beforse the rra tag
PermalinkPermalink 12/28/09 @ 06:06
April 2024
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

Statistiques

Free counter and web stats

Search

XML Feeds

powered by b2evolution