In the second line change 1110 port number to your described port number in SNMP Trap package of the Teltonika device.Īlso you can change first line to disableAuthorization yes. In the first line change public to your community group described in SNMP Trap package configuration. Example of the command:Īdd these lines at the beginning of the file:
#BEST LINUX SNMP TRAP RECEIVER HOW TO#
This is required to specify community you described in SNMP Trap package configuration, to describe Trap port and how to handle caught Trap messages.Įdit nf file, it can be found in /etc/snmp/ directory. Make sure to use exactly the same port as in SNMP package configuration on Teltonika device.
If you chose different SNMP port change 161 into your chosen port. Then find the line "agenAddress udp:161,udp6:161" and uncomment it. Example of the command:įind a line containing "agenAddress udp:127.0.0.1:161" and comment it by adding # symbol at the beginning of the line. If you want to configure SNMP so it would listen to the port globally, not locally follow these steps:Įdit nf file, it can be found in /etc/snmp/directory. This is not required for Trap listening service, but with this configuration snmpget command will be able to establish connection without requiring port number in the command line. SNMP configuration example can be found here.Įditing configuration files nf Important note: before continuing make sure that SNMP Trap package is configured.
$ sudo apt-get install snmp-mibs-downloader To install these packages run command for each package:Īlso you need to download and load MIB files. To configure Trap listening service these packages are required: snmp, snmpd, snmptt, snmptrapd. This chapter is a guide on configuring SNMP Trap listening service on Linux OS. 4 Testing if SNMP Trap listening service works.