test snmp

This commit is contained in:
2018-11-08 22:46:54 +01:00
parent 42b1ecf73c
commit e43d0f2bfb
3 changed files with 25 additions and 0 deletions

9
snmpd/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
RUN apk add --no-cache net-snmp
RUN sed -i 's/^agentAddress.*/agentAddress udp:161/' /etc/snmp/snmpd.conf
CMD [ "/usr/sbin/snmpd -fD" ]