Error in displaying graphs

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

Moderators: Developers, Moderators

Post Reply
lash
Posts: 3
Joined: Fri Apr 06, 2012 5:30 am

Error in displaying graphs

Post by lash »

Hi All,

I've installed the Cacti Windows installer and managed to connect to it and add a device to be monitored.

However, when creating Graphs - I cannot get any feedback from them, I received the following error.


Note, that Cacti is running under a Windows XP VM for testing purposes before moving to a dedicated machine.

Can anyone help me with this issue?

Thanks a lot.
Attachments
Graph error
Graph error
cacti-graph-error.png (21.37 KiB) Viewed 1621 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error in displaying graphs

Post by BSOD2600 »

after reading/following http://forums.cacti.net/viewtopic.php?f=3&t=11747 post your findings.
tql
Posts: 1
Joined: Sun Apr 08, 2012 8:41 pm

Re: Error in displaying graphs

Post by tql »

when i upgrade from 0.8.7i to 0.8.8,i have this error too,i tryed to turn on the graphic debug,it shows cdef error,rpn express not correct,it looks like CDEF:cdefa='a,8,*' \ has problem,when i rolled back to 0.8.7i ,the graphic worked,cdef like this CDEF:cdefa=a,8,* \ ,so maybe the Single quotation marks makes this error.

RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Realtek PCIe GBE Family Controller - |query_ifalias|" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12:"C:/Windows/Fonts/arial.ttf" \
--font AXIS:8:"C:/Windows/Fonts/arial.ttf" \
--font LEGEND:10:"C:/Windows/Fonts/arial.ttf" \
--font UNIT:8:"C:/Windows/Fonts/arial.ttf" \
DEF:a="C\:/AppServ/www/cacti/rra/57/1560.rrd":traffic_in:AVERAGE \
DEF:b="C\:/AppServ/www/cacti/rra/57/1560.rrd":traffic_out:AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
jmlivingston
Posts: 4
Joined: Sun Apr 08, 2012 3:44 pm
Location: Orange County, CA

Re: Error in displaying graphs

Post by jmlivingston »

tql

I'm not an expert, in fact really new here but saw a similar issue this weekend trying to get my installation up and running. Turned out to be an issue with apache 2.2 being installed to its default location under c:\program files\... the integration between Cacti and rrdtool was not handling the path correctly since it included a space. Go to Console / Settings / Poller Logging Level and set it to debug for *just one* polling cycle, then get the rrdtool command from the log file and try running it manually at the command line, and see if it fails. Then try it again putting the file path string in the rrdtool parameter set in quotations and see if it works (see red text below).

c:/cacti/rrdtool.exe update C:\apache\htdocs\cacti\rra\firewall_traffic_in_9.rrd --template traffic_in:traffic_out 1333942566:0:0

I ended up having to reinstall Apache 2.2 (and Cacti) into a new location with a standard 8.3 filepath to make it work.

Lash, as long as your VM has adequate resources I doubt that being a VM has anything to do with it. If you right-click on the red-x to get the properties of the image that's supposed to be displayed what's the path and how does it compare to the layout of your filesystem?

John
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error in displaying graphs

Post by BSOD2600 »

There is a known bug with Cacti 0.8.8 which only affects Windows, due to changes in character escaping. See http://bugs.cacti.net/view.php?id=2208

If the rrdtool graph debug output contains "invalid rpn expression", you're experiencing it.
Tibo
Posts: 25
Joined: Mon Jul 06, 2009 9:21 am

Re: Error in displaying graphs

Post by Tibo »

Does a fix exist for this issue? If yes, I would be very interested to have it at least for test purpose.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error in displaying graphs

Post by gandalf »

lash
Posts: 3
Joined: Fri Apr 06, 2012 5:30 am

Re: Error in displaying graphs

Post by lash »

So, in regards to my initial post about Graphs not displaying.

I reinstalled Cacti on another VM running on a Server.

VM is now running on Windows Server 2008 R2.

However, after installation - I was faced with the same issue of Graphs not displaying.

I just gave up after that - I checked the VM today after a couple of days.

and BOOM!

Graphs are now displaying properly!

I haven't done anything to the VM or any changes. It just started displaying properly.

I do have some other issues now though, but I will try to look for some solution before posting anything.

Cheers for all the help provided.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests