Zabbix macro multiple values If the response time is above a threshold, we need to send an alert with details of the action: action_type, action_name, and others. See locations where secret macro values are unmasked. Discovery Rule Name: Discover Endpoints A custom regular expression name in Zabbix may contain commas, spaces, etc. If you want to change the file system for each mount point to mount, there is a sample in the manual. To use macros in tags, simply include the macro in the tag definition, enclosed in curly braces ({}). Using 5. 3 URLs that contain a secret But, if the user has set a higher value for Maximum concurrent checks per type than the value calculated by Zabbix, Zabbix will use the user-defined value for one worker. FF0000). This design decision has allowed us to implement many new usability improvements – from providing additional information and classification to the tagged entities, to defining action conditions and security permissions by referencing specific tags and their values. The Macros tab allows you to define host-level user macros as a name-value pairs. The common use case for macro contexts would be using an LLD macro value as a user macro context. *backup Or Abc1 matches . 2. Nov 1, 2024 · Hi all, Looking for some guidance if it is possible to use macros defined in an LLD rule in another LLD rule. An indefinite path can return multiple matches, basically JSONPaths with detached, multiple name/index list, array slice or expression segments. Low-level discovery macros can be used inside macro context. VALUE<N>}. Examples. Replace you {1} with {ITEM. Nov 11, 2019 · The preprocessing tab as you all currently know it was added in Zabbix 3. User macros are supported. Supported value types: str, text, log Returns: 1 - found 0 - otherwise If more than one value is processed, '1' is returned if there is at least one matching value. {FUNCTION. This makes it easy to see if you have this macro defined already and if it will be overwritten. 168. Jan 7, 2022 · How to setup multiple events from one trigger and de-duplicate: now if to assume the data coming as separate events, you can setup a trigger that analyze each event and decide on raising alert. Mar 18, 2021 · Zabbix documentation (SNMP discovery page), so that we don’t make any mistakes when writing our own SNMP discovery keys, OIDs, etc. VALUE}: This macro is replaced with the value of an item being monitored. This . Effective use of macros allows to save time and make Zabbix configuration more transparent. run as a main part of key, that way you don't have to use user parameters and you can acheive basically anything, you only have to be carefull when you try to use commans in key, but there are available some workaorunds. name [b] = VALUE2 => {%VALUEMACRO} So item. urldecode: Decoding macro value from Mar 31, 2023 · {ITEM. Item - last value of the selected item will be the minimum value. Question My child template sees the service. My problem now: I have multiple servers/hosts with different databases. I read several times the documentation, but I find that it explains very badly how to do this, and I can't do it. Parameter behavior: - supported if Display item value as is set to "Numeric" Highlights: Color: 1: columns. In one of typical uses, a macro may be used in a template. 0 address the question in a very efficient manner. Footnotes. Note that when used in update intervals, a single macro has to fill the whole field. Consequently, {TRIGGER. The user by which the Zabbix agent 2 is running should have access permissions to the Docker socket. Zabbix then goes through the list of indexes at the end of the specified OIDs and matches the collected values to low-level discovery macros. Please see official documentation on low-level discovery and trapper items for more information. Value mapping allows configuring a more user-friendly representation of received values using mappings between numeric/string values and string representations. Apr 16, 2020 · With calculated items, you can create calculations based on other items. 4. This rule will discover entities and set: {#IFDESCR} macros to lo, ens33, and ens37; {#IFTYPE} macros set to 24, 6 Oct 23, 2016 · The third parameters then tells the Zabbix Agent to retrieve the data found in the 1st matched group, which in this case, would be a value of ‘2’. In addition, visually fine-tune the widget with multiple advanced options, including a dynamic background color that changes based on the availability status of Zabbix agent. Macro context is a simple text value. Default: 1, 2. It would like as a regex comparison. When a value is received, it is inserted both to history, and to it's assigned "value macro". This parameter is not available for pie and exploded pie graphs. Sep 23, 2020 · In this case, more than one value may be processed. 0 This makes it easy to see if you have this macro defined already and if it will be overwritten. To see what particular built-in macros are supported in item key parameters, search the page Supported macros for "item key parameters". VALUE} will always resolve to "1" (which indicates a "Problem" state) while evaluating the expression. 1 I want to Mar 5, 2022 · Then you can template it, use that WEB. Then Zabbix returns " Cannot find the "data" array in the received JSON object. 102. C Drive works fine, extra drives have different letters on different servers, some are F some M some U etc. load[percpu,avg1]. Ex. Introduction II. In the field name specify a valid LLD macro name. Possible values: 0 - Zabbix agent; 2 - Zabbix trapper; 3 Built-in macros¶. hmm. Low-level discovery macros can be used for the tag name/value in trigger prototypes. If I define the key as item. Configuring an Item value widget. (Optional) Assign the "Apache Tomcat by JMX" template for web server monitoring. Chaque built-in macro peut-être utilisée dans un ou plusieurs cas. That is where all defined user It is possible to include macros in the parameters. They have the following format: {macro}=value {macro}=regex:<regular expression> For more information see variable description on the scenario level. and placing the hosts behind zabbix proxies. Upon hovering, the value field transforms into a button, which allows to enter a new value of the macro (to exit without saving a new value, click the backwards arrow (). conf, and then the Zabbix agent will invokes a script which returns the set Zabbix: LLD low-level discovery returning multiple values Dec 12, 2017 · Then, at the host level, we specify a new macro value with the context for the key interface (for example, we take Gi0/0. Vertical position: Select vertical position of the item value - top, bottom or middle. When enabled depending on the conditions of the item(s) it can fire. {HOST. Host override condition is based on name so not useful to do it based on different prototypes 2. (Optional) Assign the "Generic Java JMX" template for garbage collector monitoring. {Template OS: system. IP} which does the same thing but retrieves the IP of the host. Dec 2, 2015 · If you wish to create items with fixed values, you could probably create calculated items with a constant expression, like so: {#SIZE} However, a better approach would be to create trapper items during LLD and send those values separately. discovery rule from the parent template as expected, how can i extract all services for Skype from the JSON object and create discovery Therefore, if multiple values are configured for Service type, Service port or Received value conditions in the action, they will be compared to one discovery event at a time, but not to several events simultaneously. regsub(pattern, output)} {{ITEM. max: The highest value of an item within the defined evaluation period. This setting can be useful to measure a constantly growing value. color: Hexadecimal color code (e. You can change the threshold only for a specific host by specifying the default threshold in the template macro and overwriting it with the host's macro. discovery Each JSON output is dynamically created at runtime and contains a list of macro keys and values that will be specific to what was found from the perspective of the host where it was run. Reference May 22, 2019 · I got a problem with some feature of Zabbix, I think i did not understood all. : By applying a regular expression to the value obtained by the {ITEM. : Macro = (abc|cdb) Item value = abc Trigger = itemValue = macro [true] Ex. No matter what type of data gatherer is used, the idea is the same for active or passive checks, for trapper items, etc. threshold. VALUE} is supported for trigger names !!! See some pictures as proof. Trigger will only potentially fire if the trigger is enabled. 5 Now, if the list of ignored values changes, you only need to update the macro rather than modifying potentially multiple items. Is that possible, to do that cleanly? As far as I know, the "Operational data" field accepts only {ITEM. When macro is expanded after discovery - only clean item name or graph name can be seen absolutely identical to the one that you would statically define. If you already knew this, call yourself a Zabbix macros global macros for global one-click configuration changes and fine tuning; Macro context. {#SNMPINDEX}] May 6, 2017 · I'm trying to monitor web services on a large number of servers using zabbix proxies in different cloud datacenters to get stats from multiple geographic locations. tr: Transliteration of macro value characters. I created the trigger with these settings, Name : Disk Space Used Above 2GB, Current Value : {ITEM. User macros, user macros with context, low-level discovery macros and macro functions with {{ITEM. Search. Say something like: ["abc", Then, define the macro in Administration → General → Macros with a value like: 10. At this point, the data contains only ID, timestamp and value (can be multiple values as well). 0, so it will be supported in your front end if you have at least Zabbix 3. Jan 11, 2021 · Either make one Item for each value (with the same Powershell), or issue the command once and split the output into several values. *} macros? Using localhost is not an option for me - I want to test the public interface and I want to understand why the macros don't work as I expect it. The value in the template will thus act as a default value that is used whenever there is no other value set in the host level. discovery zabbix_agentd-t net. LASTVALUE} macros can be used to populate the tag name or tag value. , as it only changes the data format and the communication starter (either data gatherer is waiting for a connection and data, or Therefore I'd love to know if there's any way to list all the macro values for a specific host in Zabbix. Change per second is If used, the value must be a single macro. However the effective vale is coming from our Host macro. Using Zabbix regular expression in triggers allows you to create more precise conditions. urldecode: Decoding macro value from Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. *} macros will be resolved depending on the first trigger in the list (based on trigger severity). From the perspective of the client-performance, I´d rather use one single command and process the output into Zabbix, than do this job 3 or four time to get every out in single items. The values we can check in Configuration > Hosts > Zabbix server > Macros > Inherited and host macros and add these filters to our low-level discovery. *}, {ITEM. VALUE<1-9>} macros can be used in expression macros to display a value of the Nth item-based function in the trigger expression. Possible Empty macro is required, so Zabbix can differentiate item or graph from the prototype. There are different levels of macros that override each other, which makes the system much more versatile. Dec 3, 2021 · Hi, I am pretty new to Zabbix, but I know about the importance to use templates. highlights. For example, in an external script an ‘echo’ statement referencing a secret macro may be used Mar 5, 2019 · What are tags in Zabbix? The possibility to tag events first appeared in Zabbix 3. It not display Historical data (when event happened), it display simply latest value. Tip: You may use the 'count' function with the like operator to count string values that match a Zabbix should be configured according to the instructions in the Templates out of the box section. where. Zabbix uses an external utility fping to process ICMP pings (icmpping, icmppingloss, icmppingsec). ICMP pings. 2. So we specify that interface name ‘does not match/matches‘ the user macro. We can have a server where having 10% of free space is perfectly fine, and a server where anything below 20% is a cause for concern. - supported if Display item value as is set to "Numeric" Threshold: 1: columnsthresholds. Is it possible to link the same template twice passing somehow different MACROS values? I read that exist MACROS with context that could be used in LLD , but I can't figure out if it's possible to define a LLD in this case , considering that is the endpoint to be parametric. interesting suggestion. 0: Any string value. Multiple macros in one field or macros mixed with text are not supported. In this screenshot we can see that there is a Global macro defined with a value of 100 and that we have the same macro on Template level that overrides the value of the Global macro. Jul 28, 2022 · Provide context and define custom problem thresholds by using Zabbix user macros. I tried vfs. User macro context may include low-level discovery macros. Aug 29, 2023 · (Zabbix 6. Setup. host:item. if. Fill the name and key with meaningful values; In the Preprocessing tab, select the SNMP walk to JSON preproccesing step. Those can be user macros or some of the built-in macros. To see which built-in macros are supported, do a search for "Script-type item" in the supported macro table. I. You may want to manipulate the value of a macro, to shorten or extract a part for example. If the key parameter is a quoted string, any Unicode character is allowed. For example, the {HOST. Parameter behavior: - supported if Display item value as (Optional) Set custom macro values and add macros with context for specific metrics following the macro description. I would like the ability to create new line/carriage return for this text. User macros and user macro context is supported for the tag name/value since Zabbix 3. ab_service storing same values in both macros. Parameter - quoted string. g. SOURCE} Numeric value of the event source. NAME} macros in the formula. So total trigger name: "AP Connection Lost: Tielt-Jeugd 03 - Jeugd3 1eV grote zaal - 172. Macros used Select horizontal position of the item value - left, right or center. Zabbix server and proxy may query SNMP devices for multiple values in a single request. This can be used to display values in map labels or graph names. Ensure these values are configured appropriately in the item key. Oct 10, 2020 · Hello everyone, I'm trying to monitor a cluster of firewalls (fw 0 and fw 1) In each fw, there's 2 CPUs (cpu 0 and cpu 1). Description. I hope some of you can help me ! So, I Want to put in the trigger name the latest data sending by "zabbix_sender". For example, a trigger prototype could be defined for mounted file system discovery to use a different low space limit 3 User macros with context Overview. 3. With JSON, it will return [22] and you will have to remove [and ] characters to store "22". Feb 16, 2025 · 1: that one comes from zabbix agent template which has include/ exclude regex macro to fine tune it to your working scenario. Apr 18, 2025 · Host overrides, managed to get this working based on tags in LLD macros adding the required templates. While applying filters Abc1 matches . Item - last value of the selected item will be the maximum value Sep 12, 2010 · Macro {ITEM. Elles correspondent à des macros interne à Zabbix, elles sont représentées via cette notation {MACRO}, la liste complète est disponible ici. iregsub(pattern, output)} Retrieve a new value for this item every N seconds. Macros resolve to a specific value depending on the context. As the LLD Macro function needs a JSON path this doesn't work, there is just a string which is the token. Define a trigger tag for the log monitoring item trigger that will extract values from the item value using a macro (for example, service:{{ITEM. Macro functions are supported with low-level discovery macros (except in low-level discovery rule filter), allowing to extract a certain part of the macro value using a regular expression. Contents. Advanced Search; Forums; New Topics; Today's Posts; Macro with multiple values 29-09-2020, 10:44. The values will be periodically calculated based on an arithmetical expression and done by the Zabbix server – nothing is performed on Zabbix agents or proxies. *}, and user macros are supported. avg(5m)}>5 A trigger may have several tags with the same name, but different values. I have a metric named Ab_serive which contains name like abx-main abx- backup I am storing {#abc1} $. Maximum length of a user macro value is 2048 characters (255 characters in versions before 5. regsub: Substring extraction by a regular expression match (case-sensitive). Oct 15, 2019 · If I am not wrong, context macro was introduced in Zabbix 3. Mar 5, 2020 · Therefore, if multiple values are configured for Service type, Service port or Received value conditions in the action, they will be compared to one discovery event at a time, but not to several events simultaneously. info Jan 20, 2023 · When configuring monitoring and using templates in Zabbix you often see low-level discovery (LLD) used for finding out the monitored components or features of a host. Jan 28, 2025 · From this I m fetching multiple lld macros. Calculated items . RECOVERY. Select the corresponding OID path to discover values from. For example, a trigger prototype could be defined for mounted file system discovery to use a different low space limit The common mistake is to not make item names unique, Zabbix will tell you it cannot create an item because it already exists. VALUE<1-9>} and {FUNCTION. The output of this check is a JSON list. I have been able to implement the desired behavior using the count() function with the "regexp" matching: Transformation of macro value characters into lowercase. Watch the video now. So, you can't put multiple values in the same MACRO, and you'll need to use several macros for that purpose. Used only when retrieving host macros. garage. Zabbix also collects the list of discovered indexes for the specified OIDs and automatically matches them with the {#SNMPINDEX} low Oct 21, 2020 · value-prev_value. select values with Database Discovery Item. VALUE}". Multiple macros or macros mixed with text are not supported. Possible values: 0 - Not classified, 1 - Information, 2 - Warning, 3 - Average, 4 - High, 5 - Disaster. 2: Macro = (abc|cdb) Item value = jkl Numeric value of the cause event severity. Feb 1, 2019 · There is a way to make it a template of a trigger using a user macro. *backup May 27, 2013 · Zabbix supports a {TRIGGER. Test availability: zabbix_get -s docker-host -k docker. In message subjects and message text you can use macros for more efficient problem reporting. Multiple values should be separated with commas. VALUE<1-9>} macros can be used to reference function values of the trigger expressions and trigger recovery expressions, for example: Mar 5, 2023 · Hello there :-) here is what i want to achieve : i need to retreive a authentification token from an API, then use this token in several http agent items so i configured a script called SCRIPTNAME in zabbix frontend, containing a curl command like this : curl -s -X POST -H 'Content-Type: application/json' -d 8 Value mapping Overview. Possible values: 0 - Zabbix agent; 2 - Zabbix trapper; 3 The syntax in EXPRESSION is the same as in trigger expressions (see usage limitations below). In those cases where that may lead to misinterpretation when referencing (for example, a comma in the parameter of an item key) the whole reference may be put in quotes like this: "@My custom regexp for purpose1, purpose2". VALUE} macro, which returns the current trigger status as an integer (0 – ok, 1 – problem) and can be used directly in trigger expressions. in[ifInOctets. Aug 4, 2023 · Hi, i need some help with regex en regsub within zabbix. For, QAT, I want the threshold to be 95%. 4, item tags have completely replaced applications. LASTVALUE} macro or a low-level discovery macro {{ITEM. HOST} built-in macro can be used to retrieve the host in a trigger expression, or the macro {HOST. Three value types are supported: Text (default) - plain-text value Secret text - the value is masked with asterisks Vault secret - the value contains a path/query to a vault secret. An indefinite path can return multiple matches: JSONPaths with detached, multiple name/index lists, array slices, or expression segments. VALUE}. Over time Zabbix preprocessing evolved even further and extended the functionality in Zabbix 4. 1. regrepl: Replacement of character/substring in macro value. Jul 20, 2015 · We need to monitor a database table for response time of an action within our system. 1 In the fields marked with 1 a single macro has to fill the whole field Mar 28, 2024 · I use macros to define standard text which can be referenced in things like trigger "description" fields. Jan 2, 2018 · 4 Using macros in messages Overview. Other stays as {#MACRONAME}. An optional context can be used in user macros, allowing to override the default value with a context-specific one. cars update interval : 1h I don't get errors in GUI, but I would like to create the dynamic items (brand) and see their dynamic value (nb) for my host. A single macro has to fill the whole field. *backup Abc2 matches . 2 as a part of event correlation. The issue(s): 1. 5) Wanting dashboard widget to list all disks on multiple windows servers, to iterate through all the drives attached to server and display them in a widget. Value - the label will display the item value with decimal places as specified in the Decimal places parameter. 24. For icmpping* items, the timeout and retries values are specified directly in the item key and not influenced by the global Timeout parameter. Using general macros is pretty . The "tailedness" of the probability distribution in collected values within the defined evaluation period. 1-192. Setup and configure Zabbix agent 2 compiled with the Docker monitoring plugin. 4, I have created a template for doing checks on a DB2 database. I know I can create the items and triggers directly, but I was hoping to create this in a generic way in a template I'm using Zabbix 4. I have no May 29, 2017 · The easiest way to populate the keys of a discovery item is to add a “UserParameter” in zabbix_agentd. Script: Enter JavaScript code in the modal editor that opens when clicking in the parameter field or on the pencil icon next to it. 0. In addition to a number of built-in macros, user macros and expression macros are also supported. Installation The order of selected triggers can be changed, but only within the same severity of triggers. VALUE} and {ITEM. If we remove the preprocessing rule, and create a LLD Macro: {#BEARER} : $. Customizing Trigger Alert Messages with Macros Video Lecture. For LAB, I want the threshold to be 99%. // 1 In editing mode// the first displayed {HOST. odbc. VALUE} macro in a recovery expression because this expression is only evaluated when the trigger is in the "Problem" state. *main Abc1 doesnotmatch . A combination of text and supported macros is possible. Examples here illustrate how you can use macros in Value: Macro value. The problem is that I can not get multiple values/columns from SQL select statement. access_token. selectTemplates: query: Return templates that the host macro belongs to in the templates property. Multiline text is supported. User macros Before we actually get to the context macro, we need to understand what a macro is. discovery zabbix_agentd-t vfs. Feb 18, 2022 · Starting from Zabbix 5. name [b] 's value now becomes available in {%VALUEMACRO} . Return template groups that the template macro belongs to in the templategroups property. Jul 1, 2019 · I have experimented with macros, pre-processing (under item) and anything else i can think of, reading extensively through the Zabbix documentation with no solution. Calculations may use both: single values of individual items; a complex filter to select multiple items for aggregation (see aggregate calculations for details) Jan 19, 2024 · This way, we create multiple low-level discovery macro and OID pairs. In the trigger configuration , set up event correlation : Evaluated as value-prev_value, where value - the current value; prev_value - the previously received value; Only one change operation per item ("Simple change" or "Change per second") is allowed; If the current value is smaller than the previous value, Zabbix discards that difference (stores nothing) and waits for another value; However, we have a new value to be checked, and would like to add it to the same macro, in a way that it would not matter if it is one, two or three values to be compared. LLD macros in the host. NAME macro If you insist on using just one host then you just need to hardcode them as already suggested. Low-level discovery overrides. , 30s, 1m, 2h, 1d. LASTVALUE} and functions to extract a part of the macro value by using regular expressions (see documentation). Jun 29, 2020 · Macros can be used almost anywhere within Zabbix and allow you fill an unlimited number of variable fields that retrieve the value from a single set macro. However, the value of a step-level variable only affects the step after (and not the current step). VALUE} Jul 17, 2020 · I would try to stop using user parameter, I've achieved similar results by enabling remote commands and using system. . {EVENT. Change per second; Change per second — calculating the value change (the difference between the current and the previous value) speed per second. , and also to have the correct If used, the value must be a single macro. This affects several types of SNMP items: regular SNMP items; SNMP items with dynamic indexes; SNMP low-level discovery rules; All SNMP items on a single interface with identical parameters are scheduled to be queried at the same time. zabbix_agentd-t vfs. See MPM event discovery in Zabbix 4. While the value of a secret macro is hidden, it can be revealed through use in items. Mar 10, 2023 · There is a way to use macros to set thresholds. Size: Enter font size height for the item value (in percent relative to total widget height). Multiple trigger selection also affects {HOST. icon indicates a secret Vault macro. When you link the template to a host, by default the threshold is the value set in the template's macro. *main Abc2 matches . You may also view here template-level and global user macros if you select the Inherited and host macros option. dev. Text: Enter the label text. Zabbix will replace the macro with its actual value when In the definition of the item, you have a field named something like "value macro". sortfield: string/array: Sort the result by the given properties. Apr 18, 2025 · does not work, because the value of the user macro gets quoted as a single string argument instead of being split to multiple arguments. 4 “Template App Apache by HTTP” template as an example. Request: Fixed thresholds in templates Different servers may have different threshold values for items like CPU load, free memory size, number of processes etc. Event tags are realized as a pair of the tag name and value. For example, in PRODUCTION, the default 75% is fine, so I will take the global macro value. To change the value type click on the button at the end of the value input field. The user enters their desired macro name here. So I created a discovery rule, wich have to create 4 items : - FW 0 CPU 0 - FW 0 CPU 1 - FW 1 CPU 0 - FW 1 CPU 1 In my discovery rule, I have set this SNMP OID : Specify the variables to be passed to the script as the attribute and value pairs. Let’s have a look at this example: Jan 10, 2019 · Is it possible to define a host user macro with multiple values in an array ? I want to create a list of processes for specific hosts that need to be checked if they are running. cpu. 2,10. I'd like to take multiple strings (from multiple varbinds) and use them in a single trigger name. value — current value; prev_value — previously received value. Aug 1, 2024 · Applying Regular Expressions in Zabbix Using Regex in Triggers Triggers are a vital component of Zabbix, generating alerts based on specified conditions. 1 If multiple macros in a field or macros mixed with text are not supported for the location, a single macro has to fill the whole field. Configure an Item value widget that displays the item value for the item "42266" (Zabbix agent availability). 2 Macros used in tag names and values are resolved only during event generation process. Used only when retrieving template macros. Whats the best way to achieve this WITHOUT creating multiple templates? AND without going to each server's macro and updating it manually? Host group: PRODUCTION server1 Step-level variables override scenario-level variables or variables from the previous step. item1. URL macro if you want (use it in template and define value in host level). Hello, Jul 14, 2020 · The issue with that is the macro will always point to the "name of the Nth item in the trigger expression". discovery[description,MSSQL] Substring extraction is usually used for populating the tag name or tag value, with a specific value using a macro function, i. Y axis MAX value: Maximum value of Y-axis: Calculated - Y axis maximum value will be automatically calculated. VALUE}}, {{ITEM. This is what I did: 1. Each built-in macro can be used in one or more cases. For each server, I've created multiple hosts e. Currently the support macros are {ITEM. *} macro resolution both in the editing and view modes. Multiple macros filtering (useful not only for SNMP). VALUE} and all should be fine. A definite path returns the object/array/value it is referencing. For a complete list of all macros supported in Zabbix, see supported macros. SNMP agent net. LASTVALUE}} and low-level discovery macros are supported in event tags. In the trigger conditional expression in the template, create a conditional expression that compares with the macro value as a threshold, and set the macro in the template. LASTVALUE} also works, but is different. Change per second. As described in the documentation, macros are variables which are replaced by value depending on context in which they are used. For example, in an external script, an echo statement referencing a secret macro may be used to reveal the macro value to the frontend, because Zabbix server has access to the real macro value. That is what a calculated item is for. A full list of macros supported by Zabbix is available. For instance, you can use regex to match specific log entries that indicate errors or warnings. MySQL, Service:MySQL, Application:Java etc. VALUE}, {ITEM. Important points here: You need to use Macro and macro function in trigger fields to extract data from value. regsub()}). What I am looking to do has 2 steps: LLD rule #1: Discovery all sensors. uppercase: Transformation of macro value characters into uppercase. Host override does not have the option to add User macro's only tags which I cannot seem to use in user macro in the template Join Zabbix events in multiple languages and regions the context macros references for less time than the threshold value. But when an outage occurs it sends me a SNMPTRAP and the trigger is activated and I change icon indicates a secret text macro. May 4, 2023 · Hello I wanted to see if it is possible to change the time intervals that I have predefined in a host, when a trigger is activated. Calculated item parameters Dec 14, 2022 · You can click the Change link for any of the macros to enter a new value for that macro, and that value will then be used for everything for this host. Even if LenR shows usage of same item twice (last vs avg over time plus some multiplication), you can compare 2 separate items with each other. Macro support {ITEM. For example, you may want to calculate the hourly average of some item value or to calculate the total value for a group of items. Instructions – Custom Discovery: Discover All the Things! Add the file “userparameter_custom. Note that the size of item value is prioritized; other elements have to concede space for the Name Value Description; event_source {EVENT. Note that macro values can be kept as plain text, secret text or Vault secret. To do so, the regsub macro function can be used with the macro in the event tag value field of a trigger prototype: For more information on macro function syntax, see: Macro functions. The context is appended to the macro name; the syntax depends on whether the context is a static text value: Jun 9, 2016 · I have a problem with using a predefined macro in Zabbix. max(/MSSQL by Zabbix agent 2/mssql Dec 22, 2022 · name : car brand type : zabbix agent key : discovery. Fixed - fixed maximum value for Y-axis. I have defined two macros as following: {$HOSTNAME}=2008-windows-server {$IPADDRESS}=192. CAUSE. key[{#SNMPINDEX}] it works, but if I would need to use multiple LLD macro names in the Key or even in the Name field (other macros besides SNMPINDEX), then only one macro gets translated into value. Adding a description is also supported. Is there a way to add a new line to the macro value? Thanks. *}, {INVENTORY. global macros for global one-click configuration changes and fine tuning; Macro context. We can also filter the interface name out. last() >item2. This function is case-sensitive. Problem thresholds can vary for the same metric on different monitoring endpoints. VMware monitoring has received multiple improvements and fixes in Mar 2, 2025 · The returned values are variable, so not every server's response will contain the same domains to check for. Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines and network devices. If you use {ITEM. Here is a list of all zabbix macros that are accepted by the manager hosts. Apr 29, 2020 · Here we can specify filters for our interface names. Thankfully, overrides introduced in Zabbix 5. You can use this macro to create tags that indicate the state of an item, such as "state: up-{ITEM. In this post, I will explain how user macros and regular expressions are used in LLD for filtering the discovery results. However, when a function is used, the JSONPath becomes definite, as functions always output a single value. Search in titles only Search in Zabbix Help only. Or is there a better way to use the {HOST. Let’s recall how LLD works. Define Zabbix user macros with context: Dec 11, 2024 · The new {FUNCTION. e. Maximum allowed update interval is 86400 seconds (1 day). Feb 26, 2022 · Vault secret - the value contains a reference path (as ‘path:key’, for example “secret/zabbix:password”) to a Vault secret Note that while the value of a secret macro is hidden from sight, the value can be revealed through the use in items. My Discovery rule has {#IFNAME} & {#ITEM. This text may override the default item name. Time suffixes are supported, e. mad: The median absolute deviation in collected values within the defined evaluation period. Or if those URL-s somehow relate to hostname, just use HOST. For example, when an item's value is "0" or "1," value mappings can be used to represent these values in a more user-friendly manner: 0 → Not Available; 1 Mar 29, 2019 · What are macros in Zabbix. ab_service {#abc2} $. However, when a function is used the JSONPath becomes definite, as functions always output single value. min: The lowest value of an item within the defined evaluation period Mar 16, 2022 · You can compare multiple item values or use them in math operations. : zabtest-via-proxy1, zabtest-via-proxy2, zabtest-via-proxy3, etc. 151" i have the following SNMP trap: 10:40:31 2023/04/07 PDU Name Description Expression Severity Dependencies and additional info; Certificate: SSL certificate is invalid: SSL certificate has expired or it is issued for another domain. depends if it's created by LLD or it's a template trigger or only host trigger. Possible values: 0 - Trigger, 1 - Discovery, 2 - Autoregistration, 3 - Internal, 4 - Service. VMware monitoring improvements. fs. conf” to your Zabbix Agent include directory. 12 Thanks for your advice Note: To configure multiple values, create a dashboard widget field object for each value with an incremented number in the property name. VALUE<1-9>} macros. Feb 1, 2022 · Define trigger using in() function with user defined macro containing single value = works; Define trigger using in() function with user defined macro containing multiple value = does not work; Result: Working: Not working: Expected: Trigger should be able to evaluate in() result based on the multiple values in the user defined macro Feb 11, 2013 · Zabbix doesn't permit to use the same item for getting multiple values at once. It also introduced a variety of new approaches to transform the data before storing it in the database: regular expressions, simple trims, XPath and JSONPath support. For example I have a UPS that does not change much over time and I monitor its ITEMs by SNMP every hour. As a result, actions with multiple values for the same check types may not be executed correctly. Under the hood LLD is a JSON array with LLD macro and macro value pairs: Dec 8, 2021 · Hello, I'd like Zabbix to show one more item in the "Operational data", formerly known as "Last Values". 114): Now let’s look at the refresh rate and storage time for the various interfaces in the “Latest Data”. Zabbix is Open Source and comes at no cost. last() or item1*item2 > X etc Sep 7, 2021 · You can also imagine the LLD rule bloat that would occur in large infrastructures with many unique entities. If the discovery / item creation work, look a the item, Zabbix will tell you why it can't store the value. My issue is, I can't seem to quote get the LLD macro correct. Macro functions are supported in low-level discovery macros since Zabbix 4. I h It is unproductive to use the {TRIGGER. size[{#FSNAME},free] but get no Dec 7, 2017 · My unixODBC connection on zabbix server works fine and was able to get single db. Low-level discovery macros and user macros are supported in item prototype configuration and item value preprocessing parameters. To solve this issue, I'm attempting to have Zabbix use discovery rules with LLD macros and item prototypes to dynamically create the items. Maximum length of a user macro value is 2048 characters Transformation of macro value characters into lowercase. Created new Template with Discovery Rule: Type - Database Monitor Key - db. Is this possible with Zabbix? I tried creating a Database monitor item with the following sql: Jan 31, 2017 · A way to customize macro values by applying simple functions was added in Zabbix 3. 254. You can either use just the name or pair it with a value, e. Macro {ITEM. Trigger severities are used for: visual representation of triggers - different colors for different severities; audio in global alarms - different audio for different severities; Sep 29, 2023 · I have a Zabbix item named Corrupt Sessions, that calls a custom check (UserParameter) with the key corrupt_sessions. Multiple macros in a field or macros mixed with text are not supported. For example. In detail: I mean the ability to get for example IF-MIB::ifDescr and IF-MIB::ifAlias etc in one discovery rule and then use {# SNMPINDEX} macro and two or more values of {# SNMPVALUE} macros in name of items, graphs, triggers prototypes for this rule. In all those places, except the low-level discovery rule filter, LLD macros can be used inside static user macro context. Using macro functions. Sounds great! You can use macros and Zabbix replaces those variables by values it calculated or you have specified somewhere else. NAME2} in your macro message, it will always notify for the second item in the expression, even if the trigger was started for the first item. I want to monitor temperature of each CPU. A real life scenario In this example, we would like to set up network discovery for the local network having an IP range of 192. OBJECT} → Trigger-based notifications and commands → Problem update notifications and commands → Manual event action scripts: Numeric value of the cause event object. icurp jmry klc caexir urqkh sadyt rqogyv rtfzue kem tff