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