Docker-Nagios
Docker-Nagios copied to clipboard
Persistent MIBs
trafficstars
How do I add custom MIBs and keep them persistent. Tried mounting the MIBs directory from within the container with a bind mount, but that then wipes out all the existing MIBs in the container.
Hi @christronyxyocum This is a good question, I will look in to adding a mounted path to search for MIBs
You actually don't need to do anything.
- Install SNMP on your Docker Host.
- Update the
snmp.conffile to look like this:
#mibs :
mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/ietf:/usr/share/snmp/mibs/iana
mibs +ALL
- Add the following volumes to your container config:
- "/usr/share/snmp/mibs:/usr/share/snmp/mibs:ro"
- "/var/lib/snmp/mibs:/var/lib/snmp/mibs:ro"
- "/etc/snmp/snmp.conf:/etc/snmp/snmp.conf:ro"
- ??????????
- Enjoy custom/updated MIBs by simply updating/adding to the ones on the Docker Host.
I now have Nagios SNMP checks for my ReadyNAS and Unraid Servers.