Problems when I use PHP4 and PHP5.

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

Moderators: Developers, Moderators

Post Reply
arjen@arkois.nl
Posts: 5
Joined: Wed Aug 17, 2005 6:34 am
Contact:

Problems when I use PHP4 and PHP5.

Post by arjen@arkois.nl »

I don't get Cacti working.

I use:
Windows 2003
IIS 6
MySQL 4.1
Microsoft SNMP service
PHP4 and PHP5.

My PHP installations is a special installation.
c:\php4\ -> c:\windows\php-isapi.ini
c:\php5\ -> c:\windows\php-cgi-fcgi.ini

When I try to start poller from commandline I get this:

PHP4:
Environment variables:
PHPRC=c:\php4
MIBDIRS=C:\php4\mibs
C:\>C:\PHP4\php.exe C:\websites\arkois.nl\wwwroot\cacti\poller.php
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
OK u:0.00 s:0.06 r:0.94
Content-type: text/html
X-Powered-By: PHP/4.4.0

08/17/2005 01:46:03 PM - SYSTEM STATS: Time: 1.0415 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 2, RRDs Processed 1
When using PHP5:
PHPRC=c:\php5
MIBDIRS=C:\php5\extras\mibs
C:\>C:\PHP5\php-cgi.exe C:\websites\arkois.nl\wwwroot\cacti\poller.php
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
OK u:0.01 s:0.06 r:0.94
Content-type: text/html
X-Powered-By: PHP/5.0.4

08/17/2005 01:50:23 PM - SYSTEM STATS: Time: 1.0807 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 2, RRDs Processed 1
Please help me :roll:
arjen@arkois.nl
Posts: 5
Joined: Wed Aug 17, 2005 6:34 am
Contact:

Post by arjen@arkois.nl »

I'm sorry my first problem has been solved.

I loaded the wrong extensions in PHP5:
extension=php_shmop.dll
;extension=php_snmp.dll

Was my old, now I changed to:
extension=php_shmop.dll
;extension=php_snmp.dll
C:\>C:\PHP5\php-cgi.exe C:\websites\arkois.nl\wwwroot\cacti\poller.php
OK u:0.01 s:0.05 r:0.93
OK u:0.01 s:0.05 r:0.93
OK u:0.01 s:0.05 r:0.94
OK u:0.01 s:0.05 r:0.94
OK u:0.01 s:0.05 r:0.95
OK u:0.01 s:0.05 r:0.95
Content-type: text/html
X-Powered-By: PHP/5.0.4

08/17/2005 02:05:45 PM - SYSTEM STATS: Time: 1.0561 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 4, RRDs Processed 3
But when I try to vieuw graps I don't see anything :(
arjen@arkois.nl
Posts: 5
Joined: Wed Aug 17, 2005 6:34 am
Contact:

Post by arjen@arkois.nl »

When I turn on debug mode, I get this errors:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="127.0.0.1 - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="users" --slope-mode DEF:a="c\:\websites\arkois.nl\wwwroot\cacti/rra/127_0_0_1_users_11.rrd":users:AVERAGE AREA:a#4668E4:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf" 2>&1,rb): No error in c:\websites\arkois.nl\wwwroot\cacti\lib\rrd.php on line 89

Warning: fgets(): supplied argument is not a valid stream resource in c:\websites\arkois.nl\wwwroot\cacti\lib\rrd.php on line 112
arjen@arkois.nl
Posts: 5
Joined: Wed Aug 17, 2005 6:34 am
Contact:

Post by arjen@arkois.nl »

Ok, after trying and trying I get it finaly working.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests