Matches "MMCSS" or "gupdate" or "SysmonLog" or strings like "clr_optimization_v7_32" and "clr_optimization_v9_32" where instead of dots you can put any character except newline. ^(MMCSS\|gupdate\|SysmonLog\|clr_optimization_v7_32\|clr_optimization_v9_32)$ Matches "Physical memory" or "Virtual memory" or "Memory buffers" or "Cached memory" or "Swap space" ^(Physical memory\|Virtual memory\|Memory buffers\|Cached memory\|Swap space)$ Matches strings staring with "Nu" optionally followed by any number of digits or dots Matches strings starting with "Lo" or "lo" and optionally followed by any number of digits or dots Matches strings staring with "NULL" optionally followed by any number of digits or dots Matches strings that optionally start with "In", then have "L" or "l", then "oop", then "B" or "b", then "ack", which can be optionally followed by any number of digits, dots or underscores Matches strings starting with "Software Loopback Interface" Matches "btrfs" or "ext2" or "ext3" or "ext4" or "jfs" or "reiser" or " xfs" or "ffs" or "ufs" or "jfs" or "jfs2" or "vxfs" or "hfs" or "refs" or "ntfs" or "fat32" or "zfs" Explanation of global regular expressions Global regexp It means that if at least one Result is False Combined result has also False status. If several sub expressions are defined Zabbix uses AND logical operator to calculate Combined result. Total custom expression status is defined as Combined result. Results show the status of each subexpression and total custom expression status. More complex exampleĪ custom regular expression may consist of multiple subexpressions, and it can be tested in the Test tab by providing a test string. For more information about PCRE syntax please refer to PCRE HTML documentation. The list of available modifiers can be found in pcresyntax man page. This way it is possible to save expressions containing a slash, whereas previously it would produce an error. Since Zabbix 2.4.0, a forward slash (/) in the expression is treated literally, rather than a delimiter.
This parameter is active only when " Any character string included" expression type is selected.Ī checkbox to specify whether a regular expression is sensitive to capitalization of letters. Result is FALSE - do not match the regular expressionĪ comma (,), a dot (.) or a forward slash (/) to separate text strings in a regular expression.
Result is TRUE - match the regular expression The delimited list includes a comma (,), a dot (.) or a forward slash (/).Ĭharacter string not included - match any string except the substring Any Unicode characters are allowed.Ĭlick on Add in the Expressions block to add a new subexpression.Ĭharacter string included - match the substringĪny character string included - match any substring from a delimited list. The Expressions tab allows to set the regular expression name and add subexpressions. Select Regular expressions from the dropdown.Once a regular expression has been created this way, it can be used in several places in the frontend by referring to its name, prefixed with for example, create a global regular expression: There is an advanced editor for creating and testing complex regular expressions in Zabbix frontend.
See the pcrestack man page for more information. It's possible to run out of stack when using regular expressions.