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 any problem to get this installation script, ask Coservit Support.
Objectives of this document
This document is intended for any person (customer or consultant) wishing to configure SNB so that they can
receive SNMP traps.
Information : The script executes an apt-get install to install certain packages, so the box must have access to the Internet.
The apt-get install can cause a side effect with MS-SQL control points.
All MS-SQL checkpoints may no longer function.
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 -> installation and configuration script to receive traps.
Principles of Scripting
The script will install the SNMPTT package and then copy the various 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.
As a root.
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:
Run the installation script :
The script requests the SNMP community to send the traps.
To change this value (if the value entered during the script is not appropriate) :
Go to /etc/snmp/snmptrapd.conf :
Locate the line:
Modify the community here if necessary.
Restart the snmptrad service:
systemctl restart snmptrapd
The box is now able to receive SNMP traps.
The trap definition files must then be created. See documentation : 2 - Create a Trap definition file