<font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000">after searching the archives ( which you should have done first ) and googling I found several people using this...<br><br><span style="line-height:18.200000762939453px">with perl. Install RRD:Simple <br>
</span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">#!/usr/local/bin/perl </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<span style="line-height:18.200000762939453px">use strict; </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">use RRD::Simple (); </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">my $rrd = RRD::Simple->new(); </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<span style="line-height:18.200000762939453px">my $rrdfile=$ARGV[0]; </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">my $source=$ARGV[1]; </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<span style="line-height:18.200000762939453px">my $type=$ARGV[2]; </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">chomp($type); </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<span style="line-height:18.200000762939453px">$rrd->add_source($rrdfile, $source => $type); </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">usage: ./addSource.pl file.rrd ds GUAGE </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<br style="margin:0px;padding:0px;line-height:18.200000762939453px"><span style="line-height:18.200000762939453px">or whatever the type is.. </span><br style="margin:0px;padding:0px;line-height:18.200000762939453px"><br style="margin:0px;padding:0px;line-height:18.200000762939453px">
<span style="line-height:18.200000762939453px">Enjoy.</span><br></font><div class="gmail_extra"><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><br><br></font><div class="gmail_quote">
<font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000">On Tue, Nov 20, 2012 at 12:26 PM, anuj maurice <span dir="ltr"><<a href="mailto:anuj.maurice@gmail.com" target="_blank">anuj.maurice@gmail.com</a>></span> wrote:<br>
</font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="line-height:18px;background-color:rgb(255,255,255)"><font face="courier new, monospace" color="#000000">I have few 100s of rrds and i want to add 5 extra datasource to all of those rrds.</font></span><div>
<font color="#000000" face="courier new, monospace"><span style="line-height:18px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><span style="line-height:18px">1. </span><span style="line-height:18px">Is it advisable to do so</span></font></div>
<div><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><span style="line-height:18px">2. </span><span style="line-height:18px">Whats the best way and the fastest way to do it</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span style="line-height:18px;background-color:rgb(255,255,255)"><br></span></font></div><div><font color="#000000" face="courier new, monospace"><span style="line-height:18px;background-color:rgb(255,255,255)">Any help wil be highly appreciated<br clear="all">
</span></font><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><br></font></div><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000">Thanks in Advance</font></div>
<div><font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><br>regards ,<br>Anuj Maurice<br>
</font></div>
<font face="courier new, monospace" style="background-color:rgb(255,255,255)" color="#000000"><br>_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br></font></blockquote></div><br></div>