[rrd-developers] Re: <RRD::TIME::NOW ...> embedded in <RRD::GRAPH ...> bug?

Tobias Oetiker oetiker+r at ee.ethz.ch
Sun May 1 11:09:54 MEST 2005


Hi Steve,

rrdcgi uses shell semantics when it comes to quotes ... so

  <RRD::GRAPH okay.gif
    --title "<RRD::TIME::NOW '%a%b%d%H:%M%Z%Y'>"
    DEF:in=test.rrd:in:AVERAGE AREA:in#00ff00:input
  >

showld work ... as well as

  <RRD::GRAPH okay.gif
    --title "<RRD::TIME::NOW %a%b%d%H:%M%Z%Y>"
    DEF:in=test.rrd:in:AVERAGE AREA:in#00ff00:input
  >

cheers
tobi

Yesterday rader at ginseng.hep.wisc.edu wrote:

>
> Dear Tobi,
>
> Using spaces in the strftime-format arg of <RRD::TIME::NOW>
> inside <RRD::GRAPH> fails for me... to wit, please try this...
>
>  #!/usr/local/rrdtool-1.0.50/bin/rrdcgi
>  <RRD::GRAPH okay.gif
>    --title "<RRD::TIME::NOW "%a%b%d%H:%M%Z%Y">"
>    DEF:in=test.rrd:in:AVERAGE AREA:in#00ff00:"input"
>  >
>  <RRD::GRAPH oops.gif
>    --title "<RRD::TIME::NOW "%a %b %d %H:%M %Z %Y">"
>    DEF:in=test.rrd:in:AVERAGE AREA:in#00ff00:"input"
>  >
>
> ?
>
> It's giving me an oops.gif that reads...
>
>  [ERROR: not enough arguments for RRD::TIME::NOW]
>
> regards
> steve
> - - -
> systems & network manager
> high energy physics
> university of wisconsin
>
>  [1] http://www.hep.wisc.edu/~rader/okay.gif
>  [2] http://www.hep.wisc.edu/~rader/oops.gif
>
> --
> Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/rrd-developers
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-developers mailing list