Re: RRD Graph downward to 0 date prediction

Alexander von Gluck IV <[email protected]>
Newsgroups gmane.comp.db.rrdtool.user
Message-ID <[email protected]>
On , Steve Shipway wrote:
>> Hm, this doesn't help any. Now I do get a date, but it is just the end
> date of
>> the graph...
> ...
>> options.push("DEF:#{c}=#{rrdfile}:#{c}:MIN")
>> options.push("VDEF:#{c}slope=#{c},LSLSLOPE")
>> options.push("VDEF:#{c}int=#{c},LSLINT")
>> options.push("CDEF:#{c}avg=#{c},POP,#{c}slope,COUNT,*,#{c}int,+")
>> options.push("CDEF:#{c}limit=#{c}avg,0,2000000000000,LIMIT")
>> options.push("VDEF:#{c}warning=#{c}avg,MINIMUM")
>> options.push("GPRINT:#{c}warning:    2TB free @ %c\\l:strftime")
>> 
> 
> You are using the wrong cdef in your warning definition!  So, of course 
> you
> get the end time of the graph...
> 
> options.push("VDEF:#{c}warning=#{c}limit,MINIMUM")
> 
> Define your warning on the limited CDEF.  Now, #{c}limit becomes 
> unknown
> when #{c}avg drops below 0.  Therefore, the minimum value of 
> #{c}warning
> must be 0 (if it reaches 0) and so the strftime for this point will be 
> the
> time it hits 0.

No luck, now I'm back where I started :-)  warning / strftime is "-"

options.push("--end", "now+#{range}", "--start", "now-#{range}")
options.push("--vertical-label", "Space Available")
options.push("DEF:#{c}=#{rrdfile}:#{c}:MIN")
options.push("VDEF:#{c}slope=#{c},LSLSLOPE")
options.push("VDEF:#{c}int=#{c},LSLINT")
options.push("CDEF:#{c}avg=#{c},POP,#{c}slope,COUNT,*,#{c}int,+")
options.push("CDEF:#{c}limit=#{c}avg,0,2000000000000,LIMIT")
options.push("VDEF:#{c}warning=#{c}limit,MINIMUM")
options.push("LINE4:#{c}#{get_color(index)}:#{c}")
options.push("LINE1:#{c}avg#{get_color(index)}cc::dashes=6");
options.push("GPRINT:#{c}:LAST:Available\\: %7.2lf %s\\l")
options.push("GPRINT:#{c}warning:    2TB free @ %c\\l:strftime")

Thanks!

  -- Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.