diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-10 20:34:39 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-10 20:34:39 +0200 |
commit | 14a761343c732b5c836aedac8a13771447a2bf8d (patch) | |
tree | e7ebb84a86222d1075483e03c096d57f1c45b5e3 /build | |
parent | a762fcbc3a144fcd02352decdf0ab00677859fae (diff) |
Tweak SNMP fetch tester
Diffstat (limited to 'build')
-rw-r--r-- | build/test/nms-snmp-test.Dockerfile | 20 | ||||
-rw-r--r-- | build/test/playbook-test.yml | 2 | ||||
-rwxr-xr-x | build/test/snmpfetch-misc.sh | 3 |
3 files changed, 25 insertions, 0 deletions
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 |