Problems with New Graph Display in Tree Mode

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Problems with New Graph Display in Tree Mode

Post by mrnoodle »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please click on the "failing" graph, then select the wrench. And please post the whole rrdtool graph statement found
Reinhard
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Post by mrnoodle »

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" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#ffff00:"\tSecondary XXX Non-Unicast Packets Out" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"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"
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Post by mrnoodle »

Here is a copy of the graph displayed with the legend.
Attachments
pps-graph.PNG
pps-graph.PNG (84.68 KiB) Viewed 3348 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You surely double checked, that RRDTOOL Utility Version matches the one of your installed binaries? What is returned, when executing this command from cli (Please replace c:/rrdtool/rrdtool.exe graph - \ by c:/rrdtool/rrdtool.exe graph c:\scratch.png \)?
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

And please check your web servers log for errors
Reinhard
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Post by mrnoodle »

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.
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Post by mrnoodle »

I created the directory and put the font file in there and it generated the file without issue. The output was:

797x659

My guess is there is problems with using Tahoma at a font size of 12 -Title 10 - Legend 8 - Axis.

I will try a different font and see if it fixes it.
mrnoodle
Cacti User
Posts: 59
Joined: Sun Apr 02, 2006 3:56 pm

Post by mrnoodle »

Not sure why I didn't check this earlier, but the apache error log revealed the problem. It was claiming that the rrdtool text string was too long.

I deleted many of the dashes and it works now without issue.

Thanks for your assistance.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests