<div class="gmail_quote">On Thu, Dec 2, 2010 at 11:34 AM, Simon Hobson <span dir="ltr"><<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
AFAIK you are supposed to be able to use PRINT statements and have<br>
the results output as text rather than generating a graph. I've never<br>
tried with with a CDEF though (as opposed to printing a single value<br>
VDEF) so I don't know if that works.<br></blockquote><div><br>Regarding this, there is a contradiction in the documentation. The man page for rrdgraph_graph shows the "new" form of PRINT as PRINT:vname:format[:strftime], and immediately after, it says "It is an error to specify a vname generated by a DEF or CDEF." But then it goes on to list the other (deprecated) form, and then says "The first form of this command is to be used with CDEF vnames."<br>
<br>Regardless, I have not found any way to specify the "new" PRINT form that the command line parser likes. For example, if I use:<br><br>$ rrdtool graph /tmp/graphout DEF:du=diskutil-sda.rrd:percent:AVERAGE CDEF:foo=du PRINT:foo:%lf --start end-30min<br>
<br>Then I get:<br>ERROR: Cannot parse CF in 'PRINT:foo:%lf'<br><br>However, the new form of PRINT is not supposed to contain a CF.<br><br>It seems like either the tool or the documentation is broken. Does anyone have any examples at all which use the "new form" of the PRINT command?<br>
<br>-Neal<br><br></div></div>