[rrd-users] Re: Perl and RRDTool
todd_caine at eli.net
Tue Oct 2 17:09:46 MEST 2001
If you don't have any special reason why you need an independent RRDtool
process, then I would say always use RRDs from within your Perl scripts. There
is no reason for the overhead of forking of another process. The manual states:
If you have the choice use this interface (RRDs), as it is more efficient
and gives you better access to data returned from the various functions of
The only time I've used RRDp was to create an RRD Updater daemon which would
spawn off new process so that the daemon wouldn't block on update requests, that
way I was able to still queue update requests until the RRD process was free to
handle more requests.
Hope that helps a little.
Jason Frisvold wrote:
> I'm a bit new to RRDTool and I'm having a little trouble
> figuring out what I need to use... I see 2 Perl Modules. RRDp.pm and
> RRDs.pm. From what I've read, RRDp is a piped version, and RRDs is a shared
> version. My problem is, I'm not sure what the advantage of one over the
> other is. I'm inclined to use RRDs because it seems to be more robust for
> what I want to do... Let me explain a bit further..
> I have a huge database of equipment that we track (memory,
> octets, temperature, etc). Right now I have a perl program building several
> MRTG configs and firing up MRTG to collect the needed data. MRTG is in
> rrdtool mode, so it's saving all that info into RRD's. (This is until I
> have a chance to write a custom collector so I can combine info and do other
> nifty things) In another table in the database, I plan to store a listing
> of options for rrdtool. This way I can have the type of graph displayed
> change based on user preference or on the type of data that I am storing.
> So, I need to get the options from a database and pass them to rrdtool.
> I think RRDs is the way to go because it's not running rrdtool
> concurrently as it builds whatever data it needs to... (I know I can
> start/stop at will, but it seems like more overhead to me)
> Am I correct in my thinking here? Can someone point me in the
> right direction, or at least point me to some good info on piped versus
> Jason H. Frisvold
> Senior ATM Engineer
> Engineering Dept.
> CCNA Certified - CSCO10151622
> friz at corp.ptd.net
> "So Long and Thanks for all the Fish" -- Douglas Adams [1952-2001]
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
Electric Lightwave, Inc.
tcaine at eli.net
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users