<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=117000303-09022006><FONT face=Arial
color=#0000ff size=2>Kunal,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=117000303-09022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=117000303-09022006><FONT face=Arial
color=#0000ff size=2>I asked the exact question a few days ago. Here is
the response I got. Worked like a charm.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=117000303-09022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=117000303-09022006><FONT size=2>
<P>I don't know if that could be done in a config file, but it certainly can be
done by altering the source. Take a look at hobbitd/hobbitgraph.c. Near the top
there's a bunch of defines that tell rrdtool how to select the data:</P>
<P>#define HOUR_GRAPH "e-48h"</P>
<P>#define DAY_GRAPH "e-12d"</P>
<P>#define WEEK_GRAPH "e-48d"</P>
<P>#define MONTH_GRAPH "e-576d"</P>
<P>"e-48h" means "end-of-data minus 48 hours", which is the start of the range,
the end of the range being the end of the data. Change those numbers to whatever
suits you best - i.e. e-24h, e-7d, e-30d & e-365d.</P>
<P>You'll also want to look further down for blocks like this:</P>
<P>if (strcmp(val, "hourly") == 0) {</P>
<P>period = HOUR_GRAPH;</P>
<P>persecs = 48*60*60;</P>
<P>gtype = strdup(val);</P>
<P>glegend = "Last 48 Hours";</P>
<P>}</P>
<P>and fix those up. I guess that would be:</P>
<P>persecs = 24*60*60;</P>
<P>and</P>
<P>glegend = "Last 24 Hours";</P>
<P>for the 24 hour graph. Similarly for DAY_GRAPH, WEEK_GRAPH & MONTH_GRAPH.
Go back up to the main source directory and re-run make, then copy
hobbitd/hobbitgraph.cgi over to hobbit's server/bin directory.</P>
<P>Seems to work fine for me - I might even keep it like this... :)</P>
<P>Ralph Mitchell</P></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><FONT face=Arial size=2>Dave</FONT></DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> wizkaypee@gmail.com
[mailto:wizkaypee@gmail.com] <B>On Behalf Of </B>Kunal Parikh<BR><B>Sent:</B>
Wednesday, February 08, 2006 9:48 PM<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Changing the a-axis on the
graphs<BR></FONT><BR></DIV>
<DIV></DIV>Hi all,<BR><BR>Currently, hobbit shows graph for the following time
intervals<BR>48hrs, 12days, 48days, 576days.<BR><BR>Is there a configuration
property to change these intervals
?<BR><BR><BR>TIA,<BR><BR>Kunal<BR></BLOCKQUOTE></BODY></HTML>