Here are some tips from Alex van den Bogaerdt (bold) which i tried:
Try adding: CDEF:stufe_debug=stufe,UN,75,stufe,IF
and graph this as a line or area. Does it go up to 75? Then you have
unknowns in the data.

 
-  I have removed alles DEFs and CDEF as mentioned and then added the
- DEF:stufe_debug=stufe,UN,75,stufe,IF


- the line then draws at 75 - so there must be unknown data?
- GPRINT stufe_debug is 75.000000 

 
Currently you are not interested in the cases where stufe is 0,1,2 or 3.
After all, you would not be debugging if everything worked.
So try adding


CDEF:stufe_debug=10,stufe,25,*,stufe,1,EQ,stufe,2,EQ,stufe,3,EQ,stufe,0,EQ,+,+,+,IF
(by the way: everything is untested, you make it work should changes be
required)


- After editing the DEF to
- CDEF:stufe_debug=10,stufe,25,*,stufe,1,EQ,stufe,2,EQ,stufe,3,EQ,stufe,0,EQ,+,+,+,IF
- The Line is at 50 (stufe is currently at "2")
- GPRINT stufe_debug is 50.000000

This should work like so: 4 compares which return 1 for true or 0 for false.
If any of them is true, the IF will return the first value (10), else the
second value (stufe*25).

Possible outcomes could be:
unknown (blank) in case stufe is unknown <== there's your problem

- i see a line, so there is no unknown data?!

10, in case stufe is 0,1,2 or 3 <== expected result, which we do not want to
see while hunting for this bug

25*stufe if stufe is different <== there's your problem

- The value is 50 which is 25*stufe (currently stufe is "2")

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to