Re: [rrd-users] Unable to print date to the graph

2012-02-22 Thread Steve Shipway
Some explanation for the benefit of the archives and watchers. > thanks for the link. I found the solution. It is not necessary to use perl. > But I have to write another GPRINT link this: > > GPRINT:tmax:" max\: %10.2lf °C" > GPRINT:tmax:"um %H\:%m Uhr\n":strftime > > I have to add the ":strft

Re: [rrd-users] Unable to print date to the graph

2012-02-22 Thread Richard Burton
nal Message- > From: rrd-users-bounces+richard=atomwide@lists.oetiker.ch > [mailto:rrd-users-bounces+richard=atomwide@lists.oetiker.ch] On > Behalf Of Sebastian John > Sent: 22 February 2012 07:49 > To: rrd-users@lists.oetiker.ch > Subject: Re: [rrd-users] Unable to pr

Re: [rrd-users] Unable to print date to the graph

2012-02-21 Thread Sebastian John
Hello, thanks for the link. I found the solution. Is is not necessary to use perl. But I have to write an other GPRINT link this: GPRINT:tmax:" max\: %10.2lf °C" GPRINT:tmax:"um %H\:%m Uhr\n":strftime I have to add the ":strftime" on the GPRINT. Sebastian On Tue, Feb 21, 2012 at 10:38:14PM

Re: [rrd-users] Unable to print date to the graph

2012-02-21 Thread Richard Burton
Hi Sebastian This page has some good examples http://hints.jeb.be/category/rrdtool/ In short I don't think you can mix none strftime variables and strftime variables so in your example GPRINT:tmax:"max %0.2lf":"%H" would need to be (using Perl) GPRINT:tmax:%H:strftime Putting %0.2lf would r

Re: [rrd-users] Unable to print date to the graph

2012-02-21 Thread Emre Aydın
I'm not sure why you're using GPRINT. I add the date to my graphs too in my bash script. But I add it as a COMMENT. Here's the basic idea. time_readible=$(echo $(date) | sed 's/\:/\\:/g') COMMENT:"Last Update: $time_readible" the sed line is just to add a backslash before every semi-colon (so th

Re: [rrd-users] Unable to print date to the graph

2012-02-21 Thread Sebastian John
Hello, Yes, it seems the semicolon is wrong. But now I get an other error: ERROR: bad format for GPRINT in ' max %0.2lf %H ' Sebastian On Tue, Feb 21, 2012 at 06:48:21PM +0200, Emre Aydın wrote: > Maybe i'm wrong but the semicolon (:) before the %H shouldn't be there? > > On Tue, Feb 21, 20

Re: [rrd-users] Unable to print date to the graph

2012-02-21 Thread Emre Aydın
Maybe i'm wrong but the semicolon (:) before the %H shouldn't be there? On Tue, Feb 21, 2012 at 5:35 PM, Sebastian John wrote: > Hallo, > > I have a problem while printing the date/time of a vdef to my > graph. Maybe its a problem understanding the syntax. Hope you can help > me. > > My graph de