cacti 1.2.21 linux
Anyone have a guess why the 4 top legends and the last 2 ones are not aligned with each other?. I've played with the comments, so they all have the same size. From the rrdoutput fonts looks ok (full output at the end of the post).
Code: Select all
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
Code: Select all
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='1655362072' \
--end='1655448472' \
--pango-markup \
--title=' XXX - E/D Percent - C0F4:XXX:E1 ' \
--vertical-label='Percent Total Errors/Discards' \
--slope-mode \
--base=1000 \
--height=150 \
--width=500 \
--rigid \
--alt-autoscale \
COMMENT:"From 2022-06-16 08\:47\:52 To 2022-06-17 08\:47\:52\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border $rrdborder --font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti' \
DEF:a='/opt/cacti/rra/XXX_errors_in_110.rrd':'discards_in':AVERAGE \
DEF:b='/opt/cacti/rra/XXX_errors_in_110.rrd':'errors_in':AVERAGE \
DEF:c='/opt/cacti/rra/XXX_errors_in_110.rrd':'discards_out':AVERAGE \
DEF:d='/opt/cacti/rra/XXX_errors_in_110.rrd':'errors_out':AVERAGE \
DEF:e='/opt/cacti/rra/XXX_unicast_in_112.rrd':'unicast_in':AVERAGE \
DEF:f='/opt/cacti/rra/XXX_unicast_in_112.rrd':'unicast_out':AVERAGE \
DEF:g='/opt/cacti/rra/XXX_broadcast_in_109.rrd':'broadcast_in':AVERAGE \
DEF:h='/opt/cacti/rra/XXX_broadcast_in_109.rrd':'broadcast_out':AVERAGE \
DEF:i='/opt/cacti/rra/XXX_multicast_in_111.rrd':'multicast_out':AVERAGE \
DEF:j='/opt/cacti/rra/XXX_multicast_in_111.rrd':'multicast_in':AVERAGE \
CDEF:cdefb='a,0,*' \
CDEF:cdeff='b,0,*' \
CDEF:cdefj='c,0,*' \
CDEF:cdefbd='d,0,*' \
CDEF:cdefbi='e,0,*' \
CDEF:cdefbj='f,0,*' \
CDEF:cdefca='g,0,*' \
CDEF:cdefcb='h,0,*' \
CDEF:cdefcc='i,0,*' \
CDEF:cdefcd='j,0,*' \
CDEF:cdefce='e,g,i,+,+' \
CDEF:cdefcj='f,h,j,+,+' \
CDEF:cdefdd='cdefce,0,EQ,0,a,100,*,cdefce,/,IF,0,110,LIMIT' \
CDEF:cdefdi='cdefce,0,EQ,0,b,100,*,cdefce,/,IF,0,110,LIMIT' \
CDEF:cdefeb='cdefcj,0,EQ,0,c,100,*,cdefcj,/,IF,0,110,LIMIT' \
CDEF:cdefef='cdefcj,0,EQ,0,d,100,*,cdefcj,/,IF,0,110,LIMIT' \
CDEF:cdeffa='cdefdd,cdefdi,+' \
CDEF:cdeffe='cdefeb,cdefef,+' \
COMMENT:'XXX\:Te1/0/10 - C0F4\:XXX\:E1 Error/Discard in Percent\n' \
LINE1:cdefb#FFFFFF00:'Discard In\:' \
GPRINT:a:LAST:'Current\:%8.2lf %s' \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdeff#FFFFFF00:'Errors In\:' \
GPRINT:b:LAST:'Current\:%8.2lf %s' \
GPRINT:b:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:b:MAX:'Maximum\:%8.2lf %s' \
LINE1:cdefj#FFFFFF00:'DiscardOut\:' \
GPRINT:c:LAST:'Current%8.2lf %s' \
GPRINT:c:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:c:MAX:'Maximum\:%8.2lf %s' \
LINE1:cdefbd#FFFFFF00:'Errors Out\:' \
GPRINT:d:LAST:'Current\:%8.2lf %s' \
GPRINT:d:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:d:MAX:'Maximum\:%8.2lf %s' \
COMMENT:' \n' \
LINE1:cdefbi#FFFFFF00: \
LINE1:cdefbj#FFFFFF00: \
LINE1:cdefca#FFFFFF00: \
LINE1:cdefcb#FFFFFF00: \
LINE1:cdefcc#FFFFFF00: \
LINE1:cdefcd#FFFFFF00: \
COMMENT:'Packets in\:' \
GPRINT:cdefce:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefce:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefce:MAX:'Maximum\:%8.2lf %s\n' \
COMMENT:'Packets out\:' \
GPRINT:cdefcj:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefcj:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefcj:MAX:'Maximum\:%8.2lf %s\n' \
COMMENT:'Discard In%\:' \
GPRINT:cdefdd:LAST:'Current\:%6.4lf%%' \
GPRINT:cdefdd:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdefdd:MAX:'Maximum\:%6.4lf%%\n' \
COMMENT:'Errors In %\:' \
GPRINT:cdefdd:LAST:'Current\:%6.4lf%%' \
GPRINT:cdefdi:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdefdi:MAX:'Maximum\:%6.4lf%%\n' \
COMMENT:'DiscardOut%\:' \
GPRINT:cdefeb:LAST:'Current\:%6.4lf%%' \
GPRINT:cdefeb:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdefeb:AVERAGE:'Maximum\:%6.4lf%%\n' \
COMMENT:'Errors Out%\:' \
GPRINT:cdefef:LAST:'Current\:%6.4lf%%' \
GPRINT:cdefef:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdefef:MAX:'Maximum\:%6.4lf%%\n' \
COMMENT:' \n' \
COMMENT:'Total Problem In%\:' \
GPRINT:cdeffa:LAST:'Current\:%6.4lf%%' \
GPRINT:cdeffa:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdeffa:MAX:'Maximum\:%6.4lf%%\n' \
COMMENT:'TotalProblem Out%\:' \
GPRINT:cdeffe:LAST:'Current\:%6.4lf%%' \
GPRINT:cdeffe:AVERAGE:'Average\:%6.4lf%%' \
GPRINT:cdeffe:MAX:'Maximum\:%6.4lf%%'
RRDtool Command lengths = 4197 charaters.
RRDtool Says:
SVG/XML Output OK