haastreet.blogg.se

Ubuntu snmp trap receiver
Ubuntu snmp trap receiver







  • 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_:.
  • Get the zabbix_trap_ script from Zabbix source repository:.
  • ubuntu snmp trap receiver ubuntu snmp trap receiver

    (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:

    ubuntu snmp trap receiver

    In order to handle SNMP traps in Zabbix you need to configure your server to receive the traps.









    Ubuntu snmp trap receiver