<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> 
<div>Here are some tips from Alex van den Bogaerdt (bold) which i tried:
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div name="quoted-content"><strong>Try adding: CDEF:stufe_debug=stufe,UN,75,stufe,IF<br/>
and graph this as a line or area. Does it go up to 75? Then you have<br/>
unknowns in the data.</strong><br/>
 <br/>
<em>-  I have removed alles DEFs and CDEF as mentioned and then added the<br/>
- DEF:stufe_debug=stufe,UN,75,stufe,IF</em><br/>
<br/>
<em>- the line then draws at 75 - so there must be unknown data?<br/>
- GPRINT stufe_debug is 75.000000 </em><br/>
 <br/>
<strong>Currently you are not interested in the cases where stufe is 0,1,2 or 3.<br/>
After all, you would not be debugging if everything worked.<br/>
So try adding</strong><br/>
<br/>
<strong>CDEF:stufe_debug=10,stufe,25,*,stufe,1,EQ,stufe,2,EQ,stufe,3,EQ,stufe,0,EQ,+,+,+,IF<br/>
(by the way: everything is untested, you make it work should changes be<br/>
required)</strong><br/>
<br/>
- After editing the DEF to<br/>
- CDEF:stufe_debug=10,stufe,25,*,stufe,1,EQ,stufe,2,EQ,stufe,3,EQ,stufe,0,EQ,+,+,+,IF<br/>
- The Line is at 50 (stufe is currently at "2")<br/>
- GPRINT stufe_debug is 50.000000<br/>
<br/>
<strong>This should work like so: 4 compares which return 1 for true or 0 for false.<br/>
If any of them is true, the IF will return the first value (10), else the<br/>
second value (stufe*25).<br/>
<br/>
Possible outcomes could be:<br/>
unknown (blank) in case stufe is unknown <== there's your problem</strong><br/>
<em>- i see a line, so there is no unknown data?!</em><br/>
<br/>
<strong>10, in case stufe is 0,1,2 or 3 <== expected result, which we do not want to<br/>
see while hunting for this bug<br/>
<br/>
25*stufe if stufe is different <== there's your problem</strong><br/>
<em>- The value is 50 which is 25*stufe (currently stufe is "2")</em><br/>
<br/>
_______________________________________________<br/>
rrd-users mailing list<br/>
rrd-users@lists.oetiker.ch<br/>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a></div>
</div>
</div>
</div></div></body></html>