[rrd-users] how to add last update info into graphic?
    Marc Powell 
    marc at ena.com
       
    Wed Jun 20 17:28:15 CEST 2007
    
    
  
> -----Original Message-----
> From: rrd-users-bounces at lists.oetiker.ch [mailto:rrd-users-
> bounces at lists.oetiker.ch] On Behalf Of John Conner
> Sent: Wednesday, June 20, 2007 10:19 AM
> To: rrd-users at 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
    
    
More information about the rrd-users
mailing list