I have only a few hundred rrds and I want to add 5 additional data sources for all of these rrds.
- Is it advisable to do this
- What is the best way and fastest way to do this.
- Soln -
David OBrien replied to the mailing list
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);
using:
./addSource.pl file.rrd ds GAUGE
or regardless of type.
Enjoy.
source share