From: Stewart, T. L. <Tom...@la...> - 2007-10-26 16:19:26
|
Many thanks! I will give that a try over the weekend and let everyone know. Tom=20 -----Original Message----- From: Buchan Milne [mailto:bg...@st...]=20 Sent: Friday, October 26, 2007 5:06 AM To: dev...@li... Cc: Stewart, Tom L. Subject: Re: [Devmon] Help needed On Tuesday 16 October 2007 15:56:07 Stewart, Tom L. wrote: > I have devmon sending rrd data to Hobbit and I am getting the rrd=20 > graph within the if_load column, but it is not showing up in trends. > > So I know the graph config is good, if_load is in TEST2RRD and GRAPHS. > The perl script extra-rrd.p is working great and properly creating the > rrd files. > > I have also tried adding "TRENDS:*,if_load" to the bb-hosts. > > Has anyone else run into this. My searches only show issues with the=20 > [if_load] problems within hobbitgraph.cfg > > Here is my setting > > [if_load] > FNPATTERN if_load(.*).rrd > TITLE Network Traffic > YAXIS Bits/second > DEF:in@RRDIDX@=3D@RRDFN@:in:AVERAGE > CDEF:inbytes@RRDIDX@=3Din@RRDIDX@,8,* > DEF:out@RRDIDX@=3D@RRDFN@:out:AVERAGE > CDEF:outbytes@RRDIDX@=3Dout@RRDIDX@,8,* > CDEF:tot@RRDIDX@=3Doutbytes@RRDIDX@,inbytes@RRDIDX@,+ > LINE2:tot@RRDIDX@#@COLOR@:@RRDPARAM@ Total In+Out > GPRINT:tot@RRDIDX@:LAST:%8.2lf %s (cur) > GPRINT:tot@RRDIDX@:MAX:%8.2lf %s (max) > GPRINT:tot@RRDIDX@:MIN:%8.2lf %s (min) > GPRINT:tot@RRDIDX@:AVERAGE:%8.2lf %s (avg)\n > > It is a bit different as we wanted to combine the in and out on the=20 > graph. I also used the original, but that didn't work either. > > Again the graph shows perfectly within the if_load column, but not in=20 > trends. > > Any light on the subject would be great. I've finally (having had a really bad week with a production mailstore having blown up on Monday etc. etc.) had time to look at this again. It seems that Hobbit doesn't like the underscore separating the test name from the interface name in the rrd file name. I have now got working interface graphs in the trends page, after: 1)Changing FNPATTERN if_load(.*).rrd to FNPATTERN if_load.(.*).rrd in the graph definition 2)Changing: print "${TESTNAME}_$1.rrd\n"; to print "${TESTNAME}.$1.rrd\n"; in the extra-rrd.pl 3)Renaming all the if_load rrd files, something like this: # ~hobbit/bin/bbcmd bash # for i in `find $BBVAR -name 'if_load_*.rrd';do mv $i ${i/load_/load.};done # exit Regards, Buchan |