From e43d0f2bfb88ca1182b949e1e6a0e638886b4b59 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 8 Nov 2018 22:46:54 +0100 Subject: [PATCH] test snmp --- snmpd/Dockerfile | 9 +++++++++ snmpd/README.md | 3 +++ snmpd/config.json | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 snmpd/Dockerfile create mode 100644 snmpd/README.md create mode 100644 snmpd/config.json diff --git a/snmpd/Dockerfile b/snmpd/Dockerfile new file mode 100644 index 0000000..e209f64 --- /dev/null +++ b/snmpd/Dockerfile @@ -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" ] diff --git a/snmpd/README.md b/snmpd/README.md new file mode 100644 index 0000000..51f36cb --- /dev/null +++ b/snmpd/README.md @@ -0,0 +1,3 @@ +## SNMP server + +[SNMP](https://en.wikipedia.org/wiki/Simple_Network_Management_Protocol) server for hass.io. diff --git a/snmpd/config.json b/snmpd/config.json new file mode 100644 index 0000000..6ee3169 --- /dev/null +++ b/snmpd/config.json @@ -0,0 +1,13 @@ +{ + "name": "SNMP", + "version": "0.1.0", + "slug": "snmpd", + "description": "SNMP server", + "startup": "before", + "boot": "auto", + "ports": { + "161/udp": 161 + }, + "options": {}, + "schema": {} +} \ No newline at end of file