[mrtg] Re: RRDTool and scripts

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Aug 24 14:15:44 MEST 2001


Kerry Kincaid. wrote:

> Since there was about 24 days less data to view that the numbers were much
> smaller than usual.  However, this translated into a spike on the graphs of
> monster proportions.  I gathered from some of the archived messages that the
> Software assumed that the number increased to maxbytes then rolled over to
> zero and continued to go up and calculated the value accordingly.   That was
> the wrong thing to do and I'd like to know how I can have it still record
> the data as a counter, but not choke when a log file is deleted.

Proper solution:  front end decides when a wrap occured and when it
did not.  If it did not (so: a reset or so) it sends "U" for unknown
to RRDtool.  Front end in this case is the script that gathers the
values.

Good workaround:
In stead of COUNTER you can use the DERIVE data source type.  When the
minimal tolerable value is set to 0, any wrap or reset will result in
a NaN value generated by the back end.
You can use "rrdtool tune" to alter the DS  *and* the min-value.

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list