<br>Hello<br><br>I have a little problem to change rrdtool graphing mode from normal to pipe:<br><br>For example my test file contains:<br><br>rrdtool graph lpar.png --imgformat PNG \<br>--title "test" \<br>--width 800 --height=400 \<br>
DEF:v1_PhysicalCPU=lpar.rrd:<div id=":11z">PhysicalCPU:AVERAGE:step=300:end=start+24h:start=midnight \<br>CDEF:r1_PhysicalCPU=v1_PhysicalCPU \<br>VDEF:m1_PhysicalCPU=r1_PhysicalCPU,MINIMUM \<br>VDEF:M1_PhysicalCPU=r1_PhysicalCPU,MAXIMUM \<br>
VDEF:A1_PhysicalCPU=r1_PhysicalCPU,AVERAGE \<br>VDEF:l1_PhysicalCPU=r1_PhysicalCPU,LAST \<br>CDEF:y1_PhysicalCPU=r1_PhysicalCPU,0,+ \<br>LINE1:y1_PhysicalCPU#00FFFF:"PhysicalCPU............................": \<br>
GPRINT:m1_PhysicalCPU:"min\: %10.2lf" \<br>GPRINT:M1_PhysicalCPU:" max\: %10.2lf" \<br>GPRINT:A1_PhysicalCPU:" avg\: %10.2lf" \<br>GPRINT:l1_PhysicalCPU:" last\: %10.2lf\l" <br>
<br>
<br>and if I lauch this simple script, no problem, I get graph<br><br>Now how to generate same graph, but with a pipe syntax, like 'cat file | rrdtool - ' or 'rrdtool - < file' ?<br><br>I have tried to just remove 'rrdtool' from the file listed upper, and then perform a cat file | rrdtool - , and the result is:<br>
<br>ERROR: Could not make sense out of '\'<br>ERROR: unknown function '--title'<br>ERROR: unknown function '--width'<br>ERROR: unknown function 'DEF:v1_PhysicalCPU=lpar.rrd:PhysicalCPU:AVERAGE:step=300:end=start+24h:start=midnight'<br>
ERROR: unknown function 'CDEF:r1_PhysicalCPU=v1_PhysicalCPU'<br>ERROR: unknown function 'VDEF:m1_PhysicalCPU=r1_PhysicalCPU,MINIMUM'<br>ERROR: unknown function 'VDEF:M1_PhysicalCPU=r1_PhysicalCPU,MAXIMUM'<br>
ERROR: unknown function 'VDEF:A1_PhysicalCPU=r1_PhysicalCPU,AVERAGE'<br>ERROR: unknown function 'VDEF:l1_PhysicalCPU=r1_PhysicalCPU,LAST'<br>ERROR: unknown function 'CDEF:y1_PhysicalCPU=r1_PhysicalCPU,0,+'<br>
ERROR: unknown function 'LINE1:y1_PhysicalCPU#00FFFF:PhysicalCPU............................:'<br>ERROR: unknown function 'GPRINT:m1_PhysicalCPU:min\: %10.2lf'<br>ERROR: unknown function 'GPRINT:M1_PhysicalCPU: max\: %10.2lf'<br>
ERROR: unknown function 'GPRINT:A1_PhysicalCPU: avg\: %10.2lf'<br>ERROR: unknown function 'GPRINT:l1_PhysicalCPU: last\: %10.2lf\l'<br><br>If I remove the '\' at end of each lines and rerun, the result is:<br>
<br>0x0<br>OK u:0.00 s:0.00 r:0.00<br>ERROR: unknown function '--title'<br>ERROR: unknown function '--width'<br>RRDtool 1.2.13 Copyright 1997-2006 by Tobias Oetiker <<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>><br>
Compiled Jun 13 2006 11:14:25<br><br>Usage: rrdtool [options] command command_options<br><br>Valid commands: create, update, updatev, graph, dump, restore,<br> last, first, info, fetch, tune, resize, xport<br>
<br>Valid remote commands: quit, ls, cd, mkdir<br><br>RRDtool is distributed under the Terms of the GNU General<br>Public License Version 2. (<a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">www.gnu.org/copyleft/gpl.html</a>)<br>
<br>For more information read the RRD manpages<br><br>OK u:0.00 s:0.00 r:0.00<br>RRDtool 1.2.13 Copyright 1997-2006 by Tobias Oetiker <<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>><br> Compiled Jun 13 2006 11:14:25<br>
<br>Usage: rrdtool [options] command command_options<br><br>Valid commands: create, update, updatev, graph, dump, restore,<br> last, first, info, fetch, tune, resize, xport<br><br>Valid remote commands: quit, ls, cd, mkdir<br>
(...)<br>Valid remote commands: quit, ls, cd, mkdir<br><br>RRDtool is distributed under the Terms of the GNU General<br>Public License Version 2. (<a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">www.gnu.org/copyleft/gpl.html</a>)<br>
<br>For more information read the RRD manpages<br><br>OK u:0.00 s:0.00 r:0.00<br><br><br><br>I am confused on syntax :(<br><br>(For information I am usung rrdtool 1.2.13 on AIX)<br><br></div><br><div style id="__af745f8f43-e961-4b88-8424-80b67790c964__">
</div>