From a611aeff3cf50c3cdd56d76a66e7795df57b375e Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 11 Nov 2016 12:31:01 +0100 Subject: Move mibs into data directory and automatically fetch them --- build/test/gondul-snmp-test.Dockerfile | 1 + build/test/snmpfetch-misc.sh | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'build/test') diff --git a/build/test/gondul-snmp-test.Dockerfile b/build/test/gondul-snmp-test.Dockerfile index 3491831..9eb7065 100644 --- a/build/test/gondul-snmp-test.Dockerfile +++ b/build/test/gondul-snmp-test.Dockerfile @@ -15,6 +15,7 @@ RUN apt-get -y install \ snmpd \ libsnmp-perl \ perl-modules +RUN apt-get -y install wget tar RUN mkdir -p /opt/gondul COPY build/test/snmpd.conf /etc/snmp/ CMD /opt/gondul/build/test/snmpfetch-misc.sh diff --git a/build/test/snmpfetch-misc.sh b/build/test/snmpfetch-misc.sh index 95b005f..0453c59 100755 --- a/build/test/snmpfetch-misc.sh +++ b/build/test/snmpfetch-misc.sh @@ -1,3 +1,7 @@ #!/bin/bash service snmpd start +cd /opt/gondul/data +if [ ! -d mibs ]; then + ../extras/tools/get_mibs.sh +fi exec /opt/gondul/collectors/snmpfetchng.pl -- cgit v1.2.3