Re: Reserved tokens in CDEF names
Tobias Oetiker <[email protected]> Wed, 27 Apr 2016 23:33:17 +0200 (CEST)
| Newsgroups | gmane.comp.db.rrdtool.user |
|---|---|
| Message-ID | <alpine.DEB.2.20.1604272331540.4003@engelberg> |
Hi Damian, yes with he release of rrdtool 1.4 we switched to a new parser it parses key=value primarily and cf in the DEF line stands for consolidation function ... so you could write cf=AVERAGE cheers tobi Today Wiest, Damian wrote: > Greetings all. > > I'm using Cacti to generate my charts and ran into an issue with it > generating a bad rrdtool command-line. I'm not sure if the issue lies > with rrdtool not accepting a valid graph definition, or if Cacti is > doing something it shouldn't. > > $ /usr/bin/rrdtool graph - \ > DEF:cf='/usr/share/cacti/rra/cpu.rrd':'cpu':AVERAGE \ > CDEF:a='cf' \ > LINE1:a#000FFF:'CPU0' > > $ ERROR: don't understand 'cf' > > Renaming the DEF and CDEF to something other than "cf" resolves the error. > > Is this intentional? "cf" would appear to be a valid vname based on > the rrdgraph_data document. > > Thanks! > > -Damian > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland www.oetiker.ch [email protected] +41 62 775 9902