Graph is Broken

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
deepdish
Posts: 1
Joined: Thu Nov 03, 2022 4:52 pm

Graph is Broken

Post by deepdish »

Hi,
Just setup Cacti on a Windows VM machine but the graph do not generate correvtly

something like the blow picture

https://i.stack.imgur.com/SLGct.jpg

Thanks
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graph is Broken

Post by Osiris »

This is known issue. Goto Graph Templates and switch them all from SVG to PNG.
Before history, there was a paradise, now dust.
f0rslund
Posts: 1
Joined: Thu Nov 17, 2022 6:00 am

Re: Graph is Broken

Post by f0rslund »

Hello!

I also have this problem on a fresh Windows installation, and it's unfortunately not resolved by changing to PNG

I can show the graph by right-clicking on the broken image and show it in a new window, but it wont be displayed in Cacti. But when doing this i also get a box saying:
This page contains the following errors:
error on line 874 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.


Not sure if this is whats causing the problem?

This is copied the from the Graph Debug Mode

c:/rrdtool/rrdtool.exe graph - \
--imgformat=SVG \
--start="-86400" \
--end="-300" \
--pango-markup \
--title="uaasr-b - Traffic - *** IP-Only ***" \
--vertical-label="bits per second" \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit="0" \
COMMENT:"From 2022-11-16 12\:05\:14 To 2022-11-17 12\:00\:14\c" \
COMMENT:" \n" \
--color BACK#161616 \
--color CANVAS#060606 \
--color SHADEA#0B0B0B \
--color SHADEB#292929 \
--color GRID#545454 \
--color MGRID#6A6C6C \
--color FONT#FFFFFF \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#060606 \
--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="C\:/inetpub/wwwroot/cacti/rra/uaasr-b_traffic_in_8.rrd":"traffic_in":MAX \
DEF:b="C\:/inetpub/wwwroot/cacti/rra/uaasr-b_traffic_in_8.rrd":"traffic_in":AVERAGE \
DEF:c="C\:/inetpub/wwwroot/cacti/rra/uaasr-b_traffic_in_8.rrd":"traffic_out":MAX \
DEF:d="C\:/inetpub/wwwroot/cacti/rra/uaasr-b_traffic_in_8.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefb="b,8,*" \
CDEF:cdefg="c,8,*" \
CDEF:cdefh="d,8,*" \
LINE1:cdefa#00CF00FF: \
AREA:cdefb#00CF007F:"Inbound " \
GPRINT:cdefb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 14,70 KB\n" \
LINE1:cdefg#002A97FF: \
AREA:cdefh#002A977F:"Outbound" \
GPRINT:cdefh:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 15,30 KB\n"
RRDtool Command lengths = 1630 characters.
RRDtool Says:
SVG/XML Output OK
Attachments
This shows the graph when opening in a new tab with the error message.
This shows the graph when opening in a new tab with the error message.
graph new tab.png (139.42 KiB) Viewed 4133 times
This is how all the graphs look.
This is how all the graphs look.
broken graph.png (41.45 KiB) Viewed 4133 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Graph is Broken

Post by cigamit »

Your graph debug output still shows it as SVG...

Code: Select all

--imgformat=SVG
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graph is Broken

Post by TheWitness »

Goto Console > Templates > Graph, and ensure that all Templates are PNG. If not PNG, then highlight all the rows that are SVG, and then from the actions dropdown in the bottom right, select Change Settings and press 'Go'. You will be prompted for SVG or PNG. Select PNG. Windows for web servers should never be for production BTW, and I'm a windows guy since 1984, you know the year that George Orwell died.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest