Graph image HEX Characters & Zoom issues

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
amctool
Posts: 7
Joined: Sun Oct 02, 2022 11:20 am

Graph image HEX Characters & Zoom issues

Post by amctool »

Hello,

Just setup Cacti more or less following these instructions except Mysql instead of MariaDB:
https://www.howtoforge.com/how-to-insta ... ntu-20-04/


Having an issue where the graph images are showing weird Hex characters inside rectangles instead of text. I've seen someone else had this issue with no resolution.
Cacti.png
Cacti.png (26.26 KiB) Viewed 3110 times

Also not seeing any way to zoom in on the graph.

Any help would be appreciated..
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graph image HEX Characters & Zoom issues

Post by macan »

better is use our installation guide:
https://docs.cacti.net/
Which cacti version?
Let the Cacti grow!
amctool
Posts: 7
Joined: Sun Oct 02, 2022 11:20 am

Re: Graph image HEX Characters & Zoom issues

Post by amctool »

The latest. 1.2.26. First I tried from ubuntu packages but that gave me an older version..

I'll give those instructions a try, but very similar to what I had tried.

Thanks...
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graph image HEX Characters & Zoom issues

Post by macan »

Try to change Configuration -> settings -> general -> RRDtool version
Try to change Configuration -> settings -> Visual -> Font selection method

Show management -> graphs -> choose any -> Turn on graph debug mode -> show rrdtool command

You can try run this rrd command in shell, maybe you get any warning/error:
/usr/local/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
...
...
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n' > something.svg
Let the Cacti grow!
amctool
Posts: 7
Joined: Sun Oct 02, 2022 11:20 am

Re: Graph image HEX Characters & Zoom issues

Post by amctool »

Thanks Macan.

It was this setting that resolved the issue:

Code: Select all

Try to change Configuration -> settings -> Visual -> Font selection method
I changed it from "Theme" to "System", thanks for the help.

The only other issue I see is that I cannot zoom in on a graph - I'm assuming I should be able to?

tks...
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graph image HEX Characters & Zoom issues

Post by macan »

zoom - try another browser, clear cache
Let the Cacti grow!
amctool
Posts: 7
Joined: Sun Oct 02, 2022 11:20 am

Re: Graph image HEX Characters & Zoom issues

Post by amctool »

Thanks for the suggestion but that (browser/cache) did not work. There are no icons to click for zooming, and if you double click the graph image, nothing happens. Right clicking the graph brings up the same menu you get right clicking any image. If I try to select a subset of the time in the graph by left clicking and dragging across the graph - it just drags the whole image..
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graph image HEX Characters & Zoom issues

Post by TheWitness »

Something to do with RRDtool and SVG output. Try switching to PNG for your templates and see if the output is better. Use RRDtool 1.8 if possible.
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 3 guests