Hi,

I don't have any MIB definition files anywhere on my system,
and the error message still appear.

1) Dave's solution of setting the environment variables MIBS to empty
does eliminate these error messages.
2) Dave wrote in his reply:
      ---------------------
         a)  Set the environment variable MIBS to be an empty string
         b) Re-compile the code, using the configure option
             --disable-mib-loading

           This second option will remove the MIB handling code from the
library, thus shrinking it slightly.
     ------------------------

Dave, what did you mean by "remove the MIB handling code"?
             (Do you mean the OID translation code?)
Cause of course I still want the master agent to support the mib-2 MIBs.

Thanks,
Erez.

-----Original Message-----
From: kian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 10:42 AM
To: Makavy, Erez (Erez)
Subject: Re: How to disable net-snmp "Cannot find module" errors

Hi
You should remove mibs that you don`t need.
These mibs are in /usr/local/share/snmp/mibs or /usr/share/snmp/mibs/
>From these paths remove mibs that you don`t need.
--- "Makavy, Erez (Erez)" <[EMAIL PROTECTED]> wrote:

> Problem:
> ------------
>  
> I'm getting net-snmp "Cannot find module" error whenever Net-SNMP is 
> initialized.
>  
> 1) For example, when I run php script (php compiled with net-snmp):
> >php phptest.php
> No log handling enabled - turning on stderr logging Cannot find module

> (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): 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-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 (IF-MIB): At line 0 in (none) Cannot find module 
> (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module 
> (HOST-RESOURCES-TYPES): 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 (NET-SNMP-EXTEND-MIB): At line 0 in (none) Cannot 
> find module (UCD-DLMOD-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)
> 
> 2) It also happens when the master agent starts.
>  
>  
> Analysis:
> ------------
> The errors indicate that the MIB definition files are missing.
> These files are used for OID translation, but I don't need OID 
> translation, and I don't want these files on my system (taking CF 
> space, in embedded system).
>  
> Questions:
> -------------------
> how can I remove these error messages?
>  
>  
> Thanks,
> Erez.
> >
------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to share 
> your opinions on IT & business topics through brief surveys-and earn 
> cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V>
_______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 



 
________________________________________________________________________
____________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to