From: Buchan M. <bg...@st...> - 2012-01-09 10:33:31
|
On Monday, 9 January 2012 11:47:45 crankshaft wrote: > Hi Buchan / Jeremy, > > Still having dramas. Here are the latest configs: > > message file: > > TABLE:rrd(DS:ds0:TempValue:GAUGE) > <--DEVMON RRD: inOutTemp 0 0 > DS:TempValue:GAUGE:600:0:U > {TempValue} > > oids file: > > tempHumidSensorTempValue : .1.3.6.1.4.1.1718.3.2.5.1.6 : > branch > #tempHumidSensorInTempValue : .1.3.6.1.4.1.1718.3.2.5.1.6.1.1 : > #tempHumidSensorOutTempValue : .1.3.6.1.4.1.1718.3.2.5.1.6.1.2 : > > > transforms file: > > TempValue : MATH : {tempHumidSensorTempValue}/10:1 > > > > hobbitgraph.cfg: > > [inOutTemp] > FNPATTERN inOutTemp.(.*).rrd > TITLE Temperature > YAXIS Celsius > DEF:p@RRDIDX@=@RRDFN@ds0:AVERAGE > LINE2:p@RRDIDX@=@COLOR@:RRDPARAM@ > GPRINT:p@RRDIDX@LAST: \: %5.1lf (cur) > GPRINT:p@RRDIDX@MAX: \: %5.1lf (max) > GPRINT:p@RRDIDX@MIN: \: %5.1lf (min) > What other Xymon configuration have you changed (e.g. GRAPHS? I assume you have updated TEST2RRD or you wouldn't be getting the RRD files). > Contents of .rrd dir: > > inOutTemp.21.5.rrd > inOutTemp.22.5.rrd > inOutTemp.23.5.rrd > inOutTemp.29.5.rrd So, there is no problem with devmon, or the devmon collector (if you get RRD files, as all they do ends here). > I'm still getting 4 graphs generated from those .rrd > files, The devmon collector generates one rrd file per line of content between the DEVMON RRD header and the end-of-html-comment. > which is strange as I would of thought the > FNPATTERN inOutTemp.(.*).rrd would bring them all into the > one graph. No, this should result in having one graph for each RRD file, with '21.5' being a value provided for the graph legend. As Jeremy found, hacking the linecount= in the message can affect how many values Xymon's htmlgen.c decides to show on a specific graph. > I know the message file looks dodgy, I can't seem to get > the graphs at all unless I've got both the TABLE: and <-- > stuff in there. The TABLE portion should not be necessary, but I haven't personally tried this. I think we need a cleaner solution (which I will try and work on this week, as I need it) to badly designed SNMP tables. > I tried the dummy DS, but it whinged that there wasn't a > DS1 in the .rrd file. You would need to delete the rrd file when you change the number of DSs (or, export, modify the xml to add a new one, import, if you want to keep the data). Regards, Buchan |