Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Updates required to configure V3 trap notifications. #47

Open
mjsiers opened this issue Dec 11, 2018 · 1 comment
Open

Updates required to configure V3 trap notifications. #47

mjsiers opened this issue Dec 11, 2018 · 1 comment

Comments

@mjsiers
Copy link

mjsiers commented Dec 11, 2018

I have added a trapd-configuration.xml file into the etc-overlay directory but my V3 trap
messages are not getting logged. Do I need to also update the default snmp-config.xml file?
How can I see what the default values are in the current snmp-config.xml file?

@indigo423
Copy link
Member

Related to your "Updates ..." statement in your title, do you have updated the container image? In general there the following considerations related custom configuration:

  • If you don't persist the opennms/etc directory and have it stateless, you need to inject all custom configuration using the etc-overlay. This is very hard to achieve, cause can create or modify configurations from the Web UI, e.g. adding SNMP communities, add nodes in requisitions, notifications, destination paths, etc. These type of changes are not reflected in your etc-overlay directory. On container restart they get overwritten! If you drop your container everything is lost unless what you have set in your etc-overlay.
  • Persist opennms/etc configuration files in a volume allows you to keep changes from a running system. When you do upgrades it is a little bit trickier, cause you need to migrate the etc content in the volume which is probably trickier to access from your host to do the migration.
  • IMHO Using local host mounted directories for opt/opennms-etc-overlay and /opt/opennms/etc this gives you the best flexibility for migration for updates and maintaining complex configurations.

The biggest issue here is the fact OpenNMS behaves like a legacy application. To address this issue would be a refactoring to clearly divide persistence for running configuration and startup / initial configurations.

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

No branches or pull requests

2 participants