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:
Jason Staack
2026-03-22 00:22:55 -05:00
parent 4c21539e40
commit 83f11cc739
19 changed files with 22538 additions and 1 deletions

View File

@@ -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,