Zabbix Documentation 2.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:config:items:itemtypes:snmptrap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:config:items:itemtypes:snmptrap [2014/04/14 07:28]
martins-v merging related information into one step
manual:config:items:itemtypes:snmptrap [2015/09/21 14:44]
richlv [Configuring Zabbix server/proxy] link to documentation about PrivateTmp
Line 37: Line 37:
 | ||| | |||
 ^snmptrap[regex] ||| ^snmptrap[regex] |||
-| Catches all SNMP traps from a corresponding address that match **regex** | SNMP trap | This item can be set only for SNMP interfaces.\\ **This item is supported starting from version 2.0.0.**\\ //Note//: Starting with Zabbix 2.0.5, user macros and global regular expressions are supported in the parameter of this item key.  |+| Catches all SNMP traps from a corresponding address that match the [[:​manual/​regular_expressions|regular expression]] specified in **regex** | SNMP trap | This item can be set only for SNMP interfaces.\\ **This item is supported starting from version 2.0.0.**\\ //Note//: Starting with Zabbix 2.0.5, user macros and global regular expressions are supported in the parameter of this item key.  |
 | ||| | |||
 ^snmptrap.fallback ||| ^snmptrap.fallback |||
Line 52: Line 52:
 == Configuring Zabbix server/​proxy == == Configuring Zabbix server/​proxy ==
  
-To read the traps, Zabbix server or proxy must be configured to start the SNMP trapper process and point to the trap file that is being written by SNMPTT or a perl trap receiver. To do that, edit the configuration file ([[:2.0/manual/appendix/config/zabbix_server|zabbix_server.conf]] or [[:2.0/manual/appendix/config/zabbix_proxy|zabbix_proxy.conf]]):​+To read the traps, Zabbix server or proxy must be configured to start the SNMP trapper process and point to the trap file that is being written by SNMPTT or a perl trap receiver. To do that, edit the configuration file ([[manual:appendix:config:zabbix_server|zabbix_server.conf]] or [[manual:appendix:config:zabbix_proxy|zabbix_proxy.conf]]):​
   - StartSNMPTrapper=1   - StartSNMPTrapper=1
   - SNMPTrapperFile=[TRAP FILE]   - SNMPTrapperFile=[TRAP FILE]
  
 +<note warning>​If systemd parameter **[[http://​www.freedesktop.org/​software/​systemd/​man/​systemd.exec.html#​PrivateTmp=|PrivateTmp]]** is used, this file is unlikely to work in ///​tmp//​.</​note>​
 == Configuring SNMPTT == == Configuring SNMPTT ==
  
Line 111: Line 112:
   - The new data are parsed. If this was the rotated file, the file is closed and goes back to step 2.   - The new data are parsed. If this was the rotated file, the file is closed and goes back to step 2.
   - If there was no new data, Zabbix sleeps for 1 second and goes back to step 2.   - If there was no new data, Zabbix sleeps for 1 second and goes back to step 2.
 +
 +<note important>​The maximum log file size supported by Zabbix is 2 gigabytes. The log file must be rotated before reaching this limit.</​note>​
  
 == File system == == File system ==