Subject: RE: making "longer" graphs produces 'blocky' results
From: David Packham (dpackham@netcom.utah.edu)
Date: Mon Oct 02 2000 - 18:18:03 CDT
How do you make those cool graphs on your page? Can ya give us a sample
of your makefile?
Dave Packham
-----Original Message-----
From: Dave Plonka [mailto:plonka@doit.wisc.edu]
Sent: Monday, October 02, 2000 5:03 PM
To: flowscan@net.doit.wisc.edu
Cc: Andrew Fort
Subject: Re: making "longer" graphs produces 'blocky' results
On Mon, Oct 02, 2000 at 03:30:08PM +1000, Andrew Fort wrote:
> Warning, I'm a RRDtool beginner, but couldn't find anything directly
in the
> documentation about this.. It may be a common problem for FlowScan
users, so
> here goes:
>
> - I've modified Dave's example Makefile to produce a graph for 2
weeks,
> instead of 2 days. The .png produced appears quite "blocky". The
exact
> modification made is
>
> I've added a directive
>
> past_fortnight = $$($(perl) -e 'print time - $(week)*2*60*60')
If all you wish to do is change the time range or output file type, you
may not need to customize the most recent "graphs.mf" which I posted to
the list:
http://net.doit.wisc.edu/~plonka/list/flowscan/archive/att-0329/01-graph
s.mf.in.gz
There is already a make variable called "hours" which you can use as in
the example below. First figure out how many hours you want:
$ bc # two weeks
2*7*24
336
$
Then pass that to make(1) on the command line:
$ make -f graphs.mf filetype=png hours=336 io_services_bits.png
<snip>
> I'm guessing this isn't the right way to do this, or I need to include
> something else, or modify the RRD creation process to include more
accuracy
> for aggregate results like this?? If not, what's the correct way so I
get
> the lovely results for daily, bi-daily, weekly, fortnightly, monthly
and
> yearly, like I see on some FlowScan+RRDtool traffic pages..
I didn't see anything wrong with your method, so I don't know how you
got "blocky" results. I'd just do something like this:
#! /bin/ksh
# { CONFIGURATION SECTION:
mkdir=/usr/bin/mkdir
make=/usr/xpg4/bin/make
mv=/usr/xpg4/bin/mv
# }
for days in 1 7 30 365
do
${mkdir?} -p ${days?}
for graph in io_services_bits.png # list of targets here
do
if ${make?} -f graphs.mf \
filetype=png hours="$(expr 24 \* ${days?})" ${graph?}
then
mv ${graph?} ${days?}/${graph?}
fi
done
done
exit
Dave
--
plonka@doit.wisc.edu http://net.doit.wisc.edu/~plonka ARS:N9HZF
Madison, WI
--
Help mailto:majordomo@net.doit.wisc.edu and say "help" in message
body
Unsubscribe mailto:majordomo@net.doit.wisc.edu and say
"unsubscribe flowscan" in message body
Archive http://net.doit.wisc.edu/~plonka/list/flowscan/archive/
--
Help mailto:majordomo@net.doit.wisc.edu and say "help" in message body
Unsubscribe mailto:majordomo@net.doit.wisc.edu and say
"unsubscribe flowscan" in message body
Archive http://net.doit.wisc.edu/~plonka/list/flowscan/archive/
This archive was generated by hypermail 2b25 : Mon Oct 02 2000 - 18:20:18 CDT