i really need help !!

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

Moderators: Developers, Moderators

Post Reply
doc_fc

i really need help !!

Post by doc_fc »

Hello

It is the second day that i try to run cacti without result !!
I'm under Xp pro with snmp enable.

I use easy php (apache 1.3.27/php 4.3.3/mysql 4.0.15/phpmyadmin 2.5.3) + perl + rrdtool.

i set up the database and the weberserver with php (snmp extansion). It runs fine.

I edit cacti config.php :

Code: Select all

/* make sure these values refect your acual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

/* this should be auto-detected, set it manually if needed */
$config["cacti_server_os"] = "win32";

/* built-in snmp support */
$config["php_snmp_support"] = function_exists("snmpget");

/* used for includes */
$config["base_path"] = ereg_replace("(.*)[\/\\]include", "\\1", dirname(__FILE__));
$config["library_path"] = ereg_replace("(.*[\/\\])include", "\\1lib", dirname(__FILE__));
$config["include_path"] = dirname(__FILE__);

/* colors */
$colors["dark_outline"] = "454E53";...............
..................
$colors["form_alternate2"] = "E5E5E5";

if ((isset($no_http_headers) ? $no_http_headers : false) != true) {
	/* we don't want these pages cached */
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-store, no-cache, must-revalidate");
	header("Cache-Control: post-check=0, pre-check=0", false);
	header("Pragma: no-cache");
	
	/* initilize php session */
	session_start();
}
It seems ok. Then i create a generic snmp host. SNMP seems enabled :

Image

I create some graphs. THEY ARE ALL EMPTY !! I see the background of the image but no data (cpu, ram, interface : nothing).

I try to run manually php c:\www\cacti\cmd.php :

Image

How to check if cmd.php collects data ?? How to resolve this mess ? :(

(i can provide screenshots :lol: )
thx
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Can you show another screenshot of cmd.php running with more data? That is more than just traffic statistics (CPU, mem, HDD, etc).

Also what does that error read in English? It looks like "The specified file is unavailable" to me.

-Ian
doc_fc

Post by doc_fc »

ok it works now !
I added rights to all directory (cacti, tmp...) :-?

I see the traffic for my interface but host mib does not work. I can't grap cpu or memory...

When i create a data source for cpu , i have this debug :
Data Source Debug

c:/rrdtool/rrdtool.exe create \
C:\Apache2\htdocs\cacti/rra/ordi_cpu_11.rrd \
--step 300 \
DS:cpu:GAUGE:600:0:100 \
DS:cpu:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

When i cant to graph i have :
RRDTool Says:

ERROR: can't parse '#:CPU Utilization'

How to do ??!

thx
Guest

Post by Guest »

i try to graph disk space under xp

Here is my debug :

RRDTool Says:

ERROR: opening 'C:\Apache2\htdocs\cacti/rra/ordi_hdd_16.rrd': No such file or directory

I don't understand :(
doc_fc

Post by doc_fc »

Ok

Another try this day.
I created a new host.
I create graphs for Cpu / Io interface and hard drive.

Cpu graphs does not work. It says

RRDTool Says:

ERROR: opening 'C:\Apache2\htdocs\cacti/rra/pc1_cpu_35.rrd': No such file or directory


Here is my cmd


Image


I'm online.
If you want to help me, leave a reply ;)
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Not sure if you are still following this thread or not, but I think I know what the problem is.

Go to "Data Templates" and select "Host MIB - CPU Utilization". On this screen do you see more than one item for the "Data Source Item" box? It almost looks like you've got two identical 'cpu' items listed here. If so, go ahead and delete one and see if cmd.php is any happier about running.

If that still doesn't help, go into "Data Sources" and delete all data sources using the "Host MIB - CPU Utilization" template. Make sure you choose to delete all associated graphs as well when prompted. Now, go back into "New Graphs" and re-create your CPU graphs.

Let me know how this works.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest