Cacti on WinXP, rrd files not created

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

Moderators: Developers, Moderators

Post Reply
baynaa
Posts: 5
Joined: Thu Jan 19, 2006 11:28 pm

Cacti on WinXP, rrd files not created

Post by baynaa »

Hi all,
I am trying to install Cacti with:

cacti-0.8.6g
rrdtool-cygwin-1.2.12
php-4.3.11
mysql-4.1.16
cacti-cactid-0.8.6g

I have been trying to install Cacti on WinXP box about a week. I have followed instruction from Cacti web, and the guide under BSOD2600 signiture. But still can not get rrd files created for interface statistics. For CPU Usage graph, rrd files are created, but no data. Anyway, here is my poller log with CMD.PHP:

01/21/2006 12:59:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q C:/Inetpub/wwwroot/cacti/poller_export.php]
01/21/2006 12:59:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q C:/Inetpub/wwwroot/cacti/poller_commands.php]
01/21/2006 12:59:48 PM - SYSTEM STATS: Time:1.2931 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
01/21/2006 12:59:48 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
01/21/2006 12:59:47 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/inetpub/wwwroot/cacti/cmd.php 0 3]


AND with CACTID:

01/21/2006 01:08:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.exe, ARGS: 0 3]

I have run the commands manually, here are results:

> c:/php/php.exe -q c:/inetpub/wwwroot/cacti/cmd.php 0 3
(no output)

> c:/php/php.exe -q C:/Inetpub/wwwroot/cacti/poller_export.php
Content-type: text/html
X-Powered-By: PHP/4.3.11

> c:/php/php.exe -q C:/Inetpub/wwwroot/cacti/poller_commands.php
Content-type: text/html
X-Powered-By: PHP/4.3.11

> c:\cactid\cactid.exe 0 3
CACTID: MYSQL: COnnection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Please give me hints

Baynaa.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What happens when you manually run: php C:/Inetpub/wwwroot/cacti/poller.php ?
baynaa
Posts: 5
Joined: Thu Jan 19, 2006 11:28 pm

Post by baynaa »

Hi,
Here is the poller.php output:

C:\Documents and Settings\SNMPAdmin>php c:\Inetpub\wwwroot\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.11

01/23/2006 11:03:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/inetpub/wwwroot/cacti/cmd.php 0 3]
Waiting on 1/1 pollers.
01/23/2006 11:03:41 AM - SYSTEM STATS: Time:1.1995 Method:cmd.php Processes:1 Th
reads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
01/23/2006 11:03:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/Inetpub/wwwroot/cacti/poller_commands.php]
01/23/2006 11:03:41 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/Inetpub/wwwroot/cacti/poller_export.php]


Once a while command window pops up, it says:

"can not find module (None) at line 1 in (none)"

I think it has something to do with SNMP!!!

Baynaa.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

That error is fixed when you install the patches for cacti.

Second, do you have anything being polled? Any data sources?
baynaa
Posts: 5
Joined: Thu Jan 19, 2006 11:28 pm

Post by baynaa »

Thank you for your advice. I have applied the patches. But don't get RRDs for interface statistics.

Yes, I have data sources created, but the path for RRD file is empty. I have RRD file created for 5min CPU Usage.

Here is my poller.php output:

01/23/2006 06:10:26 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/Inetpub/wwwroot/cacti/poller_export.php]
01/23/2006 06:10:26 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/Inetpub/wwwroot/cacti/poller_commands.php]
01/23/2006 06:10:25 PM - SYSTEM STATS: Time:5.2718 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:3 RRDsProcessed:1
01/23/2006 06:10:25 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\inetpub\wwwroot\cacti\rra\host1_5min_cpu_20.rrd --template 5min_cpu 1138007421:U
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Time: 3.7155 s, Theads: N/A, Hosts: 2
01/23/2006 06:10:25 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=3>] DS[20 <data_sources.php?action=ds_edit&id=20>] SNMP: v1: 10.0.46.17, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=3>] DS[20 <data_sources.php?action=ds_edit&id=20>] WARNING: Result from SNMP not valid. Partial Result:
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=3>] RECACHE: Processing 1 items in the auto reindex cache for '10.0.46.17'.
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=3>] SNMP: Host responded to SNMP
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=3>] PING: Host is alive
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=2>] SNMP: Host did not respond to SNMP
01/23/2006 06:10:25 PM - CMDPHP: Poller[0] Host[<host.php?action=edit&id=2>] PING: Host is alive
01/23/2006 06:10:23 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/23/2006 06:10:23 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
01/23/2006 06:10:23 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\inetpub\wwwroot\cacti\script_server.php
01/23/2006 06:10:23 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/cacti
01/23/2006 06:10:23 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/cacti
01/23/2006 06:10:23 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
01/23/2006 06:10:20 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/inetpub/wwwroot/cacti/cmd.php 0 3]

Any idea?

Baynaa.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) the path for the rrd should not be blank. Should be something like <path_rra>/2400celeron_snmp_cpu_1.rrd

2) Did you notice in the log that the OID .1.3.6.1.4.1.9.2.1.58.0 is not valid? Correct it and you should get some data. use snmpwalk if you need.
baynaa
Posts: 5
Joined: Thu Jan 19, 2006 11:28 pm

Post by baynaa »

You were right, I am trying to monitor Eastern Research DNX-1U device, but i had been chosen the template for Cisco Router. I simply changed the template to "Generic SNMP Enabled host". Now i have data sources with RRD file path. But still RRD files are not created.

Output from poller.php says:
...
01/24/2006 03:13:29 PM - CMDPHP: Poller[0] Host[2] SNMP: Host did not respond to SNMP
01/24/2006 03:13:29 PM - CMDPHP: Poller[0] Host[2] PING: Host is alive
...

How can i change the OID values?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What data source are you using? If its a custom one, you should be able to go in and change the OID. If not, then you need to reindex the host. Click on the green circle in the Associated data query section.

You also need to fix that Host did not respond to SNMP problem. Make sure your firewall is not blocking outbound SNMP. Also make sure SNMP is properly set up on that device along with any ACLs, etc.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest