[rrd-users] Re: perl script that uses RPN exactly like rrdtool CDEF

Mark Musone mmusone at shatterit.com
Thu Dec 4 04:24:02 MET 2003


Try the perl module: Math-RPN-1.08

You can get it at cpan..

-Mark


-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Shipley, Rob
Sent: Wednesday, December 03, 2003 7:03 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] perl script that uses RPN exactly like rrdtool CDEF

I was just wondering if anyone has a perl script that can take RPN math
expressions and use them like rrdtool. 
I am looking for a way to use a CDEF expression and use it outside of
rrdtool. For example, 
push @args, "CDEF:inavbyte=8,ifInOctets,ifSpeed,/,*" for rrdtool could
be
used in a script to get the same results without using rrdtool graph
function:
use RPN;
$utilization = rpn->(8,ifInOctets,ifSpeed,/,*);
 
Any thoughts?
Thanks in advance,
Rob

--
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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
 

--
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



More information about the rrd-users mailing list