Hello,
i have problems with a graph.
i want to show the state of a switch (0 = Off, 1 = 1, 2=2, 3=3) via the AREA commad. but in my graph the area is empty sometimes.
Here is my code:
RRDs::graph($tmpfile,
@opts,
"DEF:stufe=$rrd:stufe:LAST",
"CDEF:stufe1_flag=stufe,1,EQ,INF,UNKN,IF",
"CDEF:stufe2_flag=stufe,2,EQ,INF,UNKN,IF",
"CDEF:stufe3_flag=stufe,3,EQ,INF,UNKN,IF",
"CDEF:stufe0_flag=stufe,0,EQ,INF,UNKN,IF",
"AREA:stufe0_flag#7c6767:Stufe 0 AUS \\t",
"AREA:stufe1_flag#98FB98:Stufe 1 \\t",
"AREA:stufe2_flag#fafa78:Stufe 2 \\t",
"AREA:stufe3_flag#fd6969:Stufe 3 \\t",
@opts,
"DEF:stufe=$rrd:stufe:LAST",
"CDEF:stufe1_flag=stufe,1,EQ,INF,UNKN,IF",
"CDEF:stufe2_flag=stufe,2,EQ,INF,UNKN,IF",
"CDEF:stufe3_flag=stufe,3,EQ,INF,UNKN,IF",
"CDEF:stufe0_flag=stufe,0,EQ,INF,UNKN,IF",
"AREA:stufe0_flag#7c6767:Stufe 0 AUS \\t",
"AREA:stufe1_flag#98FB98:Stufe 1 \\t",
"AREA:stufe2_flag#fafa78:Stufe 2 \\t",
"AREA:stufe3_flag#fd6969:Stufe 3 \\t",
"DEF:bypass=$rrd:bypass:AVERAGE",
"CDEF:bypass_flag=bypass,1,EQ,50,UNKN,IF",
"AREA:bypass_flag#ffe0e0:Bypass offen \\l",
"CDEF:bypass_flag=bypass,1,EQ,50,UNKN,IF",
"AREA:bypass_flag#ffe0e0:Bypass offen \\l",
"DEF:wrgZu=$rrd:wrgZu:AVERAGE",
"LINE2:wrgZu#000000:WRG - zuluftseitig (in % )",
"VDEF:wrgZulast=wrgZu,LAST",
"GPRINT:wrgZulast: JETZT \%.1lf
"LINE2:wrgZu#000000:WRG - zuluftseitig (in % )",
"VDEF:wrgZulast=wrgZu,LAST",
"GPRINT:wrgZulast: JETZT \%.1lf
When look into the xml exported rrd database i can see that the right values ("1") is stored continouly in the database, so i see no reaseon why i have interrupts in the green background of the graph.
How can helpme out or explain why i have emtpy sections in my graph ?
Here is the graph: http://www.dreamies.de/show.php?img=6lxz5otgz81.gif
thank you,
Thomas
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users