Загрузка страницы

Zabbix : Setup SNMP Traps

Zabbix Course : https://sbcode.net/zabbix/snmp-traps/
Course Coupons : https://sbcode.net/coupons

I setup and demonstrate SNMP traps with Zabbix 5.
Receiving SNMP traps is the opposite of querying SNMP devices.
Information is sent from an SNMP device and is collected or "trapped" by Zabbix.
SNMP Traps are sent to the server on port 162 (as opposed to port 161 on the agent side that is used for queries).
So port 162 will need to be allowed on the Zabbix Server or Proxy, which ever will receive the SNMP traps.
For SNMP Traps to work, you need to configure some settings for either the Zabbix Server, or Zabbix Proxy.
Open zabbix_server.conf or zabbix_proxy.conf
And add/edit,
SNMPTrapperFile=/tmp/zabbix_traps.tmp
StartSNMPTrapper=1
Restart the Zabbix Server or Proxy
Download zabbix_trap_receiver.pl, save it into the /usr/bin folder and give it execute permissions.
Install and configure snmptrapd.
snmptrapd is an SNMP application that receives and logs SNMP TRAP and INFORM messages.
Restart snmptrapd
Test some example snmptraps from various hosts.
I also demonstrate configuring and receiving traps my cisco switch.
The SNMP device, will send a snmptrap to the IP address configured. That IP should have the snmptrapd process running on it. It will be listening on port 162 by default. The firewall should not be blocking the snmp device from sending to it on that port. When the snmptrapd process receives a new trap message, it passes it to the zabbix_trap_receiver.pl script, which will reformat it, and save it into the folder. The zabbix proxy or server, will read it from that folder, and if the ip address or hostname matches a configured host than it will by default appear in the hosts snmp trap fallback item on the Zabbix server.
The host configuration on the Zabbix server should be configured with an SNMP interface and 1 or more snmptrap items.

0:00 Introduction. Setup SNMP Traps
0:25 Discuss firewall accerp port 162
0:40 All devices are currently SNMP agents
1:00 View SNMP trap fallback item
1:50 Demonstrate switch SNMP Trap configuration
2:40 Discuss the SNMP Trap Daemon on Zabbix Server or Proxy
3:45 Edit Zabbix Server or Proxy configuration
5:05 Download Zabbix Trap Receiver Perl Script
6:45 Install and configure snmptrapd
8:55 Test some example snmptrap commands
11:35 Discuss MIB descriptions versus OIDs in trap messages
12:05 Second snmptrap test from a different host
13:30 Discuss hardware snmp device with snmptrap support
14:10 Demonstrate automated snmp traps sent from Cisco switch
15:30 Create custom snmptrap item using regex for 'Reload Command'
17:40 Summarise Zabbix SNMP Trap process

#snmp
#zabbix
#zabbix5
#snmptrapd
#zabbixProxy
#zabbixSnmpTraps
#zabbixCourse
#zabbixTutorial

Видео Zabbix : Setup SNMP Traps канала seanwasere ytbe
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 июля 2020 г. 16:42:44
00:18:29
Яндекс.Метрика