[SOLVED]ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/

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

Moderators: Developers, Moderators

Post Reply
madhud
Posts: 4
Joined: Fri May 08, 2009 6:46 am
Contact:

[SOLVED]ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/

Post by madhud »

Hi,

1) Installed CACTI 0.8.7d to C:\Inetpub\wwwroot\cacti by extracing the zip file

2) Installed PHP -5.2.0-win32-installer.msi into C:\PHP\

3) Installed MYSQL-5.0.77-win32.msi into C:\MYSQL\

4) Extracted the RRD Tool to C:\RRD\

5) Configured PHP and IIS and I am able to run the command c:\> php -m
in command prompt and looks everything fine.

6) Configured MYSQL and created the database cacti and given the grant permissions.

7) I am able to open http://localhost/cacti

8) I ran the command php c:\inetpub\wwwroot\cacti\poller.php but it doesn't display anything and comes out of with C:\

9) I followed the above mentioned steps from the below mentioned link http://bsod2600.home.comcast.net/~bsod2 ... ndows.html

10) I am getting error opening the rrd file saying No such file or directory found. checked thrice for the permissions and everything is fine. I don't think this is the problem with the Permissions.

RRDTool Command:

C:/RRD/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Hyd Edge Router - Traffic - Gi0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/hyd_edge_router_traffic_in_8.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/hyd_edge_router_traffic_in_8.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\n"
RRDTool Says:

ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/hyd_edge_router_traffic_in_8.rrd': No such file or directory

11) When I ran the command
C:\>c:\rrd\rrdtool.exe create C:\Inetpub\wwwroot\cacti\rra\hyd_edge_router_traff
ic_in_8.rrd
ERROR: you must define at least one Round Robin Archive. This is the error I am getting.

12) Please find the screenshot of the graphs. How I am getting.

13) Please find the cacti.log file.


05/08/2009 12:19:01 PM - SYSTEM STATS: Time:1.3381 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:2 RRDsProcessed:1


Please Help !!!!!!!!!! :(

Thanks,
Madhu.
Attachments
getting X symbol for the graph.
getting X symbol for the graph.
Graph.JPG (49.77 KiB) Viewed 5585 times
Last edited by madhud on Tue May 12, 2009 11:36 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Have you followed the debugging guide yet? http://docs.cacti.net/manual:087:4_help.2_debugging That should help pinpoint the failure.
madhud
Posts: 4
Joined: Fri May 08, 2009 6:46 am
Contact:

Post by madhud »

The problem is fixed after doing the changes in the below code.

--- cacti-0.8.7d/lib/snmp.php 2009-02-11 21:55:50.000000000 -0500
+++ cacti-patched/lib/snmp.php 2009-03-02 20:00:38.000000000 -0500
@@ -366,7 +366,7 @@

/* now check for the second most obvious */
if (is_numeric($string)) {
- return $string;
+ return trim($string);
}

/* remove ALL quotes, and other special delimiters */


Now I am trying to install CACTI on Linux Machine to see any performance improvements.

Thanks to one and All....
Madhu.
discovery
Posts: 4
Joined: Fri Jun 19, 2009 8:35 am

Help

Post by discovery »

Hi configured the Cacti on Windows server 2003 and able to see graph for memory, process but no data on graphs and at the same time graphs are not generated for the interface utlizations RRDTool says : No such file.

As per the above response i do changed the strings mention, but no luck.

can u please explain in more details

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

Post by BSOD2600 »

Start your own thread. Read http://forums.cacti.net/viewtopic.php?t=11747 and then post on it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest