Upgrading SNMP Definition Files
ElastiFlow's SNMP-based products (NetObserv SNMP and NetObserv SNMP Trap) use ElastiFlow's 'SNMP definition' files which are publicly available.
-
Because of these files, you can customize how our products parse and enrich SNMP data. This is an intentional feature of our SNMP-based products.
-
Users must manually take steps whenever ElastiFlow makes updates to these files. This is a part of how we can support such high customization.
Always read the release notes prior to using any SNMP definitions to ensure that they will work with the version of the NetObserv that you are using.
Installation
Anytime you install NetObserv SNMP or NetObserv SNMP Trap, those products will come shipped with the latest versions of the snmp definition files at the time of release. When you install NetObserv using linux packages (deb or rpm), and if there are no SNMP definition files in your system already, the installer will unpack the definition files shipped with the installer and unpack them there. There is no special action required for installing NetObserv.
The default location for these SNMP definitions is /etc/elastiflow/snmp
.
Getting Updates
Whenever ElastiFlow updates any of those SNMP definition files, NetObserv products will not replace any existing yml definition files with the updated ones. This prevents accidentally deleting customizations users might have made.
Docker Image Notes
If you use the Docker image of NetObserv, those images technically include the latest versions of the snmp definition files when you upgrade NetObserv. If you change the version of the image you are running, the new image will already have the updated SNMP definition files.
However, in practice, many users will use volume mounts so that the Docker images are pulling the SNMP definition files from the host machine. In those situations, users will not automatically receive updates to any changes to SNMP definition files. You will have to manually update SNMP definition files on your host using one of the below options.
Option 1. Manual Downloads
-
View the changelog of NetObserv to see if there are any changes to SNMP definitions included in the newer NetObserv version. If there are no changes to SNMP definitions, you do not need to take any further steps here.
-
Download the latest zipped copy of SNMP definition files.
-
Unpack those contents on your machine running NetObserv, and then overwrite existing files with the new ones.
Option 2. Keeping Up to Date with git
Since the SNMP definitions are made available in a GitHub repository, git
can be used to simplify deployment and updates.
Setting Up SNMP Definition Files to Use Git
- Backup any existing contents of SNMP definition files.
cp -R /etc/elastiflow/snmp /etc/elastiflow/backup-snmp
- Run the following commands to deploy the definitions using
git
:
cd /etc/elastiflow
git clone https://github.com/elastiflow/snmp.git
-
Make any desired customizations. For example, you might add new files inside
/etc/elastiflow/snmp
. -
Locally commit changes anytime you make local changes.
cd /etc/elastiflow/snmp
git add -A .
git commit -m "Made local customizations to snmp definition files."
Syncing SNMP Definition Files to Use Git
To update the definitions to the latest in the main
branch simply run the following:
cd /etc/elastiflow/snmp
git pull