[rrd-users] Re: Graphs wrong after reboot - samples included
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Fri Aug 17 20:35:32 MEST 2001
Michael Wells wrote:
>
> I'm finding that when I reboot, the graphs I get are fouled up. An
> example of what the graph looks like before and after reboot is here:
>
> http://www.wells.org.uk/rrdtools/before.png
> http://www.wells.org.uk/rrdtools/after.png
I need to download these files and rename them to *.gif before I'm
able to view them. Did you forget to use '--img-format PNG' ?
> rrdtool create rl0.rrd \
> DS:input:COUNTER:3600:U:U \
> DS:output:COUNTER:3600:U:U \
Unlimited counters... so indeed, a reboot results in the counter
being reset to zero. If the front end doesn't check the uptime of
the counter, it will be processed as a wrap.
If the current counter value is below the last-seen counter value
then the difference (which is negative) should be incremented with
2**32. If it is below zero thereafter, increment with (2^64 - 2^32)
In most cases, 2^32 will have been added. This is 4294967296 bytes
which are assumed to have passed the interface somewhere between the
previous update and the current one. You write you update every
few minutes. However, your RRD is using 300 second intervals. To
get the resulting numbers (about 12MBps and about 26MBps) you have
to have been updating every three minutes if I'm not mistaking. I
also suspect you booted (at least) twice around 18:00
How to solve the problem and the resulting problem:
1) Your front end should check wraps. If it is not a real wrap or
if it is not sure to be a wrap, update with "U" instead.
2) If (1) is not possible or not feaseble, set proper limits on the
DS. For 10Mbps ethernet this should read "...3600:0:1250000"
3) dump, edit and restore the RRD to get rid of the spike. Search
for "2\.6.........e+06" (where \. means a decimal point and . means
a character wildcard) in the .xml file.
I think there is a script to do (3) but you really want to have a look
in such an xml file at least once before automating it.
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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list