graphing division of two variables?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

graphing division of two variables?

Post by vladah »

Hello,

I can collect two variables via snmp, x1 and x2. But need to present on my graph x1/x2? Is this possible?

Cheers,

Vlad
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yeah, of course. This can be done via CDEFs, in your case cdef=a,b,/. If you need a walkthrough, please start creating a graph that holds both values, x1 and x2, respectively, without any CDEF
Reinhard
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

I got it working, but what I would like to see is graph without separate a and b, just a/b.

Write now I have a, b and a/b. Is it possible to remove a nd b from the graph representation?

Cheers,

Vlad
Attachments
graph_items.JPG
graph_items.JPG (416.98 KiB) Viewed 2707 times
RTT_cisco_SAA.JPG
RTT_cisco_SAA.JPG (96.37 KiB) Viewed 2707 times
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

this is in relation to cisco SAA jitter thingy.

There is no RTTavg OID, just RTTMax and RTTMin, so to get RTTavg,

RTTavg=RTTSum/NumOfRTT.

I'd like not to see RTTSum and NumOfRTT on the graph...just RTTavg alongside with RTTmax and RTTmin...

Cheers,

Vlad
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

vladah wrote:I got it working, but what I would like to see is graph without separate a and b, just a/b.

Write now I have a, b and a/b. Is it possible to remove a nd b from the graph representation?

Cheers,

Vlad
Ho, hooooh, Fury. This was the _first_ step, only. Now, please create the next CDEF called "Make 0" (I'm not sure if it exists on the plain distro, I always have it) like cdef=CURRENT_DATA_SOURCE,0,* and apply it to those LINEx items, you want to "omit".
Recently, there was some change in this (0.8.6i), but I did not check out until now.
Reinhard
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

What I want to ommit are comments from the graphs (last two rows bellow RTTs values, being

NumOfRTT and RTTSum...

I need those two values just for forming RTTavg=RTTSum/NumOfRTT, but don't need them on the graph as comments, or GPRINTs or Lines...

I would like just to see RTTmax, RTTmin, and RTTavg....

Cheers,

Vlad
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So simply delete them from the Graph Template. This will change all associated graphs instantaneously
Reinhard
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

If I delete NumOfRTT and RTTSum will I not loose RTTavg=NumOfRTT/RTTSum, cause CDEF function which builds this devision calls for these two variables???

I need them for RTTavg but not want to see them on the graph?

Cheers,

Vlad
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

gandalf wrote:So simply delete them from the Graph Template. This will change all associated graphs instantaneously
Reinhard
By deleting I meant: delete the comment line. You'll need a LINE1 graph item that you may suppress, as said above, by using the Make 0 cdef. And then, you'll have that ds still available for your cdef calculations.
Reinhard
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

I've got 4 data sources a, b, c and d being:

a RTTmin
b RTTmax
c RTTsum
d NumOfRTT

item 13 (COMMENT: RTTSum) is c and item 17 (COMMENT: NumOfRTT) is d in the pic.

item 9 (No Task: RTTavg) is calculated and graphed by deploying CDEF called RTTavg=c/d.

How can I then delete item 13 and item 17?

Cheers,

Vlad
User avatar
vladah
Posts: 23
Joined: Sun Sep 11, 2005 6:00 pm
Location: Reading, UK

Post by vladah »

I'm getting nice images, but perhaps I'm missing something... just want to stop some variables from being shown on my graphs and don't know how to do that because other variables which has to be graphed directly depend on them through CDEF...

Cheers,

Vlad
Attachments
graph_image_1.JPG
graph_image_1.JPG (174.28 KiB) Viewed 2610 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests