[solved] How to install cacti to Windows Server 2008 64bit
Moderators: Developers, Moderators
[solved] How to install cacti to Windows Server 2008 64bit
1. Is it possible to install cacti on Windows Server 2008 64 bit OS ? if yes, could u tell me which software version to be used and How to install it? And does Windows Server 2008 support the following things?
- cacti
- php
- rrd tool
- net-snmp
2. I'm using windown xp on PC with cacti installed , Can cacti monitor the Windows Server 2008 64 bit OS?
thank you in advance for your help.
- cacti
- php
- rrd tool
- net-snmp
2. I'm using windown xp on PC with cacti installed , Can cacti monitor the Windows Server 2008 64 bit OS?
thank you in advance for your help.
I'm currently attempting this on this using Server 2008 R2 Eval
Using latest Apache, MySQL and PHP 5.2.11 from the respective sites I've managed to get all three working together in simple tests (I'm a linux guy, so a Windows setup is new to me), however cacti will not load.
Checking apache's logs I see this when attempting to load cacti's index.php:
Parent: child process exited with status 255 -- Restarting.
Using latest Apache, MySQL and PHP 5.2.11 from the respective sites I've managed to get all three working together in simple tests (I'm a linux guy, so a Windows setup is new to me), however cacti will not load.
Checking apache's logs I see this when attempting to load cacti's index.php:
Parent: child process exited with status 255 -- Restarting.
1) Yes, just follow the windows installation guide in my signature. For performance, you should use 64bit versions of the dependency software.
2) yes, install the windows snmp agent.
2) yes, install the windows snmp agent.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I'm at my wits end here (and 1am, I'm likely not thinking logically). Still getting a blank page when I try to load cacti. For sh*ts and giggles I dropped in PHP 5.3.0 and my apache crash issues went away, but still not cacti.
Error log:
Now I've learned from the other PHP 5.3 posts here that the deprecated errors are nothing to worry about (I think), but whats with the memory allocation error?
Error log:
Code: Select all
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 13 bytes) in C:\\htdocs\\cacti\\lib\\database.php on line 179
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 866
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 872
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 1183
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 1961
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 3027
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 3592
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 3667
[Thu Oct 15 01:01:57 2009] [error] [client 192.168.1.10] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\htdocs\\cacti\\lib\\adodb\\adodb.inc.php on line 3687
Ok, I cannot get cacti to run under IIS or Apache in Server 2008 R2.
Using IIS7.5/PHP5.2.11, IIS7.5/PHP5.3, Apache2.2.14/PHP5.2.11, and Apache2.2.14/PHP5.3, the results are always the same:
PHP5.2.11 crashes it's host HTTP server when cacti is configured. (IE, fresh cacti install, errors out because it cannot fine "default" database. Update config.php with correct details, and crashes occur.)
IIS Crash:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP via FastCGI
Error Code 0x000000ff
Requested URL http://localhost:80/cacti/index.php
Physical Path C:\htdocs\CHA\cacti\index.php
Logon Method Anonymous
Logon User Anonymous
Apache Crash:
Parent: child process exited with status 255 -- Restarting.
PHP 5.3 does not crash, however I am never able to get the Deprecated errors to go away, no matter what error reporting is chosen in php.ini. The deprecated errors show in place of anything else.
PHP and PHP<->MySQL work just fine as reported by phpinfo() under all circumstances, and phpmyadmin functions perfectly fine as well.
Using IIS7.5/PHP5.2.11, IIS7.5/PHP5.3, Apache2.2.14/PHP5.2.11, and Apache2.2.14/PHP5.3, the results are always the same:
PHP5.2.11 crashes it's host HTTP server when cacti is configured. (IE, fresh cacti install, errors out because it cannot fine "default" database. Update config.php with correct details, and crashes occur.)
IIS Crash:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP via FastCGI
Error Code 0x000000ff
Requested URL http://localhost:80/cacti/index.php
Physical Path C:\htdocs\CHA\cacti\index.php
Logon Method Anonymous
Logon User Anonymous
Apache Crash:
Parent: child process exited with status 255 -- Restarting.
PHP 5.3 does not crash, however I am never able to get the Deprecated errors to go away, no matter what error reporting is chosen in php.ini. The deprecated errors show in place of anything else.
PHP and PHP<->MySQL work just fine as reported by phpinfo() under all circumstances, and phpmyadmin functions perfectly fine as well.
Hmm, haven't explicitly tried with 2008, but I've done test installs on Vista with little/no problems. You will want to stick with PHP 5.2.x, since there have been various reports that PHP 5.3.x doesn't completely work with Cacti 0.8.7e.
You're also going to want to stick with a single web server, since bouncing back and forth between iis/apache is going to burn you out tracking down issue after issue. Apache will probably be easier to set up that IIS due to the FastCGI complications. I'd stop/disable all IIS related services and then to a reinstall of Apache -- make sure the cacti web root doesn't reside in a path with spaces.
PHP -v shows you have 5.2.11 installed? Also make sure you only have one copy of php.ini on your system.
You're also going to want to stick with a single web server, since bouncing back and forth between iis/apache is going to burn you out tracking down issue after issue. Apache will probably be easier to set up that IIS due to the FastCGI complications. I'd stop/disable all IIS related services and then to a reinstall of Apache -- make sure the cacti web root doesn't reside in a path with spaces.
PHP -v shows you have 5.2.11 installed? Also make sure you only have one copy of php.ini on your system.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I was using IIS since its also being used for WSUS, but its simple enough to get IIS to ignore port 80 (and the newest WSUS doesnt mind either).
But I'll see what I can do. Your right, I spend the better part of 6 hours trying to get it to work and right now I wont want to even look at the management console.
Also just a note. Vista and Sever 2008 use IIS version 7. Server 2008 R2 uses IIS version 7.5
Technically it isn't even released yet, yet MS whores out copies of it to anyone with MSDN, MSDNAA, or bizspark access.
But I'll see what I can do. Your right, I spend the better part of 6 hours trying to get it to work and right now I wont want to even look at the management console.
Also just a note. Vista and Sever 2008 use IIS version 7. Server 2008 R2 uses IIS version 7.5
Technically it isn't even released yet, yet MS whores out copies of it to anyone with MSDN, MSDNAA, or bizspark access.
Not really sure there are going to be giant configuration differences between 2008 and 2008 R2, but we'll see. I'm just started to download Windows Server 2008 R2 Standard Edition x64 from the Microsoft DreamSpark website. Guess I'll try to set it up tonight in VM and see how things go with my installer
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Ok, heres the full error readout for Apache 2.2.14 and php 5.2.11 when trying to access localhost/cacti. I havnt the faintest idea where to go from here.
[Fri Oct 16 20:40:00 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri Oct 16 20:40:05 2009] [notice] Apache/2.2.14 (Win32) PHP/5.2.11 configured -- resuming normal operations
[Fri Oct 16 20:40:05 2009] [notice] Server built: Sep 28 2009 22:41:08
[Fri Oct 16 20:40:05 2009] [notice] Parent: Created child process 4588
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Child process is running
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Acquired the start mutex.
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Starting 64 worker threads.
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Starting thread to listen on port 80.
[Fri Oct 16 20:40:00 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri Oct 16 20:40:05 2009] [notice] Apache/2.2.14 (Win32) PHP/5.2.11 configured -- resuming normal operations
[Fri Oct 16 20:40:05 2009] [notice] Server built: Sep 28 2009 22:41:08
[Fri Oct 16 20:40:05 2009] [notice] Parent: Created child process 4588
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Child process is running
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Acquired the start mutex.
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Starting 64 worker threads.
[Fri Oct 16 20:40:06 2009] [notice] Child 4588: Starting thread to listen on port 80.
Additional note:
Following your guide I didn't get any text on my graphs. Had to specify the default RRDtool one. (came with the 1.3 bin I got from their site).
Perhaps add that to the windows guide?
Edit:
I've run into a strange issue. Graphs are being rendered in the debug area, and if you click on an individual graph. But not on the main graph page.
Following your guide I didn't get any text on my graphs. Had to specify the default RRDtool one. (came with the 1.3 bin I got from their site).
Perhaps add that to the windows guide?
Edit:
I've run into a strange issue. Graphs are being rendered in the debug area, and if you click on an individual graph. But not on the main graph page.
As for the installer blocking 64bit, yea forgot I put that in there. Now that I've got a x64 build (yet to be installed), I can do some proper testing and then re-enable/fix 64bit mode.
Heh, some times it's the smallest things which can set us back ... like a database .
Anyways, I'd suggest sticking with rrdtool 1.2 for now, since IMO 1.3.x is buggy. Also, make sure you have the correct rrdtool version set in cacti's settings -- that is usually the cause of graphs only half rendering depending what page type you're looking at.
Heh, some times it's the smallest things which can set us back ... like a database .
Anyways, I'd suggest sticking with rrdtool 1.2 for now, since IMO 1.3.x is buggy. Also, make sure you have the correct rrdtool version set in cacti's settings -- that is usually the cause of graphs only half rendering depending what page type you're looking at.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Would you happen to have an estimated ETA for a 64bit installer release?BSOD2600 wrote:As for the installer blocking 64bit, yea forgot I put that in there. Now that I've got a x64 build (yet to be installed), I can do some proper testing and then re-enable/fix 64bit mode.
Heh, some times it's the smallest things which can set us back ... like a database .
Anyways, I'd suggest sticking with rrdtool 1.2 for now, since IMO 1.3.x is buggy. Also, make sure you have the correct rrdtool version set in cacti's settings -- that is usually the cause of graphs only half rendering depending what page type you're looking at.
Who is online
Users browsing this forum: No registered users and 3 guests