From 14a761343c732b5c836aedac8a13771447a2bf8d Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Tue, 10 May 2016 20:34:39 +0200 Subject: Tweak SNMP fetch tester --- build/test/nms-snmp-test.Dockerfile | 20 ++++++++++++++++++++ build/test/playbook-test.yml | 2 ++ build/test/snmpfetch-misc.sh | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 build/test/nms-snmp-test.Dockerfile create mode 100755 build/test/snmpfetch-misc.sh (limited to 'build/test') diff --git a/build/test/nms-snmp-test.Dockerfile b/build/test/nms-snmp-test.Dockerfile new file mode 100644 index 0000000..f7bb30e --- /dev/null +++ b/build/test/nms-snmp-test.Dockerfile @@ -0,0 +1,20 @@ +FROM debian:jessie +RUN apt-get update +RUN apt-get -y install \ + libdata-dumper-simple-perl \ + libdbd-pg-perl \ + libdbi-perl \ + libnet-oping-perl \ + libsocket-perl \ + libswitch-perl \ + libtimedate-perl \ + perl \ + libjson-xs-perl \ + libjson-perl \ + perl-base \ + snmpd \ + libsnmp-perl \ + perl-modules +RUN mkdir -p /opt/nms +COPY build/test/snmpd.conf /etc/snmp/ +CMD /opt/nms/build/test/snmpfetch-misc.sh diff --git a/build/test/playbook-test.yml b/build/test/playbook-test.yml index 0b5f84e..bd6e19f 100644 --- a/build/test/playbook-test.yml +++ b/build/test/playbook-test.yml @@ -11,6 +11,8 @@ links: [ "nms-front-test:nms-front" ] - name: "nms-collector-test" links: [ "nms-db-test:db" ] + - name: "nms-snmp-test" + links: [ "nms-db-test:db" ] - simple_urls: - "/api/public/switches" - "/api/public/switch-state" diff --git a/build/test/snmpfetch-misc.sh b/build/test/snmpfetch-misc.sh new file mode 100755 index 0000000..55c024d --- /dev/null +++ b/build/test/snmpfetch-misc.sh @@ -0,0 +1,3 @@ +#!/bin/bash +service snmpd start +exec /opt/nms/collectors/snmpfetchng.pl -- cgit v1.2.3