I have written multiple Net-SNMP MIB modules that need that share a global structure between them.
The options I have thought of:
- Find a way to have 2 or more MIB modules use common code. (not sure if this is possible)
- Combine the MIB modules into one MIB module set up structure during init__MODULE function. (Is this bad practice it would be about 10 handlers in the module)
- Linux shared memory (not really looking to do this)
Other info: The MIB modules are being compiled into the master agent.