<div dir="ltr">On 2 July 2013 00:32, David Welker <span dir="ltr"><<a href="mailto:dewelker@gmail.com" target="_blank">dewelker@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Maybe I have a unique problem, but I'm hoping someone can help me out as I have scoured the archives, tried all kinds of combinations, and still haven't found the perfect solution.</blockquote><div><br></div><div>

This is doable.  Not sure if you're going anything wrong, but one thing comes to mind.  If you changed your DS type to/from GAUGE, then you need to rebuild or erase your RRD file.</div><div><br></div><div>Regardless, it might help to see a setup that works.  For example, I graph SMART media errors.  My script (see <a href="http://xymonton.org/monitors:xymon-smart">http://xymonton.org/monitors:xymon-smart</a>) presents the data values for a sample in a data "trends" message, and also sends a status "smart" message.  The script that creates these messages is run from a file in tasks.d/.  The data messages include various metrics including uncorrected errors, corrected errors, drive temperature and so on.</div>

<div><br></div><div>In graphs.cfg, I append entries for [smart], [smart_uncorrected], [smart_corrected] and [smart_temp].  Here's an example:</div><div><br></div><div><div>[smart]</div><div>        # total read/write errors</div>

<div>        TITLE S.M.A.R.T. Total Media Errors</div><div>        YAXIS errors per second</div><div>        FNPATTERN ^smart.(.*).rrd</div><div>        DEF:rc@RRDIDX@=@RRDFN@:err_r_c:AVERAGE</div><div>        DEF:ru@RRDIDX@=@RRDFN@:err_r_u:AVERAGE</div>

<div>        DEF:wc@RRDIDX@=@RRDFN@:err_w_c:AVERAGE</div><div>        DEF:wu@RRDIDX@=@RRDFN@:err_w_u:AVERAGE</div><div>        CDEF:re@RRDIDX@=rc@RRDIDX@,ru@RRDIDX@,+</div><div>        CDEF:we@RRDIDX@=wc@RRDIDX@,wu@RRDIDX@,+</div>

<div>        COMMENT:@RRDPARAM@\:\n</div><div>        LINE1:re@RRDIDX@#@COLOR@:Read Errors         :</div><div>        GPRINT:re@RRDIDX@:LAST:\: %5.1lf %s (cur)</div><div>        GPRINT:re@RRDIDX@:MAX: %5.1lf %s (max)</div>

<div>        GPRINT:re@RRDIDX@:MIN: %5.1lf %s (min)</div><div>        GPRINT:re@RRDIDX@:AVERAGE: %5.1lf %s (avg)\n</div><div>        LINE1:we@RRDIDX@#@COLOR@:Write Errors        :</div><div>        GPRINT:we@RRDIDX@:LAST:\: %5.1lf %s (cur)</div>

<div>        GPRINT:we@RRDIDX@:MAX: %5.1lf %s (max)</div><div>        GPRINT:we@RRDIDX@:MIN: %5.1lf %s (min)</div><div>        GPRINT:we@RRDIDX@:AVERAGE: %5.1lf %s (avg)\n</div></div><div><br></div><div>In xymonserver.cfg, I append "smart" to the TEST2RRD variable, thusly:<br>

</div><div><br></div><div>TEST2RRD="cpu-la,disk,...xymonproxy,xymond,smart"</div><div><br></div><div>This should result in the RRD file being created and populated.  It should also result in the graph being shown on the status view of the "smart" test, using the definition added into graphs.cfg.</div>

<div><br></div><div>Also in xymonserver.cfg, I append "trends" to the GRAPHS variable, like so:</div><div><br></div><div>GRAPHS="la,disk,...,xymond,ntp,smart"</div><div><br></div><div>This should result in a single "smart" graph being added to the trends page.</div>

<div> </div><div>In hosts.cfg I include smart in a TRENDS parameter like so:</div><div><br></div><div>10.1.2.3 servername # conn dns this that TRENDS:smart:smart|smart_uncorrected|smart_corrected|smart_temp</div><div><br>

</div><div>This is not strictly necessary for what you want, but I want all possible graphs to show on the trends page for this host. This essentially says that on the trends page, where the "smart" graph would have gone, instead put the four graphs smart, smart_uncorrected, smart_corrected and smart_temp.</div>

<div><br></div><div>J</div><div><br></div></div></div></div>