| Cheshire Cat Computing http://mail.steveshipway.org/forum/ |
|
| Cann't use GPRINT ..... http://mail.steveshipway.org/forum/viewtopic.php?f=11&t=405 |
Page 1 of 1 |
| Author: | frpan [ Wed Nov 10, 2004 2:57 pm ] |
| Post subject: | Cann't use GPRINT ..... |
hi After having seen your code of routers2.cgi,I used the rrdtool like yours.However,it doesn't work for GPRINT. rrdtool graph 42024-pvc9.png --imgformat PNG --base 1024 -w 800 -h 400 -s 1099612830 -e 1099639260 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%H --title 42024-pvc9(64k) DEF:in=42024-pvc9.rrd:ds0:AVERAGE DEF:out=42024-pvc9.rrd:ds1:AVERAGE DEF:min=42024-pvc9.rrd:ds0:MAX DEF:mout=42024-pvc9.rrd:ds1:MAX CDEF:pcin=in,100,*,64000,/ CDEF:mpcin=min,100,*,64000,/ CDEF:pcout=out,100,*,64000,/ CDEF:mpcout=mout,100,*,64000,/ AREA:in#00eb0c:Incoming LINE1:out#0000ff:Outgoing CDEF:down=in,UN,out,UN,+,2,EQ,INF,0,IF AREA:down#d0d0d0 'GPRINT:min:MAX:Max In\: %5.0lf\g It turns out to the error: ERROR: can't parse ''GPRINT:min:MAX:Max' Can you tell me why ? |
|
| Author: | frpan [ Wed Nov 10, 2004 3:01 pm ] |
| Post subject: | |
Sorry,the error message above is false,I miscopied a ' into it And should be this: C:\rrdtool-1.0.48\bin>rrdtool graph 42024-pvc9.png --imgformat PNG --base 1024 -w 800 -h 400 -s 1099612830 -e 1099639260 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%H --title 42024-pvc9(64k) DEF:in=42024-pvc9.rrd:ds0:AVERAGE DEF:out=42024-pvc9.rrd:ds1:AVERAGE DEF:min=42024-pvc9.rrd:ds0:MAX DEF:mout=42024-pvc9.rrd:ds1:MAX CDEF:pcin=in,100,*,64000,/ CDEF:mpcin=min,100,*,64000,/ CDEF:pcout=out,100,*,64000,/ CDEF:mpcout=mout,100,*,64000,/ AREA:in#00eb0c:Incoming LINE1:out#0000ff:Outgoing CDEF:down=in,UN,out,UN,+,2,EQ,INF,0,IF AREA:down#d0d0d0 GPRINT:min:MAX:Max In\: %5.0lf\g ERROR: unknown function 'I' If I don't add the GPRINT,the clause went ok. |
|
| Author: | frpan [ Wed Nov 10, 2004 3:04 pm ] |
| Post subject: | |
Also,the clause work too rrdtool graph 42024-pvc9.png --imgformat PNG --base 1024 -w 800 -h 400 -s 1099612830 -e 1099639260 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%H --title 42024-pvc9(64k) DEF:in=42024-pvc9.rrd:ds0:AVERAGE DEF:out=42024-pvc9.rrd:ds1:AVERAGE DEF:min=42024-pvc9.rrd:ds0:MAX DEF:mout=42024-pvc9.rrd:ds1:MAX CDEF:pcin=in,100,*,64000,/ CDEF:mpcin=min,100,*,64000,/ CDEF:pcout=out,100,*,64000,/ CDEF:mpcout=mout,100,*,64000,/ AREA:in#00eb0c:Incoming LINE1:out#0000ff:Outgoing CDEF:down=in,UN,out,UN,+,2,EQ,INF,0,IF AREA:down#d0d0d0 GPRINT:min:MAX:%lf%s\g |
|
| Author: | stevesh [ Wed Nov 10, 2004 3:22 pm ] |
| Post subject: | |
This is an rrdtool question, not routers.cgi. However, your problem is that you need to quote the GPRINT directive as it contains embedded spaces. |
|
| Author: | frpan [ Wed Nov 10, 2004 3:55 pm ] |
| Post subject: | |
Sorry,I don't catch what you mean. How to quote and of what? Can you say more about it! thanks! |
|
| Author: | frpan [ Wed Nov 10, 2004 3:59 pm ] |
| Post subject: | |
Ok After many tries,finally I did it |
|
| Author: | stevesh [ Wed Nov 10, 2004 5:27 pm ] |
| Post subject: | |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|