Error in installation or...?

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

Moderators: Developers, Moderators

Post Reply
toti
Posts: 6
Joined: Wed Jul 20, 2005 7:49 am

Error in installation or...?

Post by toti »

Hi all.

I'm new to this Cacti thing and all the other software that is required to run Cacti.
After having installed the software and beeing able to log in to Cacti and create Data Sources and Devices no graphs are produced.

When I tried to run the poller.php script from a command window I get the following error:

C:\Program Files\Apache Group\Apache2\htdocs\cacti>php 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)



Can anyone tell me where I'm going wrong in the installation or is this normal when run from a command window. I have checked call Path parameters and they are all right (at least it seems so)

I'm running the follwing versions of the software:

Apache 2.0.54
Cacti 0.8.6f
MySQL 4.1.12a
Net-SNMP 5.2.1-1
RRDTool 1.2.4

Thanks in advance,
Toti
toti
Posts: 6
Joined: Wed Jul 20, 2005 7:49 am

Post by toti »

When I check my Datasource and turn on Debug I get this message

c:\rrdtool\rrdtool.exe create \
C:\Program Files\Apache Group\Apache2\htdocs\cacti/rra/C:\Program Files\Apache Group\Apache2\htdocs\cacti\rra\cisco_mijaa_5min_cpu_8.rrd \
--step 300 \
DS:5min_cpu:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

Isn't there something wrong with the path in this ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, the spaces in your directory names are a problem. Cacti doesn't like spaces. :(
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
toti
Posts: 6
Joined: Wed Jul 20, 2005 7:49 am

Post by toti »

What about the / in the paht, is that normal running under Win32?

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

Post by BSOD2600 »

The direction of the slashes does not matter for Cacti.

You need to re-read the install instructions. You missed the part to create the MIBSDIR enviroment variable, hence all those SNMP module errors.
toti
Posts: 6
Joined: Wed Jul 20, 2005 7:49 am

Post by toti »

The MIBDIRS system variable is in place and pointing to c:\php\mibs. How ever - shoud I change that to directory that points to net-snmp instead where as I'm using net-snmp. There is no mibs directory under c:\php. As I said earlier I'm new to this stuff but eager to learn. Any suggestions.

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

Post by BSOD2600 »

So you have the MIBSDIR pointing to c:\php\mibs when that folder does not exist? Do you think that makes any sense to do that?

Download the full install of PHP. It will contain the mibs directory plus the files that go in it.
georger_br
Cacti User
Posts: 63
Joined: Mon Jul 04, 2005 10:12 am
Location: Brazil

Post by georger_br »

Here's how I solved this issue:

1. Add a blank line after line 58 of include/config.php
2. Hardcode $config["base_path"] with DOS 8.3 directory names and forward slashes:

Code: Select all

$config["base_path"] = "c:/progra~1/apache~1/apache/htdocs/cacti";
3. Clear your poller cache.

Regards,

Georger
rony wrote:Well, the spaces in your directory names are a problem. Cacti doesn't like spaces. :(
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, spaces are not supported in the current Windows build.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
toti
Posts: 6
Joined: Wed Jul 20, 2005 7:49 am

Post by toti »

Hi all. The problem is solved. Moved the Apache directory to c:\Apache and hence got rid of the spaces. Changed the MIBSDIR system parameter to c:\net-snmp\share\snmp\mibs. Changed the Default RRDTool Font Paht ins Settings to c:\rrdtool\cour.ttf (courier font). These changes made did the trick. Everything is working as expected now. Thanks all for your input.

Toti
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest