mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Merge pull request #355 from hjcday/master
Add extra SNMP Trap MIB Dirs via Env Vars
This commit is contained in:
commit
aecf0a2648
2 changed files with 2 additions and 1 deletions
|
|
@ -183,6 +183,7 @@ Image: librenms/librenms:latest
|
|||
* `SNMP_SECURITY_LEVEL`: Sets what security level (`noauth`|`priv`) to use (default `priv`)
|
||||
* `SNMP_ENGINEID`: Defines what SNMP EngineID to use (default `1234567890`)
|
||||
* `SNMP_DISABLE_AUTHORIZATION`: Will disable the above access control checks, and revert to the previous behaviour of accepting all incoming notifications. (default `yes`)
|
||||
* `SNMP_EXTRA_MIB_DIRS`: [Additional directories where MIB files are for SNMP Traps](https://docs.librenms.org/Extensions/SNMP-Trap-Handler/#option-2) (example `/opt/librenms/mibs/veeam`)
|
||||
|
||||
### Database
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ mkdir -p /etc/services.d/snmptrapd
|
|||
cat >/etc/services.d/snmptrapd/run <<EOL
|
||||
#!/usr/bin/execlineb -P
|
||||
with-contenv
|
||||
/usr/sbin/snmptrapd -f -m ALL -M /opt/librenms/mibs:/opt/librenms/mibs/cisco udp:162 tcp:162
|
||||
/usr/sbin/snmptrapd -f -m ALL -M /opt/librenms/mibs:/opt/librenms/mibs/cisco:${SNMP_EXTRA_MIB_DIRS} udp:162 tcp:162
|
||||
EOL
|
||||
chmod +x /etc/services.d/snmptrapd/run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue