From 744ce48d6a9067c3b207804a893736c80a0e28f9 Mon Sep 17 00:00:00 2001 From: dresi Date: Thu, 11 Jun 2026 11:17:21 +0200 Subject: [PATCH] fix: install base SNMP MIBs in telegraf-snmp-unifi image --- telegraf-snmp-unifi/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telegraf-snmp-unifi/Dockerfile b/telegraf-snmp-unifi/Dockerfile index a0f40fb..b955fbb 100644 --- a/telegraf-snmp-unifi/Dockerfile +++ b/telegraf-snmp-unifi/Dockerfile @@ -1,8 +1,12 @@ FROM telegraf:latest LABEL org.opencontainers.image.authors="dockerimage@dresi.wtf" -RUN wget -q -O /usr/share/snmp/mibs/UBNT-MIB \ +RUN apt-get update && \ + apt-get install -y snmp snmp-mibs-downloader && \ + download-mibs && \ + wget -q -O /usr/share/snmp/mibs/UBNT-MIB \ https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubnt/UBNT-MIB && \ wget -q -O /usr/share/snmp/mibs/UBNT-UniFi-MIB \ https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubnt/UBNT-UniFi-MIB && \ + rm -rf /var/lib/apt/lists/* && \ echo "mibs +ALL" >> /etc/snmp/snmp.conf