You can do this:

- in your script that generates the graph, first call another rrdtool
graph with a different start and end time.
- capture the output from the print statement.
- print a comment in your graph "COMMENT:Between noon and midnight\:
$value Bps on average"

If you still want to use the %s option you need to trick a bit by
converting your value to a cdef, but that's a different story.

Serge.

p.s. I took some time to study this, this is what my graphs look like: 
http://www.ee.ethz.ch/~slist/pantomime/rrdtool-example.gif


-----Original Message-----
From: Buttery, Daniel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 18, 2003 11:52 AM
To: '[email protected]'
Subject: [rrd-users] Re: Getting a different 'average'



Hi!

Thanks to Serge for sorting that out for me. :)

One more thing - can text be added to a GPRINT command? ie, I now have
"46k"
printed on the graph, but want it to read "Avg. In: 46k". Please forgive
my
stupidity. :)

Also can you define seperate time criteria for the same graph? ie my
graph
is set to show in/out for x num days, but i want to show the above
average
for the time between certain hours. If that makes sense.

Cheers!

-----Original Message-----
From: Buttery, Daniel [mailto:[EMAIL PROTECTED]
Sent: 18 February 2003 08:59
To: '[email protected]'
Subject: [rrd-users] Getting a different 'average'


Hi peeps.
 
We've got RRDTool grabbing SNMP data from our Netscreen appliance to
plot
bandwidth utilisation for the Internet, and everything is working fine.
 
Is there anyway I can print a value that will give me the average
bandwidth
used? ie....
 
I've written a Perl script that creates a graph from the database for a
defined number of days. Using the information gathered, I'd like to know
on
average how much bandwidth we use during the day (say, between 8am and
6pm)
for reporting purposes.
 
Relatively straightforward requirement I guess, but I haven't found a
way to
do it after going through the documentation. If it isn't possible, can I
get
my Perl script to read the values being used to generate the graph, tot
them
up and use that in a sum to do a 'brute force' calculation (ie do the
sum
and pipe the answer to a text file or similar)? I hope that makes sense.
 
Thanks in advance!

Daniel Buttery
IT Services Engineer
Music Choice Ltd, Fleet House
57-61 Clerkenwell Road, London, EC1M 5LA
Direct Line +44 (0)20 7014 8703
Mobile +44 (0)7901 916 614
Main Tel +44 (0)20 7014 8700
Main Fax +44 (0)20 7253 8460
Email [EMAIL PROTECTED] 

 


http://www.musicchoice.co.uk

Support Digital Media - Join EDiMA - http://www.edima.org

Music Choice Limited (company registration number 2838971) is a
company incorporated in England and Wales with its registered
office at Fleet House, 57-61 Clerkenwell Road, London EC1M 5LA.
 
**********************************************************************
Information in this email is confidential and may be privileged. It is
intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: text/html


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


http://www.musicchoice.co.uk

Support Digital Media - Join EDiMA - http://www.edima.org

Music Choice Limited (company registration number 2838971) is a
company incorporated in England and Wales with its registered
office at Fleet House, 57-61 Clerkenwell Road, London EC1M 5LA.
 
**********************************************************************
Information in this email is confidential and may be privileged. It is
intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to