Error in installation or...?
Moderators: Developers, Moderators
Error in installation or...?
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
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
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 ?
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 ?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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.
You need to re-read the install instructions. You missed the part to create the MIBSDIR enviroment variable, hence all those SNMP module errors.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
Download the full install of PHP. It will contain the mibs directory plus the files that go in it.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Cacti User
- Posts: 63
- Joined: Mon Jul 04, 2005 10:12 am
- Location: Brazil
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:
3. Clear your poller cache.
Regards,
Georger
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";
Regards,
Georger
rony wrote:Well, the spaces in your directory names are a problem. Cacti doesn't like spaces.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yes, spaces are not supported in the current Windows build.
TheWitness
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?
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?
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
Toti
Who is online
Users browsing this forum: No registered users and 2 guests