Problems with New Graph Display in Tree Mode
Moderators: Developers, Moderators
Problems with New Graph Display in Tree Mode
I have created a new graph that uses multiple different rrd files and applies a number of different CDEF calculations on the data and it is displayed correctly in the grpah management section as well as the List and Preview modes of the graph display. But, if I select the graph in tree mode with the date selection option on the top, the graph image is not displayed correctly.
Firefox reports the images cannot be displayed due to errors. Is there something that can cause a grpah to not display properly only in Tree Mode?
Is there a timeout on the time required to display the graph?
Thanks
Firefox reports the images cannot be displayed due to errors. Is there something that can cause a grpah to not display properly only in Tree Mode?
Is there a timeout on the time required to display the graph?
Thanks
Here is the rrd output. I had to change the text to remove some identfying information, but the actual format should be the same.
I noticed the graph will display properly in preview mode, even at full size, so it is possible that there is an issue with generating the Legend on the grpah not the graph itself.
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="MM XXX Packets per Second - Primary and Secondary" \
--base=1000 \
--height=300 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Packets per Second" \
--slope-mode \
DEF:a="c\:/cacti/rra/xxxxxxx_md_switch_1_nonunicast_out_138.rrd":nonunicast_out:AVERAGE \
DEF:b="c\:/cacti/rra/XXX_md_switch_2_nonunicast_out_162.rrd":nonunicast_out:AVERAGE \
DEF:c="c\:/cacti/rra/xxxxxxx_md_switch_1_unicast_in_132.rrd":unicast_out:AVERAGE \
DEF:d="c\:/cacti/rra/XXX_md_switch_2_unicast_in_168.rrd":unicast_out:AVERAGE \
DEF:e="c\:/cacti/rra/xxxxxxx_md_switch_1_nonunicast_out_138.rrd":nonunicast_in:AVERAGE \
DEF:f="c\:/cacti/rra/XXX_md_switch_2_nonunicast_out_162.rrd":nonunicast_in:AVERAGE \
DEF:g="c\:/cacti/rra/xxxxxxx_md_switch_1_unicast_in_132.rrd":unicast_in:AVERAGE \
DEF:h="c\:/cacti/rra/XXX_md_switch_2_unicast_in_168.rrd":unicast_in:AVERAGE \
CDEF:cdefdj=a,b,MAX \
CDEF:cdefed=c,d,MAX \
CDEF:cdefeh=e,f,MAX \
CDEF:cdeffb=g,h,MAX \
CDEF:cdeffg=a,b,MAX,c,d,MAX,+,e,f,MAX,+,g,h,MAX,+ \
COMMENT:"PACKETS OUT ------------------------------------------->\n" \
COMMENT:"\tNON-UNICAST PACKETS OUT ------------------------------------------->\n" \
AREA:a#ffff00:"\tPrimary XXX Non-Unicast Packets Out" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#ffff00:"\tSecondary XXX Non-Unicast Packets Out" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\tUNICAST PACKETS OUT ---------------------------------------------------->\n" \
AREA:c#7CB3F1:"\tPrimary XXX Unicast Packets Out":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
AREA:d#808080:"\tSecondary XXX Unicast Packets Out":STACK \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"PACKETS IN ---------------------------------------------->\n" \
COMMENT:"\tNON-UNICAST PACKETS IN ----------------------------------------------->\n" \
AREA:e#ffff00:"\tPrimary XXX Non-Unicast Packets In":STACK \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
AREA:f#ffff00:"\tSecondary XXX Non-Unicast Packets In":STACK \
GPRINT:f:LAST:" Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\tUNICAST PACKETS IN ------------------------------------------------------->\n" \
AREA:g#808080:"\tPrimary XXX Unicast Packets In":STACK \
GPRINT:g:LAST:" Current\:%8.2lf %s" \
GPRINT:g:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:g:MAX:"Maximum\:%8.2lf %s\n" \
AREA:h#7CB3F1:"\tSecondary XXX Unicast Packets In":STACK \
GPRINT:h:LAST:" Current\:%8.2lf %s" \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"ACTIVE XXX TRAFFIC -------------------------------->\n" \
LINE1:cdefdj#000000:"\tActive XXX Non-Unicast Pakets Out" \
GPRINT:cdefdj:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefdj:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefdj:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefed#000000:"\tActive XXX Unicast Pakets Out":STACK \
GPRINT:cdefed:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefed:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefed:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefeh#000000:"\tActive XXX Non-Unicast Packets In":STACK \
GPRINT:cdefeh:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefeh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefeh:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdeffb#000000:"\tActive XXX Unicast Packets In":STACK \
GPRINT:cdeffb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeffb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeffb:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"TOTAL XXX TRAFFIC --------------------------------->\n" \
LINE1:cdeffg#000000:"\tTotal Packets per Second Both Directions" \
GPRINT:cdeffg:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeffg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeffg:MAX:"Maximum\:%8.2lf %s\n"
I noticed the graph will display properly in preview mode, even at full size, so it is possible that there is an issue with generating the Legend on the grpah not the graph itself.
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="MM XXX Packets per Second - Primary and Secondary" \
--base=1000 \
--height=300 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Packets per Second" \
--slope-mode \
DEF:a="c\:/cacti/rra/xxxxxxx_md_switch_1_nonunicast_out_138.rrd":nonunicast_out:AVERAGE \
DEF:b="c\:/cacti/rra/XXX_md_switch_2_nonunicast_out_162.rrd":nonunicast_out:AVERAGE \
DEF:c="c\:/cacti/rra/xxxxxxx_md_switch_1_unicast_in_132.rrd":unicast_out:AVERAGE \
DEF:d="c\:/cacti/rra/XXX_md_switch_2_unicast_in_168.rrd":unicast_out:AVERAGE \
DEF:e="c\:/cacti/rra/xxxxxxx_md_switch_1_nonunicast_out_138.rrd":nonunicast_in:AVERAGE \
DEF:f="c\:/cacti/rra/XXX_md_switch_2_nonunicast_out_162.rrd":nonunicast_in:AVERAGE \
DEF:g="c\:/cacti/rra/xxxxxxx_md_switch_1_unicast_in_132.rrd":unicast_in:AVERAGE \
DEF:h="c\:/cacti/rra/XXX_md_switch_2_unicast_in_168.rrd":unicast_in:AVERAGE \
CDEF:cdefdj=a,b,MAX \
CDEF:cdefed=c,d,MAX \
CDEF:cdefeh=e,f,MAX \
CDEF:cdeffb=g,h,MAX \
CDEF:cdeffg=a,b,MAX,c,d,MAX,+,e,f,MAX,+,g,h,MAX,+ \
COMMENT:"PACKETS OUT ------------------------------------------->\n" \
COMMENT:"\tNON-UNICAST PACKETS OUT ------------------------------------------->\n" \
AREA:a#ffff00:"\tPrimary XXX Non-Unicast Packets Out" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#ffff00:"\tSecondary XXX Non-Unicast Packets Out" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\tUNICAST PACKETS OUT ---------------------------------------------------->\n" \
AREA:c#7CB3F1:"\tPrimary XXX Unicast Packets Out":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
AREA:d#808080:"\tSecondary XXX Unicast Packets Out":STACK \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"PACKETS IN ---------------------------------------------->\n" \
COMMENT:"\tNON-UNICAST PACKETS IN ----------------------------------------------->\n" \
AREA:e#ffff00:"\tPrimary XXX Non-Unicast Packets In":STACK \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
AREA:f#ffff00:"\tSecondary XXX Non-Unicast Packets In":STACK \
GPRINT:f:LAST:" Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\tUNICAST PACKETS IN ------------------------------------------------------->\n" \
AREA:g#808080:"\tPrimary XXX Unicast Packets In":STACK \
GPRINT:g:LAST:" Current\:%8.2lf %s" \
GPRINT:g:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:g:MAX:"Maximum\:%8.2lf %s\n" \
AREA:h#7CB3F1:"\tSecondary XXX Unicast Packets In":STACK \
GPRINT:h:LAST:" Current\:%8.2lf %s" \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"ACTIVE XXX TRAFFIC -------------------------------->\n" \
LINE1:cdefdj#000000:"\tActive XXX Non-Unicast Pakets Out" \
GPRINT:cdefdj:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefdj:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefdj:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefed#000000:"\tActive XXX Unicast Pakets Out":STACK \
GPRINT:cdefed:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefed:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefed:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefeh#000000:"\tActive XXX Non-Unicast Packets In":STACK \
GPRINT:cdefeh:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefeh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefeh:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdeffb#000000:"\tActive XXX Unicast Packets In":STACK \
GPRINT:cdeffb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeffb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeffb:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"TOTAL XXX TRAFFIC --------------------------------->\n" \
LINE1:cdeffg#000000:"\tTotal Packets per Second Both Directions" \
GPRINT:cdeffg:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeffg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeffg:MAX:"Maximum\:%8.2lf %s\n"
The command was a bit difficult to run in windows, but here is the output after running in cygwin:
755x659
ERROR: failed to load c:/windows/fonts/cour.ttf
Not sure why it is trying to load that font file or where it got that directory from, but neither of them exists. My cacti instalation is configured to use:
c:/rrdtool/tahoma.ttf
This file has been copied into the rrdtool directory.
I will create this directory and copy a font file into it to see if I can get it to work.
755x659
ERROR: failed to load c:/windows/fonts/cour.ttf
Not sure why it is trying to load that font file or where it got that directory from, but neither of them exists. My cacti instalation is configured to use:
c:/rrdtool/tahoma.ttf
This file has been copied into the rrdtool directory.
I will create this directory and copy a font file into it to see if I can get it to work.
Who is online
Users browsing this forum: No registered users and 0 guests