<div>I'm not sure why you're using GPRINT.<br></div><div>I add the date to my graphs too in my bash script. But I add it as a COMMENT. Here's the basic idea.</div><div><br></div><div>time_readible=$(echo $(date) | sed 's/\:/\\:/g')</div>
<div><br></div><div>COMMENT:"Last Update: $time_readible"</div><div><br></div><div>the sed line is just to add a backslash before every semi-colon (so that rrdtool won't think of it as a command like it happened earlier to you)</div>
<div><br></div><div>Hope this helps,</div><div><br></div><div class="gmail_quote">On Tue, Feb 21, 2012 at 9:30 PM, Sebastian John <span dir="ltr"><<a href="mailto:basti@fukz.de">basti@fukz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Yes, it seems the semicolon is wrong. But now I get an other error:<br>
<br>
ERROR: bad format for GPRINT in ' max %0.2lf %H '<br>
<span class="HOEnZb"><font color="#888888"><br>
Sebastian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Feb 21, 2012 at 06:48:21PM +0200, Emre Aydın wrote:<br>
> Maybe i'm wrong but the semicolon (:) before the %H shouldn't be there?<br>
><br>
> On Tue, Feb 21, 2012 at 5:35 PM, Sebastian John <<a href="mailto:basti@fukz.de">basti@fukz.de</a>> wrote:<br>
><br>
> > Hallo,<br>
> ><br>
> > I have a problem while printing the date/time of a vdef to my<br>
> > graph. Maybe its a problem understanding the syntax. Hope you can help<br>
> > me.<br>
> ><br>
> > My graph definition (snipped)<br>
> ><br>
> > ..<br>
> > VDEF:tmax=tmp,MAXIMUM<br>
> > ..<br>
> > GPRINT:tmax:"max %0.2lf":"%H"<br>
> > ..<br>
> ><br>
> > I get: ERROR: I don't understand ':%H' in command: 'GPRINT:tmax:max<br>
> > %0.2lf:%H'.<br>
> ><br>
> > what is my fault?<br>
> ><br>
> > Sebastian<br>
> > --<br>
> ><br>
> > _______________________________________________<br>
> > rrd-users mailing list<br>
> > <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
> > <a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
> ><br>
> ><br>
<br>
--<br>
</div></div><br>_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>M. EMRE AYDIN<br><a href="mailto:emraydin@gmail.com">emraydin@gmail.com</a><br>