Problems installing Cacti [split]

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

Moderators: Developers, Moderators

ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

sir, i have a question regarding the Windows Guide:

1) I think it should be clarified that Windows IIS 6 is only on Windows 2003. IIS 4 higher is for Windows XP.]

2) I'm using Windows XP SP1, I tried adding the comment of old-password in the mysql.ini. but when i tried to restart the mysql service, it failed. what gives?

3) when i pointed to the localhost/cacti it also failed (might be caused by the old-passwords)

I've followed the instructions perfectly up until the old-passwords. i also chose the most current versions for each of the required components of cacti. thanks for your time!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) In some regards, IMHO the user who plans on installing Cacti, should already know the version of IIS they run on their system. For reference:
NT4 - IIS4
Win2K - IIS5
WinXP - IIS5.1
Win2K3 - IIS6

2) What was the error? Did you have mysql service stopped first?

3) Possibly because you have IIS misconfigured or a firewall is blocking local web traffic. Do other webpages on your host work?
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

thanks for the reply. i think i'm nearing in getting this done. in the section configure the webserver IIS, the default .php setting in there is php.exe, but the guide says that it has to be changed to php4isapi.dll. when i try going to http://localhost/cacti, i get an error 500, but when i try to put it back on php.exe, i now get a cgi error telling me "The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"

thanks for your time!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I split off your problem into a new topic, since it's veering away from the topic of the sticky.

Yes, that is correct you're suppose to assign the .php extension to php4isapi.dl. As for your error, have you read How to troubleshoot an "HTTP 500 - Internal Server Error" error message ?

At the command prompt, type: php -m and paste the output.
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

Image

also, why is my php in my isapi filters down? is there anyway to up this? thanks for your time!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try running a chkdsk c: /f, and see if that fixes the problem.

Look in the Event logs for any errors why iaspi isnt loading.
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

sir, i finally did it. i managed to view the page, but i have this error on top of my webpage:

Warning: exec() [function.exec]: Unable to fork [c:/rrdtool/rrdtool.exe] in c:\Inetpub\wwwroot\cacti\install\index.php on line 264

and when i try to create a device (localhost)

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 5 1:161:500:public:::MD5::[None] index] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 5 1:161:500:public:::MD5::[None] query index] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 5 1:161:500:public:::MD5::[None] query description] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 5 1:161:500:public:::MD5::[None] query sau] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php localhost 5 1:161:500:public:::MD5::[None] index] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php localhost 5 1:161:500:public:::MD5::[None] query index] in c:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cacti\lib\functions.php:1161) in c:\Inetpub\wwwroot\cacti\host.php on line 151

what does this mean? (i'm sorry, im not really proficient in iis or web, im more of a cisco/winserver) i'm near completion... thanks again!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

That means the NTFS security was not applied correctly. Please re-read my windows install guide regarding file security settings. Look at cmd.exe and rrdtool.exe first.
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

Operating System: Windows XP sp2
Webserver: IIS 5
Cacti: 0.8.6.h
Cactid: 0.8.6.g
MySQL: 5.0.24
PHP: 5.1.6
RRDTool (CYGWIN version): 1.2.15
Net-SNMP: 5.3.1.1
Cygwin (cygwin1.dll version): didn't use it

Sir, thanks for the help. I've managed to let the webpage appear. my problem now is i can't seem to see any graphs in my cacti. I've followed the instructions from number 5 and 6 of your Read Me Before posting and this is what I got:

5) the log didn't have anything on it! is my cacti running?

6) well here's the error
Image
thanks for your time!
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

also sir, why is my localhost down? i've installed the snmp in the windows cd by the way :oops:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please read the troobleshooting section of my guide.

Looks like you've used a custom OID to poll? Doesn't look like it's valid. Look in the cacti log file with debugging to see why.
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

Sir, first of all thanks for all the help, i've formatted and installed all of the necessary apps and finally got the graph on display. my problem lies in Troubleshooting part 1 of the Windows Install Guide
If you're not getting any graphs or rrd files created, it's possibly because Cacti is not collecting valid data. You must wait at least two polling cycles for data to show up in a graph. To check if Cacti is collecting valid data from your device in question, do the following:

1. Turn the Poller Logging Level in Cacti to debug (Settings | Polling level) for one cycle, wait for Cacti to run
2. This is an example of a successful SNMP query:

CMDPHP: Poller[0] Host[2] DS[18] SNMP: v1: 192.168.100.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 322328722

CMDPHP: Poller[0] Host[2] DS[18] SNMP: v1: 192.168.100.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 426701050
but in my log file i got this:
CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='logging_header'"
please tell me how to fix this, i know i'm nearing the solution, i'm checking the local interface by the way. thanks for your time!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Thats all you see in your cacti log file??

Change the logging level to debug, wait for a polling cycle, and check the log again.

You have fully patched cacti, right?
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

nope, but i'm installing cygwin right now. i didn't install all those labeled optional in the guide (though i did install net-snmp). also all of my graphs are NaN. I tried doing this:
If the output was NaN, then Cacti did not collect any data. This is where either the Net-SNMP tools or GetIF comes in handy for testing SNMP.

1. Test if you're able to retrieve SNMP data manually using the OID Cacti failed on. You might need to remove the last number from the OID when doing this. For example, in the case of retrieving interface data, instead of using .1.3.6.1.2.1.2.2.1.10.1 in the example above, you should snmpwalk .1.3.6.1.2.1.2.2.1. Using Net-SNMP snmpwalk, you would do:
C:\net-snmp\bin>snmpwalk -v 1 -c public 192.168.2.1 .1.3.6.1.2.1.2.2.1
and i got this:

Image

i also installed getif and i don't get whats its use. although i got a snmp oid of my local machine:

.iso.3.6.1.4.1.311.1.1.3.1.1

How do i fix Nan? Thanks for your time!
ShadowoftheDarkgod
Posts: 14
Joined: Thu Aug 24, 2006 1:41 am

Post by ShadowoftheDarkgod »

Sir, I've tried updating cacti using cygwin and removing the .dll from rrd but all it did was remove all the graphs from the graph view. also the guide said to add cygwin\bin to the path, but what should i name it? still having Nan problems. thanks for your time!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests