[rrd-users] 3 questions

Shabnam Shahreza shabnam.shahreza at alpha-group.ca
Thu Oct 13 16:51:44 CEST 2011


Thanx a lot Simon;

I'm going to try these, however at the very end when I get the "MAX per month" out of all of RRD sources, GPRINT or PRINT don't show/print where did this MAX came from... I need to show the name of the source that has the highest value... at the moment I could only print "value" or "time"...

Regards;
Sbnm

-----Original Message-----
From: rrd-users-bounces+shabnam.shahreza=alpha-group.ca at lists.oetiker.ch [mailto:rrd-users-bounces+shabnam.shahreza=alpha-group.ca at lists.oetiker.ch] On Behalf Of Simon Hobson
Sent: Wednesday, October 12, 2011 2:51 PM
To: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] 3 questions

Shabnam Shahreza wrote:

>1)      How can I draw only dots/pixels for the VDEF (MAXIMUM)
>values and not *line* or dashed line?
>I mean only one dot for the maximum value for start-to-end time period?

Dunno, sorry

>2)      And how can I compare different VDEF (MAXIMUMs) from several
>rrd files in one graph and pick the MAX of them? Do I need to create
>a new rrd file and extract the max from there?

You can access multiple RRD files in one graph like this :
DEF:a=rrdfile1.rrd:x:MAX
DEF:b=rrdfile2.rrd:x:MAX

Then you can use the RPN stuff to select the max, like this :
CDEF:abmax=a,b,GT,a,b,IF
a,b,GT puts a result on teh stack to say if it's true or not, then
(something),a,b,IF selects a if (something) is true or b if it's not.
The result is if a>b then select a, else select b.

Of course, the simpler way I'd overlooked is just :
CDEF:abmax=a,b,MAX

>3)      And how can I calculate separate VDEF (MAXIMUM) for
>different start-to-end time frames in one graph, such as monthly?

You can add time spans to a DEF statement :
DEF:c=rrdfile1.rrd:x:MAX:step=(something):start=(something):end=(something)
VDEF:cmax=c,MAXIMUM


See
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

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.



More information about the rrd-users mailing list