Jump to content

Testing Trap With Linux Operating System: Difference between revisions

Line 29: Line 29:
Find a line containing '''"agenAddress udp:127.0.0.1:161"''' and comment it by adding '''#''' symbol at the beginning of the line. Then find the line '''"agenAddress udp:161,udp6[::1]:161"''' and uncomment it. If you chose different SNMP port change '''161''' into your chosen port. '''Make sure to use exactly the same port as in SNMP package configuration on Teltonika device'''.
Find a line containing '''"agenAddress udp:127.0.0.1:161"''' and comment it by adding '''#''' symbol at the beginning of the line. Then find the line '''"agenAddress udp:161,udp6[::1]:161"''' and uncomment it. If you chose different SNMP port change '''161''' into your chosen port. '''Make sure to use exactly the same port as in SNMP package configuration on Teltonika device'''.


[[File:Networking device configurationexample traps with terminal snmpd config v1.png]]
[[File:Networking device configurationexample traps with terminal snmpd config v3.png]]
----
----
===Snmptrapd.conf===
===Snmptrapd.conf===
Line 51: Line 51:
'''Also''' you can change first line to '''disableAuthorization yes'''. This will disable all authorizations and any group will be able to send traps to the SNMP Manager.
'''Also''' you can change first line to '''disableAuthorization yes'''. This will disable all authorizations and any group will be able to send traps to the SNMP Manager.


[[File:Networking device configurationexample traps with terminal snmptrapd config v1.png]]
[[File:Networking device configurationexample traps with terminal snmptrapd config v2.png]]
----
----
===Creating Trap listening service===
===Creating Trap listening service===
Line 71: Line 71:
This configuration will write the log of caught Trap messages into ''' ''/var/log/'' ''' folder and into ''' ''snmptrapd.log'' ''' file. You can change the log file directory and file name.
This configuration will write the log of caught Trap messages into ''' ''/var/log/'' ''' folder and into ''' ''snmptrapd.log'' ''' file. You can change the log file directory and file name.


[[File:Networking device configurationexample creating snmptrapd service v1.png]]
[[File:Networking device configurationexample traps with terminal snmptrapd service v2.png]]
----
----


0

edits