<div dir="ltr">Wow... I must have written that about 13 years ago.<div><br></div><div>I'm pretty sure it's all still 100% correct, but I think things like DCOUNTER didn't exist then, so there might be other things worth investigating now.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 August 2015 at 04:38, Robert C. Seiwert <span dir="ltr"><<a href="mailto:rob@vcaglobal.com" target="_blank">rob@vcaglobal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Of course looking at the docs I could be wrong<br>
"Internally, derive works exactly like COUNTER but without overflow checks. So if your counter does not reset at 32 or 64 bit you might want to use DERIVE and combine it with a MIN value of 0."<br>
"NOTE on COUNTER vs DERIVE<br>
<br>
by Don Baarda <<a href="mailto:don.baarda@baesystems.com">don.baarda@baesystems.com</a>><br>
<br>
If you cannot tolerate ever mistaking the occasional counter reset for a legitimate counter wrap, and would prefer "Unknowns" for all legitimate counter wraps and resets, always use DERIVE with min=0. Otherwise, using COUNTER with a suitable max will return correct values for all legitimate counter wraps, mark some counter resets as "Unknown", but can mistake some counter resets for a legitimate counter wrap.<br>
<br>
For a 5 minute step and 32-bit counter, the probability of mistaking a counter reset for a legitimate wrap is arguably about 0.8% per 1Mbps of maximum bandwidth. Note that this equates to 80% for 100Mbps interfaces, so for high bandwidth interfaces and a 32bit counter, DERIVE with min=0 is probably preferable. If you are using a 64bit counter, just about any max setting will eliminate the possibility of mistaking a reset for a counter wrap."<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: rrd-users [mailto:<a href="mailto:rrd-users-bounces%2Brob">rrd-users-bounces+rob</a>=<a href="mailto:vcaglobal.com@lists.oetiker.ch">vcaglobal.com@lists.oetiker.ch</a>] On Behalf Of Robert C. Seiwert<br>
Sent: Thursday, August 20, 2015 2:35 PM<br>
To: 'Florio, Christopher N' <<a href="mailto:florio@email.unc.edu">florio@email.unc.edu</a>>; <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
Subject: [GRAYMAIL] Re: [rrd-users] Using Maximum values to avoid spikes?<br>
<br>
The problem I think is that COUNTER only detects a reset at the 32bit or 64bit border.<br>
<br>
I think that DERIVE would give you a negative spike. You might try DCOUNTER. This is floating point which I know is not ideal for the application. The only substantial difference to COUNTER is that DCOUNTER can either be upward counting or downward counting, but not both at the same time. The current direction is detected automatically on the second non-undefined counter update and any further change in the direction is considered a reset. The new direction is determined and locked in by the second update after reset and its difference to the value at reset.<br>
<br>
BTW, Nice garden!<br>
<br>
-----Original Message-----<br>
From: rrd-users [mailto:<a href="mailto:rrd-users-bounces%2Brob">rrd-users-bounces+rob</a>=<a href="mailto:vcaglobal.com@lists.oetiker.ch">vcaglobal.com@lists.oetiker.ch</a>] On Behalf Of Florio, Christopher N<br>
Sent: Thursday, August 20, 2015 2:20 PM<br>
To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
Subject: [GRAYMAIL] [rrd-users] Using Maximum values to avoid spikes?<br>
<br>
Hey all,<br>
<br>
I've got a home brew rrd file that I've made to keep track of ISC bind statistics.<br>
<br>
I've set the max to 4,000,000,000 .... I acrtually see one of my hosts do 1.5G every night for a couple hours.<br>
<br>
/usr/bin/rrdtool create \<br>
/usr/share/cacti/rra/crush_net_unc_edu_query_116761.rrd \ --step 300 \<br>
DS:query:COUNTER:600:0:4000000000 \<br>
DS:notify:COUNTER:600:0:4000000000 \<br>
RRA:AVERAGE:0.5:1:500 \<br>
RRA:AVERAGE:0.5:1:600 \<br>
RRA:AVERAGE:0.5:6:700 \<br>
RRA:AVERAGE:0.5:24:775 \<br>
RRA:AVERAGE:0.5:288:797 \<br>
RRA:MAX:0.5:1:500 \<br>
RRA:MAX:0.5:1:600 \<br>
RRA:MAX:0.5:6:700 \<br>
RRA:MAX:0.5:24:775 \<br>
RRA:MAX:0.5:288:797 \<br>
<br>
So, what happens is, if the bind process gets restarted, the data goes back to zero and I get a 4G spike on my graph.<br>
<br>
Any ideas on fixing that? Should I use derive instead of counter to fix it up?<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Donovan Baarda <<a href="mailto:abo@minkirri.apana.org.au" target="_blank">abo@minkirri.apana.org.au</a>></div>
</div>