From: Makavy, E. \(Erez\) <ma...@av...> - 2007-02-28 09:12:40
|
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:kia...@ya...]=20 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)" <ma...@av...> wrote: > Problem: > ------------ > =20 > I'm getting net-snmp "Cannot find module" error whenever Net-SNMP is=20 > initialized. > =20 > 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=20 > 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=20 > (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=20 > (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module=20 > (HOST-RESOURCES-TYPES): At line 0 in (none) Cannot find module=20 > (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module=20 > (SNMP-MPD-MIB): At line 0 in > (none) > Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)=20 > Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) Cannot=20 > 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) >=20 > 2) It also happens when the master agent starts. > =20 > =20 > Analysis: > ------------ > The errors indicate that the MIB definition files are missing. > These files are used for OID translation, but I don't need OID=20 > translation, and I don't want these files on my system (taking CF=20 > space, in embedded system). > =20 > Questions: > ------------------- > how can I remove these error messages? > =20 > =20 > Thanks, > Erez. > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT Join=20 > SourceForge.net's Techsay panel and you'll get the chance to share=20 > your opinions on IT & business topics through brief surveys-and earn=20 > cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V> _______________________________________________ > Net-snmp-users mailing list > Net...@li... > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users >=20 =20 ________________________________________________________________________ ____________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |