[hobbit] Multigraphs generation

Alessandro Corradi alessandro.corradi at epress.it
Mon May 7 15:37:44 CEST 2007


Hi,
my hobbit version is 4.2.0 and I have a problem with --multigraph option.
I wrote an external script called "memstats" that collect a lot of data about "ram" and "swap" utilization. 
My control creates a single rrd file with all the data collected. 
The graph generated by all the data is quite big and I'd like to split into two different graphs.
 
This is what I've done:
 
1) in hobbitcgi.cfg file I added  the --multigraphs option:
 
CGI_SVC_OPTS="[..CUT..] --no-svcid --history=top --multigraphs=memstats,disk"
 
2) this is the hobbitserver.cfg conf:
 
TEST2RRD="cpu=la,disk,inode,qtree [..CUT..],memstats=ncv"
GRAPHS="la,disk,inode [..CUT..],memstats"
[..CUT..] 
NCV_memstats="ramtot:GAUGE,ramfree:GAUGE,ramused:GAUGE,ramusedp:GAUGE,rambuff:GAUGE,ramcache:GAUGE,swaptot:GAUGE,swapfree:GAUGE,swapused:GAUGE,swapusedp:GAUGE"
 
3) This is my hobbitgraph.cfg conf:
 
[memstats]
        FNPATTERN memstats.rrd
        TITLE MEM Utilization
        YAXIS Bytes
        DEF:ramtot=@RRDFN@:ramtot:AVERAGE
        DEF:ramfree=@RRDFN@:ramfree:AVERAGE
        DEF:ramused=@RRDFN@:ramused:AVERAGE
        DEF:ramusedperc=@RRDFN@:ramusedp:AVERAGE
        DEF:rambuff=@RRDFN@:rambuff:AVERAGE
        DEF:ramcache=@RRDFN@:ramcache:AVERAGE
        DEF:swaptot=@RRDFN@:swaptot:AVERAGE
        DEF:swapfree=@RRDFN@:swapfree:AVERAGE
        DEF:swapused=@RRDFN@:swapused:AVERAGE
        DEF:swapusedperc=@RRDFN@:swapusedp:AVERAGE
        AREA:ramtot#@COLOR@:Ram TOT
        GPRINT:ramtot:LAST:Curr\: %5.1lf%s
        GPRINT:ramtot:MAX:Max\: %5.1lf%s
        GPRINT:ramtot:MIN:Min\: %5.1lf%s
        GPRINT:ramtot:AVERAGE:Avg\: %5.1lf%s\n
        LINE1:ramfree#@COLOR@:Ram Used
        GPRINT:ramfree:LAST:Curr\: %5.1lf%s
        GPRINT:ramfree:MAX:Max\: %5.1lf%s
        GPRINT:ramfree:MIN:Min\: %5.1lf%s
        GPRINT:ramfree:AVERAGE:Avg\: %5.1lf%s\n
        [..CUT..(there is a LINE1 and GPRINT for every DEF)]
 
The result is that I have a very big graph with all the lines values (10) and below two links like that:
hobbit graph ncv:memstats
 
It seems that hobbit knows that "he" :-) must split data from rrd intro 3 graphs but, I don't know why, he can't, so creates a single graph with all data and two links to missing graphs...
 
Can someone help me? Thanks in advance
 
Alessandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070507/e96cea8c/attachment.html>


More information about the Xymon mailing list