title: adding new datasource to an existing RRD
body: <p>I have few 100s of rrds and i want to add 5 extra datasource to all of those rrds. </p>
  
  <ol>
  <li>Is it advisable to do so</li>
  <li>Whats the best way and the fastest way to do it</li>
  </ol>
  
  <p>-- <strong>Soln</strong> --</p>
  
  <p><strong>David OBrien replied in the mailing list</strong></p>
  
  <p>after searching the archives ( which you should have done first ) and googling I found several people using this...</p>
  
  <p>with perl. Install RRD:Simple </p>
  
  <pre><code>#!/usr/local/bin/perl 
  
  use strict; 
  use RRD::Simple (); 
  
  my $rrd = RRD::Simple-&gt;new(); 
  my $rrdfile=$ARGV[0]; 
  my $source=$ARGV[1]; 
  my $type=$ARGV[2]; 
  chomp($type); 
  $rrd-&gt;add_source($rrdfile, $source =&gt; $type); 
  </code></pre>
  
  <p>usage:</p>
  
  <pre><code>./addSource.pl file.rrd ds GAUGE 
  </code></pre>
  
  <p>or whatever the type is.. </p>
  
  <p>Enjoy.</p>