Add test for snmp v2 traps

This commit is contained in:
Mico Micic 2024-07-22 10:53:05 +02:00 committed by Olof Hagsand
parent 48a15a87f1
commit 7d70325125
2 changed files with 160 additions and 0 deletions

View file

@ -150,6 +150,8 @@ RUN echo "agentaddress 127.0.0.1" >> /etc/snmp/snmpd.conf
RUN echo "rwcommunity public localhost" >> /etc/snmp/snmpd.conf
RUN echo "agentxsocket unix:/var/run/snmp.sock" >> /etc/snmp/snmpd.conf
RUN echo "agentxperms 777 777" >> /etc/snmp/snmpd.conf
RUN echo "trap2sink localhost public 162" >> /etc/snmp/snmpd.conf
RUN echo "disableAuthorization yes" >> /etc/snmp/snmptrapd.conf
# Dont need to expose restconf ports for internal tests
#EXPOSE 80/tcp