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
All checks were successful
Build and push telegraf-snmp-unifi image / build-and-push-image (push) Successful in 2m2s
This commit is contained in:
parent
744ce48d6a
commit
75cb5100f8
@ -1,12 +1,18 @@
|
|||||||
FROM telegraf:latest
|
FROM telegraf:latest
|
||||||
LABEL org.opencontainers.image.authors="dockerimage@dresi.wtf"
|
LABEL org.opencontainers.image.authors="dockerimage@dresi.wtf"
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN cd /usr/share/snmp/mibs && \
|
||||||
apt-get install -y snmp snmp-mibs-downloader && \
|
wget -q https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \
|
||||||
download-mibs && \
|
https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-TC.txt \
|
||||||
wget -q -O /usr/share/snmp/mibs/UBNT-MIB \
|
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 && \
|
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 && \
|
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
|
echo "mibs +ALL" >> /etc/snmp/snmp.conf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user