Windows Install Docs.. out of date?

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

Moderators: Developers, Moderators

Post Reply
jdmatl
Posts: 2
Joined: Sun Apr 25, 2004 9:34 am

Windows Install Docs.. out of date?

Post by jdmatl »

==PHP install == Taken from the Cacti Win install Docs===
Extract PHP to c:\ and rename the new directory to 'php'.
Copy the files in c:\php\dlls to c:\winnt\system32
Copy the file c:\php\php4ts.dll to c:\winnt\system32
Move all MIB files from c:\php\mibs to c:\usr\mibs
Create the directory c:\tmp
In the c:\php directory, rename the php.ini-dist file to php.ini, copy it to c:\winnt, and make the following changes to the file:
=======

Is this documentation totally out-of-date? From what I can tell the above is totally wrong with php 4.3.6

I have installed to Win2003 w/IIS6 and can find none of these directories. I used the .exe install version of Php 4.3.6.

The php.ini file is automatically put into the Windows directory

The part about changes to the php.ini file appear to be incorrect with php 4.3.6. no need to
";Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it."

I get the following error when opening my "local" host in cacti gui


Warning: exec(): Unable to fork [<DEFAULT> -O vt -c "public" -v 2c -t 1 127.0.0.1:161 .1.3.6.1.2.1.1.1.0] in C:\cacti\lib\snmp.php on line 66
SNMP error

what am I missing?

thanks
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

you are missing perl I think. But try deleting the pre-entered data sources for localhost because this is linux stuff...
jdmatl
Posts: 2
Joined: Sun Apr 25, 2004 9:34 am

Post by jdmatl »

dieter wrote:you are missing perl I think. But try deleting the pre-entered data sources for localhost because this is linux stuff...
Thanks, I have perl installed. The Windows docs don't mention to install Perl, but it is needed. By default, the "localhost" in Cacti gets linux templates applied to it. Changed those to Windows based. That error is what is a result of using Windows based templates for cacti's "localhost".
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

You do bring up a good point that should be addressed. Since the Unix and Windows versions of Cacti are already kept separate, there is no reason why I couldn't ship a different 'cacti.sql' file with each one. The only problem is that the default Windows monitoring in Cacti relies on SNMP, while the default Linux/Unix monitoring is able to use local scripts. I would hate to add a bunch of SNMP data sources to a default installation because it makes a number of assumptions about the state of the machine. It would be nice if we had some script that could be run reliably on a Windows machine that would gather some basic statistics. I think Perl and WMI have been combined in the past to provide some pretty sweet statistics. I will look into bundling something along these lines with the Windows version of Cacti.

-Ian
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

I think you would be better off simply not having any default devices or datasources in the installation. If I understand correctly, the only real difference at the moment between the Linux and Windows versions of Cacti is the inclusion of Cactid in the Linux distribution.

Maintaining two different databases/distributions would be added work that is relatively unproductive. If you simply leave out the default datasources, you would save a lot of trouble for yourself and for new windows users of cacti. (if you don't know a thing about unix, which is the majority of people, than error messages refering to "cat" are rather confusing)

At the same time, it wouldn't hurt to add a local windows host to the default templates for both unix and windows installations. The user is should be able to determine what system they are running on.

Mike
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

You are correct in that the two distributions of Cacti are almost identical. There are a few minor "tweaks" here and there, but nothing substantial.

I agree that removing all default data sources would make less work for the Windows users, but it would make more for the Unix users at the same time. Reasonably speaking, you are correct in that it is counter-productive to make the default data work on every platform. However there is something to be said about setting up a new installation of Cacti and being able to get some graphs out of the box without any knowledge of Cacti. Creating cross-platform scripts might be viable if I were to use PHP and create scripts that would work under multiple environments.

A local Windows host template is definitely overdue. The SNMP-based one is nice, but doesn't always work *out of the box*.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests