[rrd-users] adding new datasource to an existing RRD

anuj maurice anuj.maurice at gmail.com
Wed Nov 21 06:15:56 CET 2012


Thanks David for the suggestion.
Since i was planning to do it in production i wanted an advice from the
community thats why i asked in mailing list.



On Tue, Nov 20, 2012 at 11:32 PM, David OBrien <dgobrien at gmail.com> wrote:

> after searching the archives ( which you should have done first ) and
> googling I found several people using this...
>
> with perl. Install RRD:Simple
>
> #!/usr/local/bin/perl
>
> use strict;
> use RRD::Simple ();
>
> my $rrd = RRD::Simple->new();
> my $rrdfile=$ARGV[0];
> my $source=$ARGV[1];
> my $type=$ARGV[2];
> chomp($type);
> $rrd->add_source($rrdfile, $source => $type);
>
>
> usage: ./addSource.pl file.rrd ds GUAGE
>
> or whatever the type is..
>
> Enjoy.
>
>
> On Tue, Nov 20, 2012 at 12:26 PM, anuj maurice <anuj.maurice at gmail.com>wrote:
>
>> I have few 100s of rrds and i want to add 5 extra datasource to all of
>> those rrds.
>>
>> 1. Is it advisable to do so
>> 2. Whats the best way and the fastest way to do it
>>
>> Any help wil be highly appreciated
>>
>> Thanks in Advance
>>
>> regards ,
>> Anuj Maurice
>>
>> _______________________________________________
>> rrd-users mailing list
>> rrd-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>>
>


-- 
regards ,
Anuj Maurice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20121121/8003af1f/attachment.htm 


More information about the rrd-users mailing list