fix: install base SNMP MIBs in telegraf-snmp-unifi image #2

Merged
dresi merged 2 commits from feat/fix-telegraf-snmp-unifi-base-mibs into main 2026-06-11 14:03:11 +02:00
Showing only changes of commit 744ce48d6a - Show all commits

View File

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