<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Sorry if I wasn&#39;t clear, my english may not be perfect ...<div>
<br></div><div>So actually what I want is actually a graph showing a curve of the requests per time for a whole day (from 0 to 24). For example imagine I try to generate this kind of graph with 2 days of data : The first day there was an average of 10 requests from 8 to 9, and the second there was 20. I&#39;d then like to see a point at 15 requests. But of course I&#39;d like to generate it for a whole year or more.</div>
<div>To be clearer, what I&#39;d like to do with this graph is being able to read that &quot;as an average (on the whole year), there is about 400 requests around 1 pm, but only 20 around 3pm, so if I need to reboot the server for maintenance it would be less trouble to do it around 3pm.</div>
<div><br></div><div>By the way thank you for the tutorial link, gonna chech that out ;)</div></span><br><div class="gmail_quote">2010/11/26 Simon Hobson <span dir="ltr">&lt;<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Jérémy Frere wrote:<br>
<br>
&gt;I have a production.log file, containing the<br>
&gt;requests details with date/hour of the request.<br>
&gt;I easily parsed the lines to get the timestamp<br>
&gt;of the request, and managed to of generate<br>
&gt;graphs of the average requests per hour on one<br>
&gt;day, week, month or year. But I couldn&#39;t manage<br>
&gt;to get the average requests for one &quot;typical<br>
&gt;day&quot;, summarizing the yearly average of requests<br>
&gt;in one single day.<br>
<br>
</div>I&#39;m unclear what you are asking. Are you wanting<br>
a single number that says &quot;average usage is X<br>
requests/day over the last year&quot; ?<br>
To do that, you simply want to generate an<br>
&quot;empty&quot; graph and do no more than PRINT (not<br>
GPRINT) a VDEF which is the average rate times<br>
86400 and with start/end times covering a year.<br>
<br>
If you get a VDEF which is the average value of<br>
the year, then that will be the rate/second. To<br>
get rate/day you just need to multiply by 86400<br>
(seconds in a day) to get the rate/day.<br>
<br>
I&#39;d also suggest you stufy Alex&#39;s tutorials at<br>
<a href="http://www.vandenbogaerdt.nl/rrdtool/" target="_blank">http://www.vandenbogaerdt.nl/rrdtool/</a><br>
In particular, the ones on &quot;Computing amount of<br>
data transfered when you want the TOTAL amount&quot;,<br>
and &quot;Rates, normalizing and consolidating&quot;.<br>
<br>
Also note that your primary data points start/end<br>
on well defined step boundaries. These are ALWAYS<br>
a multiple of the step period from unix epoch<br>
(midnight, 1st Jan 1970 UTC). Rrdtool always<br>
works in UTC internally.<br>
<br>
--<br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</blockquote></div><br>