<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
I think it's cause by this line :<br>
<pre class="line-pre"><div class="line" id="file-gistfile1-txt-LC36">CDEF:ds4ak=ds4a,UN,0,ds4a,IF </div><div class="line" id="file-gistfile1-txt-LC37">CDEF:ds4bk=ds4b,UN,0,ds4b,IF </div><div class="line" id="file-gistfile1-txt-LC38">CDEF:totala=ds0ak,ds1ak,+,ds2ak,+,ds3ak,+,ds4ak,+ </div></pre>
Your CDEF make all UNK value are equal to 0, including uncollected
data (data collect in the future)<br>
Be careful, because if your display range ends after your last
entry. Your UNK (uncollected) values are replace by 0.<br>
So using LAST return 0.<br>
<br>
Try to use ADDNAN
(<a class="moz-txt-link-freetext" href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html#IArithmetics">http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html#IArithmetics</a>)
instead of "+" and delete this line.<br>
<pre class="line-pre"><div class="line" id="file-gistfile1-txt-LC36">CDEF:ds4ak=ds4a,UN,0,ds4a,IF </div><div class="line" id="file-gistfile1-txt-LC37">CDEF:ds4bk=ds4b,UN,0,ds4b,IF </div></pre>
Yannick Marquet.<br>
<br>
<br>
<br>
Le 24/02/2013 17:51, Chris Malton a écrit :<br>
</div>
<blockquote cite="mid:512A44F9.4000307@cmalton.me.uk" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi all,<br>
<br>
I've been using rrdtool quite successfully for some time.
However..... I've now hit a fairly awkward problem, and can't get
my head around it.<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="https://gist.github.com/cjsoftuk/5024419">https://gist.github.com/cjsoftuk/5024419</a>
is the rrdtool command I'm running (newlines added by me to make
it readable!)<br>
<br>
The problem is, the "Current" column in the legend is always "0.00
bps".<br>
If I switch from the CDEFs to the DEF, it's fine, but then I'm
missing aggregated data.<br>
<br>
I'm sure I'm being stupid here, however, I can't see where I'm
getting it wrong.<br>
<br>
Could anyone shed some light on the situation?<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Chris<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rrd-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
</blockquote>
<br>
</body>
</html>