<br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 6:27 PM, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="im">On 19 March 2013 06:55, Steve Holmes <span dir="ltr"><<a href="mailto:sholmes42@mac.com" target="_blank">sholmes42@mac.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote">

<div class="im"><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">

So, I'm looking it writing a script to mine the rrd or history data from the Xymon server to produce the list he wants. He is also interested in the top disk I/O numbers, too, but I'm focusing on load average for now.<br>



</blockquote><div><br></div></div><div>Sounds useful.  I've not seen anything that does this already.</div><div class="im"><div> </div><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">



close so I was looking at rrdtool fetch. However, this is cumbersome and, frankly I'm not understanding the data I'm getting back (for example 1.22749483e+03 seems to be 12.27... when I compare it to the graphs, so the e+03 seems to really mean *10^1, right?)<br>



</blockquote><div><br></div></div><div>Nope, 1.227+03 means 1227.  However, sometimes there is an adjustment applied, that's not always obvious.  For example, my understanding is that the load average (in la.rrd) is recorded after multiplying by 100, which is an artefact of the BigBrother legacy, because floating-point comparisons were difficult to implement in a generic shell script that had to run on any *nix platform.  The BigBrother data collector would chop everything after two decimal places, then strip the dot out, thus providing a load average factored up by 100.  You can tell this is what's happening in Xymon by looking at the [la] entry in graphs.cfg, or to save you looking it up:</div>



<div><br></div><div><div>        DEF:avg=la.rrd:la:AVERAGE</div><div>        CDEF:la=avg,100,/</div><div><br></div><div>So the graphs.cfg entry scales it back down before graphing.</div><div><br></div>

<div>Similar adjustments are made for things like interface load and TCP/IP stats, where bytes-per-second are converted to bits-per-second.  Again, the graphs.cfg file often gives you a clue as to what's going on.</div>

<span class="HOEnZb"><font color="#888888">

</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>J</div><div><br></div></font></span></div></div></div>
</blockquote></div><br clear="all">Attached is the perl script I came up with. It serves my purpose and might be useful to someone. $fudge will have to be expanded for other measures. I may do that if someone here at Purdue requires it. Otherwise have at it.<br>

<br>Steve Holmes<br>Purdue<br><br>