
Frank Strauss writes:
Marcin> 2. I have added /usr/local/share/snmp/mibs/ to $mibdir, to Marcin> include MIBs from UCD-SNMP port.
Frank> I'd suggest *NOT* to do this, because many MIBs from the Frank> UCD-SNMP project are erroneous and can crash libsmi. Even many Frank> IETF standard modules are incorrect. We have put much work in Frank> cleaning up these errors in the MIBs that come along with Frank> libsmi. So it's better to keep them appart and copy only Frank> checked modules over to the mibs/site/ directory or another new Frank> directory.
Frank's statement is unfortunately true for the current UCD release. Many of the MIBs included with the current UCD distribution are simply broken. I have recently spend some time to fix the UCD MIBs and the next UCD release will be much better in this regard. (The changes are already in the CVS version.) But I am not sure I can keep an eye on the UCD MIBs in the future. (I hope that the UCD coders are able to take care of their MIBs themself now that things have been cleaned up - but there is guarantee that this will happen since their parser is very very liberal in what it accepts as input.)
The UCD folks install their MIBs using a ".txt" extension in the file name and this prevents libsmi from finding the MIB modules. (And since the .txt extension really makes no sense to us, we do not really like to check for the presense of ".txt" files in order to resolve IMPORTS.)
So for now, keeping things separate is really the best choice. I hope that things converge in the future - but we are not there yet.
/js