Easy Tutorial
❮ Runoob Tool Update Desc Verilog2 Acc ❯

Monitoring SNMP Traps for Proactive Alerts with Zabbix

Category Programming Techniques

Firstly, here is the official source code download link: http://www.zabbix.com/download

The latest version can be downloaded from the official website. The version provided for download on this site is 3.2.6zabbix-3.2.6.tar.gz

1. Copy the Perl script from the source code directory and grant execution permissions

# cp ./misc/snmptrap/zabbix_trap_receiver.pl /usr/bin
# chmod +x /usr/bin/zabbix_trap_receiver.pl

2. Locate the snmptrapd configuration file and modify it

# find / -name snmptrapd.conf
After finding the file, open and modify it
# vim snmptrapd.conf
Add two lines of code
authCommunity execute public
perl do "/usr/bin/zabbix_trap_receiver.pl"

3. Modify the zabbix_server.conf file to enable the SNMP Trap feature

# vim /usr/local/zabbix/etc/zabbix_server.conf
# StartSNMPTrapper=1 Set this to 1
# SNMPTrapperFile=/tmp/zabbix_traps.tmp 
(NB: The path in the last line must be the same as the one set in the zabbix_trap_receiver.pl script)

4. Restart the zabbix_server service

# service zabbix_server restart

5. Start the snmptrapd service

# snmptrapd -C -c /etc/snmp/snmptrapd.conf

Now snmptrapd is configured, and you can proceed to configure it in Zabbix.

Configuration in Zabbix

1. Create a host

2. Create a monitoring item

3. Create a trigger

Alright, Zabbix is configured, now let's send a few traps to test

Check if Zabbix has received the data

Open and take a look

Data successfully retrieved

SNMP trap configuration is successful

>

Author: Liang Bai Kai's Blog

Article address: http://blog.csdn.net/liang_baikai/article/details/53522293

❮ Runoob Tool Update Desc Verilog2 Acc ❯