$RRDEXEC graph $ONEDAY_SPEED \ -e $END \ -s $START \ -t "$sysDescr 上、下傳速率" \ -v "bps" \ -w 450 \ -h 250 \ -a PNG \ -l 0 \ -n TITLE:12:/usr/share/fonts/cwttf/cwfs-b.ttf \ -n AXIS:0:/usr/share/fonts/cwttf/cwfs-b.ttf \ -n LEGEND:0:/usr/share/fonts/cwttf/cwfs-b.ttf \ DEF:dic=$RRDFILE:DIC:MAX \ DEF:uic=$RRDFILE:UIC:MAX \ CDEF:vdic=dic,1024,* \ CDEF:vuic=uic,1024,* \ COMMENT:"ITEM Name -- -- MAX -- -- AVEG -- -- MIN -- -- LAST --\n" \ LINE2:vdic#0000ff:"下載速率:" \ GPRINT:vdic:MAX:"%3.2lf%S bps" \ GPRINT:vdic:AVERAGE:"%3.2lf%S bps" \ GPRINT:vdic:MIN:"%3.2lf%S bps" \ GPRINT:vdic:LAST:"%3.2lf%S bps\n" \ LINE2:vuic#00ff00:"上傳速率:" \ GPRINT:vuic:MAX:"%3.2lf%S bps" \ GPRINT:vuic:AVERAGE:"%3.2lf%S bps" \ GPRINT:vuic:MIN:"%3.2lf%S bps" \ GPRINT:vuic:LAST:"%3.2lf%S bps\n" \ COMMENT:"Uptime $sysUpTime\n" \ COMMENT:"Generated at $SNAP_STR"
沒有留言:
張貼留言