Graph Issues

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

Moderators: Developers, Moderators

Post Reply
cheesecake1
Posts: 7
Joined: Wed Dec 02, 2009 2:41 pm

Graph Issues

Post by cheesecake1 »

Hi,

I have setup a new installation of Cacti with the following software versions:

Windows Server 2003 R2 SP2
IIS 6
cacti 0.8.7e
mysql 5.1.41
php 5.3.1
net-snmp 5.5.0.1
rrdtool 1.2.30

I have added a couple of devices and associated graphs, which look to be getting populated with data. I have added the graphs to a graph tree. When I click on the graph tree under "Graphs", the graph images don't display. However, if I click on a graph to view more detailed information, I see the correct images with data.

Clicking on Graph Source/Properties gives the following:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=1259697333 \
--end=1259783733 \
--title="Harrogate ASA 5510 - Traffic - Inside Interface" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/12/01 19:55:33 To 2009/12/02 19:55:33\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
DEF:a="C\:/Inetpub/wwwroot/Cacti/rra/harrogate_asa_traffic_in_9.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/Cacti/rra/harrogate_asa_traffic_in_9.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,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\n"

Please can you assist?

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

Post by BSOD2600 »

wrong rrdtool version in cacti's settings.
cheesecake1
Posts: 7
Joined: Wed Dec 02, 2009 2:41 pm

Post by cheesecake1 »

Hi,

I've checked the RRD versions and the version I am using matches the version set in Cacti i.e. 1.2.30.

Having reinstalled the Cacti portion to see if I can resolve the problem, I now seem to have the opposite problem, that is, I can see the graphs now in the main tree view but when I click on a graph I get 'page cannot be found' . The URL that is displayed is
http://10.40.24.31/cacti/graph.php?acti ... raph_id=10

The Windows Scheduled task for the Cacti poller and the website are running using an account with administrative rights on the machine.

Any further helpwould be appreciated.

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

Post by BSOD2600 »

Cacti has some issues with php 5.3. It's recommended you stick with the latest 5.2.x branch.

Do graphs work in Graph Management?
cheesecake1
Posts: 7
Joined: Wed Dec 02, 2009 2:41 pm

Post by cheesecake1 »

Hi, Yes I was able to see the graphs in Graph Management.

I have downgraded PHP to 5.2.11, however, I see the same behaviour, that is when you click on a graph you get 'page cannot be displayed'.

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

Post by BSOD2600 »

Make sure there is only one copy of php.ini on your system.

Try creating a new tree for the graph(s).
Look in the IIS web logs for hints on why the page cannot be displayed.

The fact graphs work in Graph Management, shows that permissions, etc are all configured properly for cacti/rrdtool.
cheesecake1
Posts: 7
Joined: Wed Dec 02, 2009 2:41 pm

Post by cheesecake1 »

Hi,

there is only one copy of php.ini,also the IIS log file only shows the fllowing:

2009-12-05 14:18:15 W3SVC1 10.40.24.31 GET /cacti/graph.php action=view&rra_id=all&local_graph_id=6 80 - 10.40.24.31 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648) 404 0 2

I have attached the php.ini file.

Thanks again.
Attachments
php.ini.txt
(48.89 KiB) Downloaded 150 times
cheesecake1
Posts: 7
Joined: Wed Dec 02, 2009 2:41 pm

Post by cheesecake1 »

Having reinstalled PHP 5.2.11 for the 3rd time (without using the installer), I can now access all the graph data.

Thanks for all your help with this.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm , wonder what the php reinstall fixed.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests