Download the SN-trapInstallation-v3.tar.gz file to the box in the /tmp directory.
This file is available in the same place as the ServiceNav masters, in the TOOLS section.
If you have problems obtaining this installation script, please ask Coservit Support.
Objectives of this document
This document is intended for anyone (client or consultant) who wishes to configure an SNB so that they can
receive SNMP traps.
Information The script runs an apt-get install to install some packages, so the box must have access to the Internet.
The apt-get install can cause a side effect with MS-SQL checkpoints.
All MS-SQL checkpoints may not work anymore.
If the MS-SQL checkpoints no longer work :
Remove the symbolic link: rm /usr/local/lib/libgmp.so.10
- /tmp/snmptrapd -> configuration file, will be copied by the installation script.
- /tmp/snmptrapd.conf -> configuration file, will be copied by the installation script.
- /tmp/snmptt.ini -> configuration file, will be copied by the installation script.
- /tmp/SN-trapInstall.sh -> install and configure script to receive traps.
The script will install the SNMPTT package and then copy the different configuration files needed. It will
also add a rule in iptables so that the box can receive the stream on port 162.
Information The script will reload the IPTABLES configuration.
Go to /tmp, where the SN-trapInstallation-vX.tar.gz archive is located:
Unzip the archive :
tar -xzf SN-trapInstallation-vX.tar.gz
Go to the SN-trapInstallation-vX folder:
Update the libraries and run the installation script:
apt-get update ./SN-trapInstall.sh
The script requests the SNMP community that will send the traps.
To change this value (if the one entered during the script is not appropriate) :
Go to /etc/snmp/snmptrapd.conf :
Locate the line :
In place of should be the value entered in the script.
Edit the community here if necessary.
Restart the snmptrad service:
systemctl restart snmptrapd
The box is now able to receive SNMP traps.
Then you have to create the trap definition files. See documentation : 2 - Create a Trap definition file