Help me! Problem with setup

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

Moderators: Developers, Moderators

Post Reply
M@r
Posts: 4
Joined: Wed Jul 21, 2004 7:08 pm

Help me! Problem with setup

Post by M@r »

Hi,
I new with Cacti, and I have installed it follow the instructions (Win2000), but I have a problem. The first time I try to run http://ip-server/cacti only can see the root apache directory :(
and when I run c:\php\php.exe c:\apache2\htdocs\cacti\cmd.php show me this:


C:\>c:\php\php.exe c:\apache2\htdocs\cacti\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.8

There are no items in your poller cache. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.
time: 2


Could somebody help me?

Thanks and sorry for mi poor english.
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

I guess the first question is.... Have you created a device and added at least 1 graph to it? If you have, did you clear the poller cache, if you did, did that change anything?

If you are unsure of how to create a device and add graphs, then I suggest you read the manual for cacti, and search these forums for further help.
Dave
M@r
Posts: 4
Joined: Wed Jul 21, 2004 7:08 pm

Post by M@r »

The problem is I don't know how add a device, because when I try to run http://localhost/cacti I only see the parent directory, but I can't see Cacti. I read how to add a device within Cacti, but I don't see that screen. Obviously I have a (big) mistake because I can't see Cacti :oops:
Any suggestion about how can fix this?
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

You must not have your web-server set to look for index.php files. Try manually going to http://localhost/cacti/index.php.

If that comes up with some sort of error, then I would double check that you have php installed and the plugins registered with your webserver.

If that still doesn't work, then post back with info about what happened, error messages, type / version of your webserver, OS, php, cacti etc.
Dave
M@r
Posts: 4
Joined: Wed Jul 21, 2004 7:08 pm

Post by M@r »

I really appreciate your help melchandra. :)
I tried your advices but still doesn't work. The message displayed say that the requested URL in /cacti/index.php was not found on the server.

I'm using:
Apache/2.0.50
Mysql 4.0.20a.
ActivePerl 5.8
PHP 4.3.8
RRDtool-1.0.40.x86
Cacti-0.8.5a
Win2000-SP4
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

Can you verify to location of the index.php file from the cacti installation? It is a static file - it's not created dynamically, it should be part of the install process. So it seems then that perhaps you webserver is not set up properly with the right mapping for the url -> physical location. Try this - create a simply index.html file and place it in the same directory as your cacti installation (the same directory as the index.php) - if you web-server can't read localhost/cacti/index.html - then you know you have your web-server misconfigured.
Dave
M@r
Posts: 4
Joined: Wed Jul 21, 2004 7:08 pm

Post by M@r »

Finally I had access for Cacti console (thanks melchandra), but now I have an error when I run C:\>c:\php\php.exe c:\apache2\htdocs\cacti\cmd.php:

"cat" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
Content-type: text/html
X-Powered-By: PHP/4.3.8

command: perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl MemFree:, output:

"cat" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
command: perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl SwapFree:, output:

"uptime" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
MULTI command: perl C:\Apache2\htdocs\cacti/scripts/loadavg_multi.pl, output: 1m in: 5min: 10min:
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value:
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value:
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value:
"who" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
command: perl C:\Apache2\htdocs\cacti/scripts/unix_users.pl, output:
"ps" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
command: perl C:\Apache2\htdocs\cacti/scripts/unix_processes.pl, output:
update c:\apache2\htdocs\cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U
update c:\apache2\htdocs\cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:U
update c:\apache2\htdocs\cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:::
update c:\apache2\htdocs\cacti/rra/localhost_users_6.rrd --template users N:U
update c:\apache2\htdocs\cacti/rra/localhost_proc_7.rrd --template proc N:U
time: 2

I need install something else or is an (another) configuration error? :(
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

You are running a linux script on a windows host. "cat", "who", and "ps" are all linux commands. Cacti comes with both linux and windows scripts. Go back, and delete all your localhost device, re-add it with the host template of "Windows Server"
Dave
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests