Webpage halts on loading graphs and .RRD files are not creat

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

Moderators: Developers, Moderators

Post Reply
rhobbs
Posts: 6
Joined: Thu Jun 29, 2006 1:08 pm

Webpage halts on loading graphs and .RRD files are not creat

Post by rhobbs »

Operating System: Windows 2003 R2
Webserver: IIS6
Cacti: 0.8.6h
Cactid: 0.8.6g
MySQL: 4.x
PHP: 4.4.2
RRDTool (CYGWIN version):1.2.13

When I run the poller from the command line the .RRD files get created and placed in the c:\inetpub\wwwroot\cacti\rra folder.

I have set both IUSR and IIS_WPG permissions correctly per installation instructions.

Running FileMon shows no access denied issues.

The graphs do not appear not even a red x appears and the page simply appears to be loading //localhost/cacti/graph_image.php?local_graph_id=7&rra_id=1.

Tried changing between PNG and GIF nothing happens. Data is being colleced because I can see in the device screen and logs that data is being collected.

I am at a loss here. I have methodically gone through line by line for two days the instructions and message boards trying to resolve this issue and I cannot resolve it. Hopefully someone has. Thanks in advance.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Go to graph mangement, click on a graph, turn on graph debugging. What is the error?

Make sure you only have one copy of cygwin1.dll on your system.
rhobbs
Posts: 6
Joined: Thu Jun 29, 2006 1:08 pm

Post by rhobbs »

There is only one version of cygwin1.dll and it is located in the C:\CACTI folder.

A few things to note, reading the posts regarding the RRD tool and its incompatability with cacti, I downloaded from cacti.net/downloads the RRD tool from that location.

The cygwin.dll version currently registered is 1.5.18 the cygwin.dll version from the RRD package located at cacti.net is 1.5.19-cr-0x5ef, should I unregister the 1.5.18 and register the later .dll?

With respect to turning on the debug, it hangs it is trying to access http://localhost/cacti/graphs.php?actio ... =7&debug=1

So I cannot see the debug output.

Thank you for your help.

Best Regards
rhobbs
Posts: 6
Joined: Thu Jun 29, 2006 1:08 pm

Halted loading resolved

Post by rhobbs »

I managed to correct the issue with the halted loading. Analyzing the problem, I decided to re-install PHP this time using the PHP windows installer php-4.4.2-installer.exe.

As soon as I finished that setup, rebooted the system and re-checked my php.ini file, I no longer have the web pages hanging.

Turning on the debug, I receive the following output. I am unsure what the rpn expression is.

RRDTool Command:

c:/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="My Windows localhost - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:

ERROR: invalid rpn expression in: a,8,*
rhobbs
Posts: 6
Joined: Thu Jun 29, 2006 1:08 pm

Post by rhobbs »

From within cacti, .RRD files still are not created however outside of the website, from the command line when i run the poller the graphs show up.

So my only problem now is trying to find out why from cacti it is not working.

C:\cacti>php C:\inetpub\wwwroot\cacti\poller.php
X-Powered-By: PHP/4.4.2
Content-type: text/html

07/01/2006 10:43:34 AM - SYSTEM STATS: Time:1.0805 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
OK u:0.00 s:0.01 r:0.03
OK u:0.00 s:0.01 r:0.05

C:\cacti>

The .RRD files are created and the graph images now appear.
rhobbs
Posts: 6
Joined: Thu Jun 29, 2006 1:08 pm

Post by rhobbs »

Sorry to keep updating you guys on this. It would appear the debug error I received initially was due to the fact that the poller had not run so no data was present in the rra folder.

As soon as I manually ran the poller the error disappeared. To further check this, I created another graph and allowed the poller task to execute, as soon as it did I checked and there was no error. So I believe the issue is resolved.

So the initial problem was due to the PHP installation. Re-installing PHP corrected the issue. :D
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Glad you were able to solve it. This shows a good example for others on how debug their problems and succeed :-).

Next time you might want to read the forum stickeys... my installation guide is a lot more detailed and updated than the guide on the cacti website.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests