![ubuntu snmp trap receiver ubuntu snmp trap receiver](https://blog.zabbix.com/wp-content/uploads/2019/10/blog_snmp.jpg)
This item can be set only for SNMP interfaces. If regexp is unspecified, catches any trap. In the Key field use one of the SNMP trap keys: KeyĬatches all SNMP traps that match the regular expression specified in regexp. The address from each received trap is compared to the IP and DNS addresses of all SNMP interfaces to find the corresponding hosts. In Configuration → Hosts, in the Host interface field set an SNMP interface with the correct IP or DNS address. (This is configured by “Log unmatched SNMP traps” in Administration → General → Other.)Ĭonfiguring the following fields in the frontend is specific for this item type:
![ubuntu snmp trap receiver ubuntu snmp trap receiver](https://i.stack.imgur.com/LQ6Vd.png)
If the trap was not set as the value of any item, Zabbix by default logs the unmatched trap. If no matching item is found and there is an “snmptrap.fallback” item, the trap is set as the value of that. The trap is set as the value of all matched items. Note that only the selected “IP” or “DNS” in host interface is used during the matching.įor each found item, the trap is compared to regexp in “snmptrap”. Zabbix SNMP trapper reads and parses the trap fileįor each trap Zabbix finds all “SNMP trapper” items with host interfaces matching the received trap address. SNMPTT or Perl trap receiver parses, formats and writes the trap to a file
![ubuntu snmp trap receiver ubuntu snmp trap receiver](https://blog.paessler.com/hubfs/blog/archive/enabling-snmp-agent-1.png)
Snmptrapd passes the trap to SNMPTT or calls Perl trap receiver Receiving SNMP traps in Zabbix is designed to work with snmptrapd and one of the built-in mechanisms for passing the traps to Zabbix - either a perl script or SNMPTT. Using traps may detect some short problems that occur amidst the query interval and may be missed by the query data. Usually traps are sent upon some condition change and the agent connects to the server on port 162 (as opposed to port 161 on the agent side that is used for queries). In this case the information is sent from a SNMP-enabled device and is collected or “trapped” by Zabbix. Receiving SNMP traps is the opposite to querying SNMP-enabled devices.