Error in displaying graphs
Moderators: Developers, Moderators
Error in displaying graphs
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.
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
- cacti-graph-error.png (21.37 KiB) Viewed 1619 times
Re: Error in displaying graphs
after reading/following http://forums.cacti.net/viewtopic.php?f=3&t=11747 post your findings.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Error in displaying graphs
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"
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"
-
- Posts: 4
- Joined: Sun Apr 08, 2012 3:44 pm
- Location: Orange County, CA
Re: Error in displaying graphs
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
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
Re: Error in displaying graphs
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.
If the rrdtool graph debug output contains "invalid rpn expression", you're experiencing it.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Error in displaying graphs
Does a fix exist for this issue? If yes, I would be very interested to have it at least for test purpose.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Error in displaying graphs
Please see http://forums.cacti.net/viewtopic.php?f=21&t=46971 for a workaround
R.
R.
Re: Error in displaying graphs
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.
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.
Who is online
Users browsing this forum: No registered users and 3 guests