Windows All-In-One Installer [Cacti 1.2.24] [Updated 2023-03-09]

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

Moderators: Developers, Moderators

Post Reply
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

thanks for the fast answers!!

One small problem:

I tried to import a WMI script (Perl) and it does not work - then I tried to run it manually from the command line but I get only that: "perl is not recognized as an internal or external command"

Must I install perl??
jokerz
Posts: 13
Joined: Thu Oct 26, 2006 11:57 am

Post by jokerz »

Computer : Windows XP SP2
IIS 5.1
Installer used: cacti-0.8.6h.1.3.exe

When i go to http://localhost/cacti/

I get HTTP 403 error

You are not authorized to view this page

not really sure where to star looking for answers.

I ran Cacti-Security.zip from another post still nothing... any help?

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

Post by BSOD2600 »

ame: yes you need to install perl. Then you'll have to deal with user permission issues with WMI. Read the FAQ in my installation guide.



jokerz: sounds like you didnt follow the post-install instructions and configured IIS.
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

BSOD - you wrote in your install guide:

Add the cactiuser account that's going to be used. Assign the following rights:

Enable Account
Enable Remote

Which account do you mean with cactiuser? Is it the account which runs the scheduled task for cactid? Then in my case it is in the moment the local admin and this one has got full control over WMI, but I get these error messages in the cacti log:

10/27/2006 09:05:10 AM - CACTID: Poller[0] Host[2] ERROR: Empty result [localhost]: 'perl c:/Inetpub/wwwroot/cacti\scripts\lit_w32_os.pl localhost get MaxProcessMemorySize,TotalVirtualMemorySize, FreeVirtualMemory,TotalVisibleMemorySize,FreePhysicalMemory, SizeStoredInPagingFiles,FreeSpaceInPagingFiles'

So i tried to run it manually from the command line but there all is working - any ideas?

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

Post by BSOD2600 »

ame: Yes, add the account thats running the scheduled task, since thats the user windows will be impersonating when it runs things related to cacti.

jokerz: Look in your /cacti/docs/html/post-install.html
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

Hi BSOD,

I think you have misunderstood me....
If I want to collect the data over cactid I get the error message as described above. When I start the script manually over the command line everything is fine.

[b]It is the same user which runs cactid and the manual script over cmd.....!!![/b]

Any ideas???

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

Post by BSOD2600 »

Ah. Make sure you're using cactid 0.8.6i. Also, you'll need to edit the data input method and specify the FULL path to the perl.exe file (i.e. c:\perl\bin\perl.exe). The cactid needs the full path where as cmd.php does not.
jxjoaq
Posts: 1
Joined: Tue Nov 07, 2006 4:41 pm
Location: Rochester, NY

Username/.password

Post by jxjoaq »

I install cacti with the beta install got everything working . Can not login in with the default password admin/admin :D
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You didn't follow the installation instructions -- that is not the default login anymore.

Go re-read the post installation documentation or the last screen of the installer.
techguy
Posts: 8
Joined: Tue Nov 07, 2006 3:22 pm

poller.php opens in notepad

Post by techguy »

For some reason when the scheduled task for poller.php kicks off, it opens the file in notepad instead of executing.

Any thoughts or ideas on what is causing this? I assume it is an association but not sure how to remove an association or if I need to associate it to something else I am not sure what I would associate it to?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like your .php file extension is associated with notepad instead of PHP. Was this a previous system setting you had? Guess I'll add that to the next installer too.

Anyways to fix it, go to my computer | Tools | Folder options | File Types. Find the PHP extension and change it to open with c:\php\bin\php.exe
techguy
Posts: 8
Joined: Tue Nov 07, 2006 3:22 pm

Post by techguy »

I do apologize, I ended up fixing it last night and it all worked like a champ.

I have added perl and got some scripts working as well now. Lot to learn but things are coming along thinks to your installer.
techguy
Posts: 8
Joined: Tue Nov 07, 2006 3:22 pm

Post by techguy »

The last thing I am working on is getting plugin support working. I know it is not supported yet in the windows installer, so I am trying to figure it all out.

Like I said though, so far so good. Couldn't have done it without the windows installer because I simply dont have the patience to have installed everything and configured it all and got things working.

:-(
valentas
Posts: 2
Joined: Fri Nov 10, 2006 3:03 am

Polling problem

Post by valentas »

Hello,

Computer : Windows XP SP2
IIS 5.1
default install from cacti-0.8.6h.1.3.exe.

I have added two hosts: localhost and external one. I can ping it from command promt sucessfully. But status for both is still "unknown".

Here is log output with debug enabled:
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_item"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select id from host where disabled = '' order by id"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('path_webroot','c:/Inetpub/wwwroot/cacti')"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "truncate table poller_time"
11/10/2006 10:25:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/inetpub/wwwroot/cacti/cmd.php 0 5]
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from host where (disabled = '' and id >= 0 and id <= 5) ORDER by id"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT * from poller_item WHERE (host_id >= 0 and host_id <= 5) ORDER by host_id"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT count(*) from poller_item WHERE (action=2 AND (host_id >= 0 and host_id <= 5))"
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
11/10/2006 10:25:00 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())"
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('date',NOW())"
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
11/10/2006 10:25:01 AM - SYSTEM STATS: Time:1.0506 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:1.0506 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0')"
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "truncate table poller_output"
11/10/2006 10:25:01 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_command"

Polling is enabled, cmd.php, only ICMP ping, because I don't need SNMP.
Even if I try to run poller.php by hand, I don't see ping results, only:

11/10/2006 10:28:49 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/inetpub/wwwroot/cacti/cmd.php 0 5]
11/10/2006 10:28:50 AM - SYSTEM STATS: Time:1.0599 Method:cmd.php Processes:1 Th
reads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0

Can somebody point me to right place, what is wrong?

Thank you,
Valentas
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

DataSources:0
This is your problem.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests