Deploy snmp environment in docker
滿天的星座
滿天的星座 2017-06-29 10:08:56
0
2
2120

Has anyone deployed an SNMP environment in docker?
Currently, I have deployed the SNMP environment in docker based on Ubuntu, but when I test it locally with mib browser, I always get an error.

Attach the docker image I deployed
docker pull registry.cn-hangzhou.aliyuncs.com/lovekun/ubuntu-16.04:2.0.1

This image has only compiled SNMP, but has not configured snmpd. There is no problem in executing snmpget, snmpwalk and other commands in docker, but the snmp information in docker is requested on this machine.

My approach is as follows:

  1. First run the container based on the above:

  2. run -it -p 161:161/udp registry.cn-hangzhou.aliyuncs.com/lovekun/ubuntu-16.04:2.0.1 /bin/bash

  3. Follow the instructions for configuring snmpd given in the official documentation (http://www.net-snmp.org/wiki/...Configure snmpd.

  4. Start snmpd: /usr/local/sbin/snmpd start

But after starting, no information is output.

Check the port and there is no problem:

On this machine, check the port and find that port 161 is not in the listening state.

I would like to ask if anyone has done this before and can provide guidance on which step went wrong.

滿天的星座
滿天的星座

reply all(2)
? 拖沓天王

You can take a look at the needhub platform, which can be deployed with one click, which is more convenient. I deployed mysql and tomcat last time. I don’t know if this is available. You can take a look. This website is quite convenient.

Ty80

Thank you for the invitation. I don’t have any detailed information about using snmp, but your visual assessment is that the principle of docker is not clear, and the binding port problem, because docker running version 1.x on windows requires vbox to run on a linux kernel. On the virtual machine, the new docker version also has two operating modes. If you use DockerToolBox, docker-machine will create a virtual machine. You can use docker-machine ip default to check the network. I think you are wrong because Host means that your win host and docker host are not within the same network.

The above is to check your docker network and windows host network.

$ip addr

If you want to visit, you can add ip:port.

I believe that most users who use docker under windows install DockerTool, so you can only regard the docker running environment as a new vm host

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template