Documentations

1 - Configuring the box to receive traps

On the page

Need some help?

Prerequisite

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.

Attention :

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

Required files

  • /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.

Installation procedure

As a root.

Go to /tmp, where the SN-trapInstallation-vX.tar.gz archive is located:

cd /tmp

Unzip the archive :

tar -xzf SN-trapInstallation-vX.tar.gz

Go to the SN-trapInstallation-vX folder:

cd SN-trapInstallation-vX

Run the installation script :

/SN-trapInstall.sh

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 :

vim /etc/snmp/snmptrapd.conf

Locate the line:
authCommunity execute
Instead of should be the value entered in the script.
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

This may also be of interest to you

Using the Global-Plugin-Execution service model

Using generic PowerShell - GLOBAL-PS-Values models

2 - Create a Trap definition file

en_USEnglish
fr_FRFrench en_USEnglish

Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.

[COVID - 19 ] - TELEWORKING, TARGET AVAILABILITY 100% !

While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and if you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.