|
|
| Author |
Message |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 02, 2004 8:11 am Post subject: Don't Use Environ Variable MIBS=ALL |
|
|
All,
The recommendation in the latest version of Cacti suggests that you utilize the MIBS=All System Environment variable. I had been having problems with this configuration for some time and found that this option causes problems with OID type resolution and also slows response time.
It will manefest itself by resolving sysDescr and ifIndex as Hex and not String. This will also cause problems with re-cache. Therefore, I am recommending that this envirnment variable be removed from systems utilizing is.
IMPORTANT NOTE: However, prior to implementing this change, download the latest pre-patches for 0.8.6b if you are running that version and implement those patches prior to removing the environment variable.
The pre-patched version can be found at:
http://www.cacti.net/downloads/patches/0.8.6b
We will update installation documentation as time permits. I appologize for this inconvenience.
Regards,
Larry Adams (TheWitness)
Last edited by TheWitness on Tue Apr 26, 2005 8:59 pm; edited 2 times in total |
|
| Back to top |
|
 |
rpingar Cacti User
Joined: 07 Jun 2004 Posts: 76
|
Posted: Thu Nov 25, 2004 11:43 am Post subject: |
|
|
I pre-patched 0.86b and tehn I cancelled from my variables MIBS=ALL
but now during the poll porcess I get this:
Microsoft Windows XP [Versione 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\administrator>c:\php\php.exe c:\apache2\apache2\htdocs
\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)
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)
What can i do to load those modules?
Thnaks |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Thu Nov 25, 2004 1:57 pm Post subject: |
|
|
Please define the variable MIBDIRS in you system to point to the Mibs directory. In the original documentation, I had mistyped it as MIB"S"DIR, which is incorrect.
TheWitness |
|
| Back to top |
|
 |
rpingar Cacti User
Joined: 07 Jun 2004 Posts: 76
|
Posted: Thu Nov 25, 2004 3:28 pm Post subject: |
|
|
thanks, tomorrow morning I will try it.
bye |
|
| Back to top |
|
 |
rpingar Cacti User
Joined: 07 Jun 2004 Posts: 76
|
Posted: Fri Nov 26, 2004 4:23 am Post subject: |
|
|
I corrected the MIBDIR variable but the php errors are still there.
 |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Fri Nov 26, 2004 6:22 am Post subject: |
|
|
MIBDIR"S"
TheWitness |
|
| Back to top |
|
 |
Brashquido Cacti User
Joined: 28 Feb 2004 Posts: 99 Location: Melbourne, Australia
|
Posted: Mon Jan 17, 2005 5:39 am Post subject: |
|
|
| Is this warning still in place for 0.8.6c? Reason I ask is if I remove MIBS=ALL I get error messages that a few modules can not be found when executing cactid. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Mon Jan 17, 2005 9:32 am Post subject: |
|
|
Please post.
TheWitness |
|
| Back to top |
|
 |
Brashquido Cacti User
Joined: 28 Feb 2004 Posts: 99 Location: Melbourne, Australia
|
Posted: Sun Jan 30, 2005 11:14 pm Post subject: |
|
|
| Quote: |
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none) |
Both of these MIBS live in D:\net-snmp\share\snmp\mibs. I assume that I should just change MIBDIRS to look like "C:\php4\php\mibs;D:\net-snmp\share\snmp\mibs" to include both of these MIBS both of these mibs? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Sun Jan 30, 2005 11:52 pm Post subject: |
|
|
| Right. |
|
| Back to top |
|
 |
Brashquido Cacti User
Joined: 28 Feb 2004 Posts: 99 Location: Melbourne, Australia
|
Posted: Sun Jan 30, 2005 11:52 pm Post subject: |
|
|
| Or maybe not, as it seems there are identically named MIBS in the PHP and NET-SNMP MIB repositories. They all have different file sizes as well, so should I just copy these two NET-SNMP MIBs mentioned above into my PHP MIB directory to try and aviod any conflicts? |
|
| Back to top |
|
 |
Mehuge
Joined: 23 Feb 2006 Posts: 4
|
Posted: Thu Mar 30, 2006 9:34 am Post subject: |
|
|
| rpingar wrote: | C:\Documents and Settings\administrator>c:\php\php.exe c:\apache2\apache2\htdocs
\cacti\poller.php
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
....
What can i do to load those modules?
Thnaks |
I had this problem, and to fix it I did:-
set MIBDIRS=C:\php\mibs
c:\php\php.exe c:\apache2\apache2\htdocs\cacti\poller.php |
|
| Back to top |
|
 |
|