Compare commits

...

3 Commits

Author SHA1 Message Date
ad47824a4a Merge pull request 'fix: install base SNMP MIBs in telegraf-snmp-unifi image' (#2) from feat/fix-telegraf-snmp-unifi-base-mibs into main
All checks were successful
Build and push telegraf-snmp-unifi image / build-and-push-image (push) Successful in 1m59s
Reviewed-on: #2
2026-06-11 14:03:10 +02:00
dresi
75cb5100f8 fix: download base SNMP MIBs directly instead of using snmp-mibs-downloader
All checks were successful
Build and push telegraf-snmp-unifi image / build-and-push-image (push) Successful in 2m2s
2026-06-11 11:32:50 +02:00
dresi
744ce48d6a fix: install base SNMP MIBs in telegraf-snmp-unifi image
Some checks failed
Build and push telegraf-snmp-unifi image / build-and-push-image (push) Failing after 1m32s
2026-06-11 11:17:21 +02:00

View File

@ -1,8 +1,18 @@
FROM telegraf:latest
LABEL org.opencontainers.image.authors="dockerimage@dresi.wtf"
RUN wget -q -O /usr/share/snmp/mibs/UBNT-MIB \
RUN cd /usr/share/snmp/mibs && \
wget -q https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-TC.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-CONF.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-MIB.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/RFC1213-MIB.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/HCNUM-TC.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/HOST-RESOURCES-MIB.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/IF-MIB.txt \
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMP-FRAMEWORK-MIB.txt && \
wget -q -O UBNT-MIB \
https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubnt/UBNT-MIB && \
wget -q -O /usr/share/snmp/mibs/UBNT-UniFi-MIB \
wget -q -O UBNT-UniFi-MIB \
https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubnt/UBNT-UniFi-MIB && \
echo "mibs +ALL" >> /etc/snmp/snmp.conf