[rrd-users] HRULE being parsed incorrectly on command line?

Aleksandr Pasechnik aleksandr.pasechnik at gmail.com
Sat May 14 18:57:56 CEST 2011


perhaps this has something to do with the fact that you're trying to print multiple values (a line full of values) instead of a single value? perhaps you need to use some function which will boil your data down to a single number?

On May 14, 2011, at 12:49 PM, Kevin Day wrote:

> 
> On May 14, 2011, at 11:30 AM, Jaime Lozano wrote:
> 
>>> rrdtool graph --imgformat PNG out.png DEF:ds0=in.rrd:x:AVERAGE CDEF:unknown=ds0,UN,INF,UNKN,IF VDEF:ds0max=ds0,MAXIMUM VDEF:ds0min=ds0,MINIMUM DEF:ds1=in.rrd:y:AVERAGE HRULE:ds1
>> 
>> In http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html it says about VRULE:
>> "It is an error to use vnames from DEF or CDEF here" and then "HRULE
>> acts much like LINE except that will have no effect on the scale of
>> the graph" so I think you are wrong, and you cannot do that. If HRULE
>> is a straight line, why trying to use a non constant value?
>> 
> 
> See, I interpreted that same sentence as though it meant "You can treat an HRULE as a LINE, it just doesn't adjust the y scale to make it fit".  Partially because both LINE and HRULE say they take a "value", and values "can be generated by DEF, VDEF, and CDEF". 
> 
> In either case, the error message being produced is wrong, it refers to the wrong named value. Depending on what you have before trying to use an HRULE the vname printed changes to other seemingly random vnames or is blank.
> 
> 
> Thanks!
> 
> -- Kevin
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list