On 9/13/07, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Sep 13, 2007 at 11:20:03AM -0400, Gary Baluha wrote:<br>> I'm seeing a weird output for one of my custom RRD graphs, using the NCV<br>> module.  The collector script on the client<br>> is creating an ncv-style output based on the bind 9 "rndc stats" command.
<br>> These numbers are counter-style numbers,<br>> always increasing (until named is restarted).  As such, the default DERIVE<br>> format of the NCV module is correct.<br>><br>> The problem I'm seeing is that the numbers showing up in the RRD graph--as
<br>> far as I can tell--have nothing at all to do<br>> with the actual "rndc stats" values.  For instance, the "last" and "current"<br>> values of the data was:<br>><br>> success : 283  ->  294  (11)
<br>> referral : 0  ->  0  (0)<br>> nxrrset : 149  ->  156  (7)<br>><br>> The number in () above is the actual difference between the numbers, and the<br>> values I'm expecting to show up in the RRD graph.
<br>> But the actual values that are showing up for the above example (for the<br>> "(cur)" value) are, respectively:<br>> 34.0m<br>> 0.0<br>> 20.8m<br><br><br>Everything is behaving the way it should, but it doesn't match your
<br>expectation.<br><br>The problem is that rrdtool treats counters (and derive's) as RATES,<br>i.e. "this many X per second". So when you have 11 requests over a 5<br>minute period, rrdtool records (11 / 300) = 0,037 requests/second.
<br>That's why you have that "34.0m" recorded - apparently there was<br>slightly more than 300 seconds between the two readings.<br><br>If you want the graph to show how many requests occurred over the 5<br>
minute period, then the simplest way is to define the graph to use<br>a value which is 300 times the actual value recorded by rrdtool :-)</blockquote><div><br><br>Oh dear...  I completely misinterpreted what the RRD doco was trying to tell me.  As always, thanks for your help.
<br></div><br></div><br>