rrdtool

Mark Musone mmusone at shatterit.com
Wed Feb 4 17:36:32 EST 2004


I GOT IT!!! (sorry..too excited)...

I'm not sure if you meant to mail this to the list or not, but since you
did, I'll reply here in case anyone else is interested:

After spending 6 hours debugging/editing the code practically line by
line, it turns out that there seems to only be a single "time display"
format parameter, that begin "%c" this "%c" format returns two lines,
the first line is a line with a human readable date. The second line
returns a unix timestamp in parentheses.

So if you run this:

/usr/local/rrdtool-1.1.0/bin/rrdtool graph /dev/null
'DEF:a=/usr/local/247/data/rrdb/c2/cnr-ACTemperature.rrd:ACTemperature:A
VERAGE' 'VDEF:last=a,LAST' 'VDEF:max=a,MAXIMUM' 'VDEF:min=a,MINIMUM'
'VDEF:average=a,AVERAGE' PRINT:last:'%c' PRINT:max:'%c'

it will print out:

0x0
Wed Feb  4 17:28:00 2004
 (1075933680)
Wed Feb  4 04:08:00 2004
 (1075885680)

which corresponds to the times for the last and max..

-Mark


-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
Ray Cherry
Sent: Tuesday, February 03, 2004 9:01 PM
To: nflug at nflug.org
Subject: rrdtool


according to the man pages on rrdtool
  VDEF return a value and a time.... does any one know
how to get the time out

/usr/local/rrdtool-1.1.0/bin/rrdtool graph /dev/null
'DEF:a=/usr/local/247/data/rrdb/c2/cnr-ACTemperature.rrd:ACTemperature:A
VERAGE'
'VDEF:last=a,LAST' 'VDEF:max=a,MAXIMUM'
'VDEF:min=a,MINIMUM' 'VDEF:average=a,AVERAGE'
PRINT:last:'%lf' PRINT:max:'%lg'

the above command outputs the values, whenever i try
to use time formatting commands errors out.... even
some of the value command give unexpected errors...

I am wondering if it is an documentation issue or
maybe i am doing something wrong...

by the way, /usr/local/rrdtool-1.1.0/bin/rrdtool fetch
command outputs the time stamps with any special
formating but it doesn't returns MAX, MIN---it returns
all values generated with the same CF (AVERAGE,
MAXMIMUM, MINIMUM)

any ideas

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
 




More information about the nflug mailing list