----- Original Message ---- > From: Karl Fischer <[EMAIL PROTECTED]> > To: Martin Knoblauch <[EMAIL PROTECTED]>; [email protected] > Sent: Thursday, November 27, 2008 11:21:22 AM > Subject: Re: [rrd-users] Automatic Timestamp in RRD graphs > > Martin Knoblauch wrote: > > I think my reply/question did not hit the list ... > > It did ... >
sorry for that. I was confused before my 1st coffee :-) > I had similar problems with \r not working and what I found out > is that it only seems to work if it is NOT the very last line. > So if you follow your \r with \n, it will be right-aligned even > though this might not be what you want ... > > hth > hmm. your suggestion about "\n" did not help, it just adds a nonprintable charcter to the graph. But I found that apparently "\r" has some effect, just not the desired one. It seems that it aligns the text to the current cell, not to the canvas. Two sample images included, "graph1.png" is with "\r". What I want is to have the "Date: ...." string at the right/lower corner of the canvas. The command to generate is graph is similar to the following: /usr/bin/rrdtool graph - --start 1227781876 --end 1227785476 --width 300 --height 75 --title swap_free --vertical-label KB DEF:sum=/var/lib/ganglia/rrds/CAE-Bench Compute Nodes/lpsdm37c1.muc/swap_free.rrd:sum:AVERAGE AREA:sum#555555:lpsdm37c1.muc last hour (now 8,342,840) COMMENT:\s COMMENT:\s COMMENT:Date\: 2008-11-27 12\:31 Cheers Martin > - Karl > > > > ----- Original Message ---- > >> From: Erik de Mare > >> To: Martin Knoblauch > >> Cc: rrd-users rrd-tool > >> Sent: Wednesday, November 26, 2008 2:57:35 PM > >> Subject: Re: [rrd-users] Automatic Timestamp in RRD graphs > >> > >> > >> add something like COMMENT:`date` > >> > > > > OK, while this does not necessary satisfy my laziness, it seems to work > > kind > of. So I add the following to my legend: > > > > " COMMENT:'\s' COMMENT:'\s' COMMENT:'$datestring'" > > > > where > > "$datestring" has my desired timestamp. All is good so far, but the > > string is left aligned. I would like to have it on the right lower > > corner of my graph? I read about "\r", but it does not work. > > > > Any ideas? rrdtool is version 1.2.15. > > > > Cheers > > Martin > > > >
<<attachment: graph0.png>>
<<attachment: graph1.png>>
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
