Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Don't Use Environ Variable MIBS=ALL

 
Post new topic   Reply to topic    Cacti Forum Index -> Announcements
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Nov 02, 2004 8:11 am    Post subject: Don't Use Environ Variable MIBS=ALL Reply with quote

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

PostPosted: Thu Nov 25, 2004 11:43 am    Post subject: Reply with quote

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

PostPosted: Thu Nov 25, 2004 1:57 pm    Post subject: Reply with quote

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

PostPosted: Thu Nov 25, 2004 3:28 pm    Post subject: Reply with quote

thanks, tomorrow morning I will try it.

bye
Back to top
rpingar
Cacti User


Joined: 07 Jun 2004
Posts: 76

PostPosted: Fri Nov 26, 2004 4:23 am    Post subject: Reply with quote

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

PostPosted: Fri Nov 26, 2004 6:22 am    Post subject: Reply with quote

MIBDIR"S"

TheWitness
Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Mon Jan 17, 2005 5:39 am    Post subject: Reply with quote

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

PostPosted: Mon Jan 17, 2005 9:32 am    Post subject: Reply with quote

Please post.

TheWitness
Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Sun Jan 30, 2005 11:14 pm    Post subject: Reply with quote

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

PostPosted: Sun Jan 30, 2005 11:52 pm    Post subject: Reply with quote

Right.
Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Sun Jan 30, 2005 11:52 pm    Post subject: Reply with quote

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

PostPosted: Thu Mar 30, 2006 9:34 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Announcements All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group