hellose.blogg.se

Install zabbix on debian
Install zabbix on debian










install zabbix on debian

If that is fine, you should also see this in /var/log/zabbix/zabbix_server.log: $ sudo cat /var/log/zabbix/zabbix_server.logħ31:20210521:221235.131 unmatched trap received from "x.x.x.x": 22:12:33 1 PDU INFO: Now you can check the trap log file and you should see similar results to this: $ cat /var/log/snmptrap/snmptrap.log

install zabbix on debian

You can ignore the “read_config_store open failure on /var/lib/snmp/nf” error messages for purpose of this testing. Testing the trapsįor testing you can use the following snmptrap command (where x.x.x.x is the IP address of your Zabbix server where you installed the trap receiver on install snmp package with sudo apt install snmp if the snmptrap command is not present yet): Now the trap receiving should work and the traps should show up in /var/log/snmptrap/snmptrap.log. Note that if you want to receive the traps on a Zabbix proxy instead of Zabbix server, the steps are pretty much the same, you just need to edit zabbix_nf instead of zabbix_nf and restart zabbix-proxy after that. Set the trap receiver service to start automatically at reboot:.Sudo systemctl restart snmptrapd zabbix-server SNMPTrapperFile=/var/log/snmptrap/snmptrap.log Edit and/or verify the parameters in /etc/zabbix/zabbix_nf:.Configure snmptrapd with these commands (where my_trap is your desired trap community string):Įcho 'authCommunity execute my_trap' | sudo tee -a /etc/snmp/nfĮcho 'perl do "/etc/zabbix/zabbix_trap_" ' | sudo tee -a /etc/snmp/nf.$SNMPTrapperFile = '/var/log/snmptrap/snmptrap.log' Edit the SNMPTrapperFile variable in /etc/zabbix/zabbix_trap_:.

install zabbix on debian

Get the zabbix_trap_ script from Zabbix source repository:.(Note: Long commands and paths below can appear split incorrectly, so be careful with them) Here are the steps, tested with Zabbix 5.4 on Debian Linux 10 (Buster), assuming Zabbix server has already been installed from the official repository: In order to handle SNMP traps in Zabbix you need to configure your server to receive the traps.












Install zabbix on debian