[rrd-users] Re: horizontal line
    Pavel Ruzicka 
    pavouk at pavouk.org
       
    Mon May 22 14:14:29 MEST 2006
    
    
  
Hello,
> > I want to create bandwidth graph with additional horizontal line, which
> > presents Max possible speed. RRD files are from MRTG.
> > I tried this in my PERL script, but without success:
> > ($maxbytes is previously computed value from more RRD files.)
> > ------------
> > push @args, "CDEF:maxbw=${maxbytes},8,*";
> > push @args, "LINE1:maxbw#000000:Max speed  ${maxbytes}\\l";
>
> Try HRULE.
Thanks, this works for me:
push @args, "HRULE:${maxbits}#FF0000:Max speed  ${maxbitsleg}\\l";
> Alternatively, use an existing ds-name and discard it right away,
> using POP.
I tried it, but it doesn't works for me:
push @args, "CDEF:maxbw=fin,POP,$maxbytes,*,8,/";
push @args, "LINE1:maxbw#000000:Max speed  ${maxbytes}\\l";
I get this error: RPN stack underflow.
I don't know what now, because HRULE is marked like (deprecated).
Best regards,
Pavel Ruzicka
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
    
    
More information about the rrd-users
mailing list