[rrd-users] value and name both

Tobias Oetiker tobi at oetiker.ch
Thu Nov 17 15:27:08 CET 2011


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



More information about the rrd-users mailing list