No Graph

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

Moderators: Developers, Moderators

matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

i also get status "unknown"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Until you get your php issues resolved, don't expect Cacti to function.

Where is your PHPRC system variable pointing to? What about the MIBDIRS system variable?

Please re-read my install guide: http://bsod2600.home.comcast.net/install_windows.html
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

BSOD2600 wrote:Until you get your php issues resolved, don't expect Cacti to function.

Where is your PHPRC system variable pointing to? What about the MIBDIRS system variable?

Please re-read my install guide: http://bsod2600.home.comcast.net/install_windows.html
there is varible name and vaule. Now where do i put

MIBDIRS=c:\php\extras\mibs and PHPRC=c:\php. into value or varible? like varible PHPRC and value is c:\php?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Looks like those two are properly set then.

So when you're at c:\php and type: php -m you get that access error? Try installing php 5.2.0. Also try running a chkdsk c: /f.
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

BSOD2600 wrote:Looks like those two are properly set then.

So when you're at c:\php and type: php -m you get that access error? Try installing php 5.2.0. Also try running a chkdsk c: /f.
chkdsk i got invalid paremeter. and php 5.2.0 and still no grahp!!! damn, this takes 5 days already to figure this thing out. geeezz!!! lol.
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

anyone help me!!! I still have no graph and still having unknown issue. I reinstall xamp to c:/
mshember
Posts: 44
Joined: Wed Jan 03, 2007 6:41 pm

Post by mshember »

I would stop using cactid until you get php sorted out.

From looking at your previous messages, did you make the env entries and assign .php?
[size=75][color=green]| Cacti [/color][color=red]0.8.6j[/color] [color=green]| Cactid 8.6i |
| MySQL 5.0 | PHP 5.2.0 | IIS 6 | RRDtool 1.2.15 | Cygwin 1.5.23 | Zend Optimizer 3.2.2 | Net-SNMP 5.3.1 |
| Windows 2003 Std SP1 | P4 2000Mhz | 2 gig RAM|[/color][/size]
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

mshember wrote:I would stop using cactid until you get php sorted out.

From looking at your previous messages, did you make the env entries and assign .php?
i did put php to c:\ root folder and new installations also.

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="cacti -" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="C\:/cacti/rra/cacti_snmp_oid_20.rrd":snmp_oid:AVERAGE \
AREA:a#F5F800:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

ERROR: opening 'C:/cacti/rra/cacti_snmp_oid_20.rrd': No such file or directory
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

is this the cause of the problem?;

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="cacti - Logged in Users" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="users" \
--slope-mode \
DEF:a="C\:/cacti/rra/tim_users_8.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"

RRDTool Says:

ERROR: opening 'C:/cacti/rra/tim_users_8.rrd': No such file or directory

DEF:a="C\:/cacti/rra/tim_users_8.rrd":users:AVERAGE \
Is that the path or slash causing it?
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

also i ran c:\php\php.exe c:\cacti\poller.php and here is the result. The poller keep waiting on 1/1. why is that?


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\php

C:\php>c:\php\php.exe c:\cacti\poller.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'sockets' already loaded in Unknown on line 0
01/30/2007 11:05:36 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 3]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
^C
C:\php>
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

and here is the result of cmd.php;

C:\cacti>c:\php\php.exe c:\cacti\cmd.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'sockets' already loaded in Unknown on line 0

01/30/2007 11:48:19 AM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must b
e started using the full path to the file and in lower case. This is a PHP Bug!
!!

C:\cacti>
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

01/30/2007 12:26:04 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/30/2007 12:26:04 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/30/2007 12:26:04 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/30/2007 12:26:04 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='guest'"
01/30/2007 12:26:04 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/30/2007 12:25:03 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/30/2007 12:25:03 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/30/2007 12:25:03 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/30/2007 12:25:03 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='guest'"
01/30/2007 12:25:03 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/30/2007 12:25:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/30/2007 12:25:02 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/30/2007 12:25:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/30/2007 12:25:02 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='guest'"
01/30/2007 12:25:02 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/30/2007 12:25:00 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="cacti - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="users" --slope-mode DEF:a="C\:/cacti/rra/tim_users_8.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"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please stop using xammp and use php and mysql. Remove all instances of php.ini from your system (search!). Remove cacti and all instances of mysql (assuming you don't have any other DB's set up).

Then try this installer: http://forums.cacti.net/viewtopic.php?t=14946
mshember
Posts: 44
Joined: Wed Jan 03, 2007 6:41 pm

Post by mshember »

BSOD replied first but I was going to suggest starting over again as well.

Don't introduce things until your basic structure is in place.
[size=75][color=green]| Cacti [/color][color=red]0.8.6j[/color] [color=green]| Cactid 8.6i |
| MySQL 5.0 | PHP 5.2.0 | IIS 6 | RRDtool 1.2.15 | Cygwin 1.5.23 | Zend Optimizer 3.2.2 | Net-SNMP 5.3.1 |
| Windows 2003 Std SP1 | P4 2000Mhz | 2 gig RAM|[/color][/size]
matrix4583
Posts: 35
Joined: Sat Jan 27, 2007 9:14 pm

Post by matrix4583 »

sigh.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests