rrd如何画反坐标的图?
类似附件的这种正反坐标都有的图怎么画?
/usr/local/rrd/bin/rrdtool graph -s 1195688000 /db/htdocs/sys/mon/speed.png -t "Only a test" -v "bits per second" -w 880 -h 600 COMMENT:"Last update time:`date |awk '{gsub(":",";",$0);print $0}'`c"
-b 1000
--alt-autoscale-max
--rigid
--lower-limit=0
--slope-mode
--font AXIS:7:
--font LEGEND:7:
--font UNIT:7:
DEF:in_bytes=/home/t/speed.rrd:IN:AVERAGE
CDEF:in_bits=8,in_bytes,*
AREA:in_bits#00CF00:"Inbound ":STACK
GPRINT:in_bits:LAST:"Current:%8.2lf %sbps"
GPRINT:in_bits:AVERAGE:"Average:%8.2lf %sbps"
GPRINT:in_bits:MAX:"Maximum:%8.2lf %sbpsn"
DEFut_bytes=/home/t/speed.rrd:OUT:AVERAGE
CDEFut_bits=8,out_bytes,*
AREAut_bits#002A97:"Outbound":STACK
GPRINTut_bits:LAST:"Current:%8.2lf %sbps"
GPRINTut_bits:AVERAGE:"Average:%8.2lf %sbps"
GPRINTut_bits:MAX:"Maximum:%8.2lf %sbpsn"
比如我想把out_bits画成反坐标的,该怎么改呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
/usr/local/rrd/bin/rrdtool graph -s now-1hour /db/htdocs/sys/mon/speed.png -t "Only a test" -v "bits per second" -w 880 -h 600 COMMENT:"Last update time:`date |awk '{gsub(":",";",$0);print $0}'`c"
-b 1000
-N
--alt-autoscale-max
-i
--slope-mode
--font AXIS:7:
--font LEGEND:7:
--font UNIT:7:
DEF:in_bytes=/home/doodoo/speed.rrd:IN:AVERAGE
CDEF:in_bits=8,in_bytes,*
AREA:in_bits#00CF00:"Inbound ":STACK
GPRINT:in_bits:LAST:"Current:%8.2lf %sbps"
GPRINT:in_bits:AVERAGE:"Average:%8.2lf %sbps"
GPRINT:in_bits:MAX:"Maximum:%8.2lf %sbps"
GPRINT:in_bits:MIN:"Minimum:%8.2lf %sbpsn"
DEFut_bytes=/home/doodoo/speed.rrd:OUT:AVERAGE
CDEFut_bits=-8,out_bytes,*
AREAut_bits#002A97:"Outbound":STACK
GPRINTut_bits:LAST:"Current:%8.2lf %sbps"
GPRINTut_bits:AVERAGE:"Average:%8.2lf %sbps"
GPRINTut_bits:MAX:"Maximum:%8.2lf %sbps"
GPRINTut_bits:MIN:"Minimum:%8.2lf %sbpsn"
刚才写错参数
--rigid
--lower-limit=0
这两个弄掉就行了。呵呵。
顶一下。