9 Jan 2008 22:48
Doing math on multiple datasources and graphing result
Clarke Morledge <chmorl <at> wm.edu>
2008-01-09 21:48:11 GMT
2008-01-09 21:48:11 GMT
I am trying to figure out if Cricket can do some math on multiple
datasources and somehow graph the result along with other datasources
in a single graph.
Let's say part of my config file looks like this:
datasource linkByteCount
ds-source = snmp://%snmp%/linkByteCount.%inst%
desc = "Lower 32 bits of byte count"
datasource linkByteCountHi
ds-source = snmp://%snmp%/linkByteCountHi.%inst%
desc = "Upper 32 bits of byte count"
datasource linkReTxByteCount
ds-source = snmp://%snmp%/linkReTxByteCount.%inst%
desc = "Retransmitted Bytes"
Basically, instead of giving me a single 64-bit counter for "byte count",
the vendor decides to give me only two, 32-bit SNMP mib variables that I
must combine together to form the 64-bit value.
Ideally, what I'd like to do is something like this in Reverse Polish
Notation (RPN):
ByteCount = linkByteCountHi,2,32,*,linkByteCount,+
and then create a targetType:
targetType databytes
(Continue reading)
datasource bytecount
rrd-ds-type = COMPUTE
rrd-cdef = ds1,2,*,32,*,ds0,+
Yeah, the exponential operator appears to be a no-go....
Clarke Morledge
College of William and Mary
----------------------------------------------
Date: Fri, 11 Jan 2008 18:19:23 -0500 (EST)
From: Clarke Morledge <chmorl <at> wm.edu>
To: "Richman, Marc" <mrichman <at> atg.com>
Cc: cricket-users <at> lists.sourceforge.net
Subject: RE: [cricket-users] Doing math on multiple datasources and graphing
result (fwd)
On Fri, 11 Jan 2008, Richman, Marc wrote:
> It's the missing exponentiation operator I mentioned in my previous
> post.
> Did that mail not make it to the list?
Marc,
Doh!
Ah, I see it now. I was totally missing what you were saying at first.
RSS Feed