fix(snmp): ship MIB parser binary in API container with pre-loaded MIBs
- Build tod-mib-parser in both poller and API Dockerfiles - Bundle 16 standard MIBs (IF-MIB, HOST-RESOURCES, SNMPv2, etc.) - Pass --search-path /app/mibs to parser so dependencies resolve - Users no longer need to upload standard MIBs manually Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -367,7 +367,7 @@ async def parse_mib(
|
||||
# Call the MIB parser binary
|
||||
try:
|
||||
result = subprocess.run(
|
||||
[MIB_PARSER_BINARY, tmp_path],
|
||||
[MIB_PARSER_BINARY, tmp_path, "--search-path", "/app/mibs"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=30,
|
||||
|
||||
Reference in New Issue
Block a user