Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP exporter config generator docker container #120

Closed
ninoabbate opened this issue Feb 14, 2017 · 8 comments
Closed

SNMP exporter config generator docker container #120

ninoabbate opened this issue Feb 14, 2017 · 8 comments

Comments

@ninoabbate
Copy link
Contributor

Hello all,
I built a docker container for the config generator, you can find it here: https://github.com/ninoabbate/docker-secg
Hope you will find it useful too.

@brian-brazil
Copy link
Contributor

Thanks for sharing. That depends on your local system, and doesn't include mibs so it's of limited use. I'm not sure what the legal status would be on including the mibs.

@ninoabbate
Copy link
Contributor Author

I've just realized that the A10 mibs couldn't be included, so I've removed them.
The container must be used only for generating the configuration, so it is a one time run only.

@ninoabbate
Copy link
Contributor Author

ninoabbate commented Feb 16, 2017

Ok, I've updated the repo adding the Palo Alto firewall MIBs, which can be downloaded for free from here: https://www.paloaltonetworks.com/documentation/misc/snmp-mibs.html

To test the generator, just clone my repo docker-secg and then run the container:

$  docker run --rm -v "$PWD/mibs:/root/.snmp/mibs" \
    -v "$PWD/generator.yml:/snmp_exporter/generator/generator.yml" \
    -v "$PWD/snmp.yml:/snmp_exporter/generator/snmp.yml" aabbate/secg

You will find the generated configuration on the snmp.yml file

@brian-brazil
Copy link
Contributor

Thinking on this, what we could do in this repo is provide a docker image with a working generator and document the volume mounts to pull in the MIBs etc.

@ninoabbate
Copy link
Contributor Author

@brian-brazil I will add the needed documentation about volume mounts, etc.. 👍

@ninoabbate
Copy link
Contributor Author

@brian-brazil I did a rework on this container, it uses the same tag used by snmp-exporter, also I documented the volumes to mount, please take a look if you have one free minute.
Suggestions are welcomed.

@brian-brazil
Copy link
Contributor

At a first glance I'd suggest arranging the paths so that the volume mounts are much more concise.

I'd also advise making the commands other than 'generate' accessible, they're handy for debugging.

jstoja pushed a commit to jstoja/docker-secg that referenced this issue Oct 3, 2017
Hello,

I saw on your issue prometheus/snmp_exporter#120 that you created this Dockerfile.
I modified it so it's lighter (using multi-stage builds), but also configurable like @brian-brazil advised it.
In addition I used the idea from prometheus/snmp_exporter#223 to statically compile it.

I hope it'll help and maybe integrate it later to the original repo!
@brian-brazil
Copy link
Contributor

There is one now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants