Clarke Morledge | 9 Jan 22:48 2008

Doing math on multiple datasources and graphing result

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)

Paolo Cesare BERVA | 10 Jan 08:53 2008

Re: Doing math on multiple datasources and graphing result

Clarke Morledge wrote:
> 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:
> 
(Continue reading)

Richman, Marc | 10 Jan 16:59 2008

Re: Doing math on multiple datasources and graphing result

It would be nice if the documentation
http://cricket.sourceforge.net/support/doc/reference.html had a section
on COMPUTE under rrd-ds-type, there is a mention of it in the PERFMON
section,

Also I think the RPN is missing an exponentiation operator, also not
listed in the docs, perhaps it is "**"?
Anyone know? 

I wish I had known about this when I wrote my NetApp config script

			Marc

-----Original Message-----
From: cricket-users-bounces <at> lists.sourceforge.net
[mailto:cricket-users-bounces <at> lists.sourceforge.net] On Behalf Of Paolo
Cesare BERVA
Sent: Thursday, January 10, 2008 2:53 AM
To: Clarke Morledge
Cc: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] Doing math on multiple datasources and
graphing result

Clarke Morledge wrote:
> 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:
> 
(Continue reading)

Clarke Morledge | 11 Jan 23:18 2008

Re: Doing math on multiple datasources and graphing result (fwd)

Paolo,

Thanks for your help.  Unfortunately, I hit another road block when trying 
to implement the sample configuration.  Here's the error that shows in the 
collector debug:

Cannot update /home/cricket/cricket-data/temp/test.rrd: RPN final stack 
size != 1

I'm not sure why the RPN calculation fails to return just one item on the 
stack.   It looks like mystery-mystery RRD stuff, but I haven't haven't 
been able to find out where and how to debug it.

Does anyone have any suggestions?

Clarke Morledge
College of William and Mary
Information Technology - Network Engineering
Jones Hall (Room 18)
Williamsburg VA 23187

-------------------------------------------
Date: Thu, 10 Jan 2008 08:53:05 +0100
From: Paolo Cesare BERVA <paolo.berva <at> st.com>
To: Clarke Morledge <chmorl <at> wm.edu>
Cc: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] Doing math on multiple datasources and graphing
     result

Clarke Morledge wrote:
(Continue reading)

Richman, Marc | 11 Jan 23:26 2008

Re: Doing math on multiple datasources and graphing result (fwd)

It's the missing exponentiation operator I mentioned in my previous
post.
Did that mail not make it to the list?

It looked like this:
It would be nice if the documentation
http://cricket.sourceforge.net/support/doc/reference.html had a section
on COMPUTE under rrd-ds-type, there is a mention of it in the PERFMON
section,

Also I think the RPN is missing an exponentiation operator, also not
listed in the docs, perhaps it is "**"?
Anyone know? 

I wish I had known about this when I wrote my NetApp config script

			Marc

-----Original Message-----
From: cricket-users-bounces <at> lists.sourceforge.net
[mailto:cricket-users-bounces <at> lists.sourceforge.net] On Behalf Of Clarke
Morledge
Sent: Friday, January 11, 2008 5:18 PM
To: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] Doing math on multiple datasources and
graphing result (fwd)

Paolo,

Thanks for your help.  Unfortunately, I hit another road block when
(Continue reading)

Richman, Marc | 12 Jan 00:03 2008

Re: Doing math on multiple datasources and graphingresult (fwd)

Looking at the rrdtool docs
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html

there doesn't appear to be an exponent operator 

Try using this
         rrd-cdef    = ds1, 4294967286,*,ds0,+

instead of this
         rrd-cdef    = ds1,2,32,*,ds0,+
                       this is (2*32)+ds0 and leaves ds1 on the stack

-----Original Message-----
From: Marc Powell [mailto:marc <at> ena.com] 
Sent: Friday, January 11, 2008 5:39 PM
To: Richman, Marc; cricket-users <at> lists.sourceforge.net
Subject: RE: [cricket-users] Doing math on multiple datasources and
graphingresult (fwd)

> It would be nice if the documentation
> http://cricket.sourceforge.net/support/doc/reference.html had a
section
> on COMPUTE under rrd-ds-type, there is a mention of it in the PERFMON
> section,
> 
> Also I think the RPN is missing an exponentiation operator, also not
> listed in the docs, perhaps it is "**"?
> Anyone know?

Unless I'm completely mistaken, both the COMPUTE DS type and all RPN
(Continue reading)

Clarke Morledge | 12 Jan 00:19 2008

Re: 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.

I made another typo earlier and received an "RPN stack underflow" error, 
which is another type of RPN math error.  Not too many references to it in 
the archives.  So, at least it will be in the archives now for all 
posterity just in case someone else hits this again.

I wasn't really sure about the exponential operator (** probably does the 
trick, as you mentioned), so I just did this and it works:

datasource	bytecount
 	rrd-ds-type	= COMPUTE
 	rrd-cdef	= ds1,2,*,32*,ds0,+

Thanks for setting me straight.

Clarke Morledge
College of William and Mary
Information Technology - Network Engineering
Jones Hall (Room 18)
(Continue reading)

Clarke Morledge | 12 Jan 00:22 2008

Re: Doing math on multiple datasources and graphing result

Lovely typos :-(

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.
(Continue reading)

Marc Powell | 11 Jan 23:39 2008

Re: Doing math on multiple datasources and graphingresult (fwd)


> -----Original Message-----
> From: cricket-users-bounces <at> lists.sourceforge.net
[mailto:cricket-users-
> bounces <at> lists.sourceforge.net] On Behalf Of Richman, Marc
> Sent: Friday, January 11, 2008 4:26 PM
> To: Clarke Morledge; cricket-users <at> lists.sourceforge.net
> Subject: Re: [cricket-users] Doing math on multiple datasources and
> graphingresult (fwd)
> 
> It's the missing exponentiation operator I mentioned in my previous
> post.
> Did that mail not make it to the list?
> 
> It looked like this:
> It would be nice if the documentation
> http://cricket.sourceforge.net/support/doc/reference.html had a
section
> on COMPUTE under rrd-ds-type, there is a mention of it in the PERFMON
> section,
> 
> Also I think the RPN is missing an exponentiation operator, also not
> listed in the docs, perhaps it is "**"?
> Anyone know?

Unless I'm completely mistaken, both the COMPUTE DS type and all RPN
calculations are provided by rrdtool, unmodified by Cricket. Have you
looked at the rrdtool documentation for the above?

--
(Continue reading)

james bond | 25 Jan 18:21 2008
Picon

upgrading to 64bit counter

Hi,
I am new to cricket and I have inhereted a cricket
installation with version 1.0.3.
I found out that when polling 10GigaBit Ethernet
interfaces, my chart clips off at about 100MB.
I have tried a number of methods to fix this problem
but I failed.
I figured that I need to upgrade to cricket version
1.0.5 and SNMP_Session version 1.11 to allow for snmp
version 2.
Can any one provide a quick how_to to simply fix this
counter problem on the current installation. I need to
meet a dead line comming soon.
I am working on building a new server with a new
installation of cricket.
I am using Solaris 8 system with perl 5.6.0.

Thanks in advance.

      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane