[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Trends



On Sat, Apr 30, 2005 at 08:32:47AM +0200, lars ebeling wrote:
> Yes the problem is that, on the trends-page only rootfilesystem is shown 
> not the other filesystems. But what is shown is correct.

I think this will fix it.

Henrik

--- hobbitd/etcfiles/hobbitgraph.cfg	2005/04/24 20:45:28	1.17
+++ hobbitd/etcfiles/hobbitgraph.cfg	2005/04/30 06:55:22
@@ -54,9 +54,8 @@
 	TITLE Disk Utilization
 	YAXIS Used
 	DEF:p (at) RRDIDX@= (at) RRDFN@:used:AVERAGE
-	CDEF:@RRDIDX (at) t=p@RRDIDX@,1024,*
+	CDEF:p (at) RRDIDX@t=p (at) RRDIDX@,1024,*
 	LINE2:p (at) RRDIDX@t# (at) COLOR@:@RRDPARAM@
-	-u 100
 	-l 0
 	GPRINT:p (at) RRDIDX@:LAST: \: %5.1lf KB (cur)
 	GPRINT:p (at) RRDIDX@:MAX: \: %5.1lf KB (max)
--- hobbitd/hobbitsvc-trends.c	2005/04/03 16:23:38	1.64
+++ hobbitd/hobbitsvc-trends.c	2005/04/30 06:50:56
@@ -189,7 +189,7 @@
 			myrrd->gdef->larrdrrdname = graphdef;
 			myrrd->gdef->larrdpartname = NULL;
 			myrrd->gdef->maxgraphs = 999;
-			myrrd->count = 1;
+			myrrd->count = rrd->count;
 			myrrd->next = NULL;
 			partlink = larrd_graph_data(host->bbhostname, hostdisplayname, NULL, myrrd->gdef, myrrd->count, larrd043, hobbitd, wantmeta);
 			if ((strlen(rrdlink) + strlen(partlink) + 1) >= rrdlinksize) {