Re: [rrd-users] how to add last update info into graphic?

This is a discussion on Re: [rrd-users] how to add last update info into graphic? within the RRD Users forums, part of the Networking and Network Related category; > -----Original Message----- > From: rrd-users-bounces@lists.oetiker.ch [mailto:rrd-users- > bounces@lists.oetiker.ch] On ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-20-2007
Marc Powell
 
Posts: n/a
Default Re: [rrd-users] how to add last update info into graphic?



> -----Original Message-----
> From: rrd-users-bounces@lists.oetiker.ch [mailto:rrd-users-
> bounces@lists.oetiker.ch] On Behalf Of John Conner
> Sent: Wednesday, June 20, 2007 10:19 AM
> To: rrd-users@lists.oetiker.ch
> Subject: [rrd-users] how to add last update info into graphic?
>
> hey guys, I am trying to add last update time info into rrdtool

graphic,
> what I did is something like
>
> #!/bin/bash
> now=`date`
>



>
> ERROR: Garbage ':56:46 CDT 2007' after command:
> COMMENT:last update\: Wed Jun 20 09:56:46 CDT 2007
>
> I know it was caused by the ":", rrdtool does not like any ":" without
> "\",
>
> So any quick solution I can print date info on the graphic? thanks a

lot!

How about just munging $now?

now=`date | sed 's/:/\\\:/g'`

$echo $now
Wed Jun 20 10\:26\:23 CDT 2007

--
Marc

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:31 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0