[rrd-users] Empty sections in AREA on graph, but values in database

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Wed Aug 27 00:33:05 CEST 2014


----- Original Message ----- 
From: "Thomas Brinkmann" <thomas.brinkmann at email.de>
To: "list rrdtool" <rrd-users at lists.oetiker.ch>
Sent: Tuesday, August 26, 2014 3:45 PM
Subject: [rrd-users] Empty sections in AREA on graph, but values in database


>
> 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",

Four values, four colors, none of them is used.  My guess is that some form 
of normalization is happening and you are getting values which are, for 
instance, 1.1

try to add
CDEF:stufe_debug=stufe,25,*
LINE2:stufe_debug#FF0000:debug




More information about the rrd-users mailing list