From: Stewart, T. L. <Tom...@la...> - 2007-10-26 19:30:24
|
I made the change (I also collapsed the if_load to ifload) before I saw your answer. It seems Hobbit trends does not like file names such as ifloadGi00.rrd. Once I added the "." and changed the hobbitgraph.cfg to be the same, the graphs are now showing up in trends. Now the rrd file shows ifload.Gi00.rrd Many thank you's for the answer! Also in case anyone is interested, I do two different graphs in trends. Note the original if_load is actually my ifloaddet. The network team wanted to see the in and out combined in the column, but get the individual detail in trends. In hobbitgraph.cfg [ifload] TITLE Network Traffic YAXIS Bits/second FNPATTERN ifload.(.*).rrd 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 [ifloaddet] FNPATTERN ifload.(.*).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,* LINE2:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In LINE2:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:inbytes@RRDIDX@:LAST:%8.2lf %s (cur) GPRINT:inbytes@RRDIDX@:MAX:%8.2lf %s (max) GPRINT:inbytes@RRDIDX@:MIN:%8.2lf %s (min) GPRINT:inbytes@RRDIDX@:AVERAGE:%8.2lf %s (avg)\n GPRINT:outbytes@RRDIDX@:LAST:%8.2lf %s (cur) GPRINT:outbytes@RRDIDX@:MAX:%8.2lf %s (max) GPRINT:outbytes@RRDIDX@:MIN:%8.2lf %s (avg) GPRINT:outbytes@RRDIDX@:AVERAGE:%8.2lf %s (avg)\n In the bb-host you need to do this: X.x.x.x Cisco-dev-dns # conn COMMENT:"Cisco 7204" DEVMON TRENDS:*,ifload:ifload|ifloaddet Again, Many thanks for the answer. 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 |