[rrd-users] value and name both

Raman Dhanoa dhanoaraman at yahoo.com.au
Mon Dec 19 00:26:29 CET 2011


how do i unsubscribe?


________________________________
 From: Shabnam Shahreza <shabnam.shahreza at alpha-group.ca>
To: Tobias Oetiker <tobi at oetiker.ch> 
Cc: "rrd-users at lists.oetiker.ch" <rrd-users at lists.oetiker.ch> 
Sent: Friday, 18 November 2011 1:29 AM
Subject: Re: [rrd-users] value and name both
 
But it still gives me the "value" not the "name of the variable carrying that value"... right?

Imagine if the maximum value is 100.05 I want to know also which of the var1,var2,var3,.. has this value....


-----Original Message-----
From: Tobias Oetiker [mailto:tobi at oetiker.ch] 
Sent: Thursday, November 17, 2011 9:27 AM
To: Shabnam Shahreza
Cc: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] value and name both

Hi Shabnam,

you could do it using multiple CDEF expressions, using the IF
function, looking at each var in turn, comparing it with the
maximum earlier found.

cheers
tobi

Today Shabnam Shahreza wrote:

> Since I got no answer on this should I consider that this can't be done at all?
> I mean along with the values to draw the graph I need to know what was the source of this "interesting" value (which is maximum here - I even keep it in the name of the variable to see if I can use it later)....
>
> Any idea?
>
> Regards;
> Sbnm
> From: Shabnam Shahreza
> Sent: Wednesday, November 16, 2011 10:33 AM
> To: rrd-users at lists.oetiker.ch
> Subject: value and name both
>
> Hi everyone:
>
> Imagine that I have something like this (please ignore if the syntax if not 100% correct - it is more complicated in my script)
>
> "CDEF:name=var1,var2,var3,var4,... <number of variables>,SORT, POP"
>
> This gives me the maximum (although I had to use REV as well.. by this is working in my script fine....ignore the syntax please)
>
> My question is how can I find which one of those "variables" [var1,var2, .... ] was the maximum?!!
> I want not only the value but also the "name" of the variable as it has some good information for me....
>
> Regards;
>
> Shabnam Shahreza
> Alpha Group
> p: 647-259-0443
> c: 647-638-6440
> f: 416-642-2120
> 70 York Street, Suite 1501
> Toronto, ON M5J 1S9
> www.alpha-group.ca<http://www.alpha-group.ca/>
>
>
> Before printing, think about the environment
>
> ________________________________
> The information in this email is confidential and may be subject to solicitor-client privilege and laws relating to intellectual property. The information contained in this e-mail is intended solely for the addressee(s) and access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately and delete this email from your system without making a copy. You should not copy, use or disseminate the information contained in the email. Any views expressed in this email are those of the individual sender, and, except where the sender specifically indicates, do not reflect the views of Alpha Trading Systems Limited Partnership, its subsidiaries, affiliates, partners, directors, officers or employees.
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20111218/71b6b5b8/attachment.htm 


More information about the rrd-users mailing list