I hope this is the correct place to address this.
I’ve been struggling with getting MIBs loaded in the correct order for use with the SNMP plugin (graylog-plugin-snmp). I saw the README file here which indicates:
Please keep in mind that some MIBs need to be loaded with a special order. To achieve this create numbered sub-directories in your MIB load path and place the files there in the right order. E.g. VMWare MIBs have to be loaded in this order:
VMWARE-ROOT-MIB.mib
VMWARE-TC-MIB.mib
VMWARE-PRODUCTS-MIB.mib
VMWARE-SYSTEM-MIB.mib
VMWARE-ENV-MIB.mib
VMWARE-RESOURCES-MIB.mib
VMWARE-VMINFO-MIB.mib
…
So you should create a directory structure like:/usr/share/mibs/1/VMWARE-ROOT-MIB.mib
/usr/share/mibs/2/VMWARE-TC-MIB.mib
/usr/share/mibs/3/VMWARE-PRODUCTS-MIB.mib
…
I have tried the procedure above, but found that the MIB files still didn’t load in the correct order. I think I’ve tracked down the issue to the listFiles method used in the SnmpMibsLoader.java file. I’ve found indication here that:
The listFiles method, with or without a filter does not guarantee any order.
How can I guarantee that my MIB files load in the correct order?