EV Observe - Configure SNMP Traps Monitoring Prerequisites
SNMP traps contain information sent from a monitored host to a monitoring server using the SNMP protocol.
Trap definition files are used to define the actions to be performed when a Box receives an SNMP trap.
To use service templates based on SNMP traps, specific prerequisites must first be met.
- You configure these prerequisites once only.
- This is done in two steps:
- Configure the Box to receive SNMP traps using a script that will install the SNMPTT package and copy the required configuration files. A rule will be added to IPTABLES to enable the Box to receive traffic via port 162.
- Create trap definition files to define the actions to be performed when an SNMP trap is received.
See the detailled procedure.
Notes
- You can obtain the SN-trapInstall.sh install script from the EasyVista Support team.
- You must have root access rights.
- The Box must be able to access the Internet so that the script can install certain packets using an apt-get install.
Caution
- The apt-get install command may cause malfunctioning issues in MS SQL services. If this is the case, you should run the command below to delete the symbolic link.
rm /usr/local/lib/libgmp.so.10
Procedure: How to configure SNMP trap monitoring prerequisites
Step 1: Configure the Box to receive SNMP traps
1. Install the archive required for configuring the Box.
- Go to the TOOLS section in the folder containing the masters.
- Download the file called SN-trapInstallation-v3.tar.gz to the Box /tmp folder.
- Run the commands below to extract the files from the archive.
cd /tmp
tar -xzf SN-trapInstallation-vX.tar.gz
The snmptrapd, snmptrapd.conf and snmptt.ini configuration files will be copied to the /tmp folder.
- Run the commands below to update libraries using the install script.
cd SN-trapInstallation-vX
apt-get update
./SN-trapInstall.sh
2. (optional) Modify the default value of the SNMP community that sends the traps.
- Run the command below to open the snmptrapd.conf configuration file.
vim /etc/snmp/snmptrapd.conf
- Search for the row, authCommunity execute <community>.
- Replace the <community> value with the value of the SNMP community you want.
- Save your modifications.
- Run the command below to restart the snmptrad service.
systemctl restart snmptrapd
The Box can now receive SNMP traps.
Step 2: Create trap definition files to define the actions to be performed when an SNMP trap is received
See the detailed procedure