Zabbix macro multiple values To begin with i created a new template, added a discovery rule and named the key win. 6 So far this is my Multiple times trigger generation in Zabbix. Is there a way to add a new line to the macro value? Thanks. Each request makes some load on a server. Hi all! We're currently migrating our Nagios-setup to Zabbix, and I'm trying to find a clean way of implementing our diskcapacity-checks. Comment Post Cancel 1 Escaping special characters from LLD macro values in JSONPath. Effective use of macros allows to save time and make Zabbix configuration more transparent. Hello, I'm a first time user of Zabbix with next to zero experience. In addition to a number of built-in macros, user macros and expression macros are also We need to monitor a database table for response time of an action within our system. 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. Is it possible? What I want to do is that I run a remote command to get the instance ID of an Amazon EC2 icon indicates a secret text macro. ; Comments: If the function pattern is an incorrect regular expression, then the macro evaluates to 'UNKNOWN' You can compare multiple item values or use them in math operations. If new values are coming irregularly, it may happen so: 1) Value arrives, trigger is triggered. Attached Files globalmacro_mod. You need to construct a regex that suits your needs and matches only names that you need. These previous values are handled by the preprocessing manager. VALUE<1-9>} to point to the first, second, 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). sw. VALUE<1-9>} 8 Macros Visão geral. This is why I specified 60 as the macro value because my drive How to define macros with context: Navigate to Configuration → Hosts; Click on the Discovery button next to your host; Press the Create discovery rule button; We will use the net. 1 Additional JavaScript objects. 参数以空格或双引号开头; 包含闭合括号 "``" 或逗号。 可选的函数参数用 < > 表示。 btoa. The service. Other stays as {#MACRONAME}. These macros can be used for creating item, trigger and graph prototypes. . At the moment, I achieve my goals as follows:. All of our Servers have a strict naming convention, where the first 7 characters of the hostname are also the Sites Name too. Hi all, I have a template to monitor jmx object with a lot of items . From the template I can see that the serial is fetched under "Wireless ZABBIX BUGS AND ISSUES; ZBX-20507; User defined macro not supporting multiple values using in() 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. A full list of macros supported by Zabbix is available. VALUE}=1 and {Template_App_JAMS_Agent:app. 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). last() or item1*item2 > X etc Value returned by the function: 210. 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. This scenario only have 1 step which is to get the homepage of the "host" and expect to get a 200 Active agent checks can now be requested from multiple Zabbix hosts, by specifying these hosts in the Hostname agent parameter as a comma-delimited list. Hi, Let's suppose I have 3 hosts : www. Do you have an advice how to solve this to reduce the amount of effort to add new hosts? Regards. VALUE}, {ITEM. 1. I would like to create a trigger for all the web scenarios of that host, for example: If the response time for any of the scenarios is over X than I'm trying to find a simple way to have it done, but I didn't find much The {#MY. *. Request: macro - la macro a personalizar, por ejemplo {ITEM. This is what I did: 1. LASTVALUE} and functions to extract a part of the macro value by 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 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 = Alternative solution: use a Grafana Zabbix panel and Regex to stack all values into a single graph. Monitor multiple values within one Item in Zabbix. To select macro value type click on a button at the right end of the Value input field: icon indicates a text macro icon indicates a secret text macro If I add a partial DB name to this MACRO field will it pick up any DB with that partial? Example: Will this ignore all databases with _Temp_ in the name? If not, would *_Temp_* work? It is a macro that is used in an LLD rule and returns real values of file system names, network interfaces and SNMP OIDs. Hi, i read in form that if devices have community different from public you can change making a full clone of the used template, make a mass unpdate on snmp community field and apply the new custom template to your devices and is ok. Today, I tried to add two items into one text widget, but this somehow doesn't seem to work. Created new Template with Discovery Rule: Type - Database Monitor Key - db. This obviously - at least currently - does not work. discovery[description,MSSQL] Zabbix item will be type Zabbix trapper in this case. Define a tag with a macro as the tag value (for example, tag Then you can template it, use that WEB. Maximum length of a user macro value is 2048 characters (255 characters in versions before 5. Version is 4. VALUE<1-9>} macros can be used in expression macros to display a value of the Nth item-based function in the trigger expression. For example, I would like to set from the Agent the value of APACHE. Multiple macros in one field or macros mixed with text are not supported. HOST}:{ITEM. It is not as complicated as it sounds. If the response time is above a threshold, we need to send an alert with details of the Unfortunately Zabbix does not support sending back multiple values [1, 2, 3, 4]. CAUSE. Multiple macros or macros mixed with text are not supported. Modifying of template file to get multiple values from discovery 07-02-2024, 15:13. Possible Tags have multiple purposes, most notably, to mark events. 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. Macro {ITEM. Trigger name: Value Changed Operational data: Value Changed from {ITEM. When Zabbix faces macro it will look for it's value in the following order: host macro (the one the item belongs to, ignoring the template) if not found - template macro (if the item comes from template) I want to use "one" Template Item on one host multiple times, but with different Variables (macros). Hot Network Questions Note that for Change and Throttling preprocessing steps, Zabbix has to remember the last value to calculate/compare the new value as required. macro - 要定义的宏,例如 {ITEM. " If I define the key as item. We have followed the recipe described here to configure a custom alert script: https://www. Cheers. Upgrade your heroes, collect unique gear, and unlock new Champions in regular See how Zabbix's LLD features and the ability to leverage user parameters to extend Zabbix agent make NetBackup easier to use. file"-Key in the item. 6 CSV to JSON preprocessing If more than one user macro with context exists, Zabbix will try to match the simple context macros first and then context macros with regular Resolved Thanks Andre! - now working fine. " This is obvious. In message subjects and message text you can use macros for more efficient problem reporting. I have multiple values in json reply from a url. For example, a trigger prototype could be defined for mounted file system discovery to use a different low space limit Therefore I'd love to know if there's any way to list all the macro values for a specific host in Zabbix. Currently, Im using the Template "Apache by Zabbix agent" in a Autoregistration action. STATUS. All problems of this trigger will be tagged with the values entered here. VALUE} is supported for trigger names !!! See some pictures as proof. ZABBIX BUGS AND ISSUES; ZBX-20507; User defined macro not supporting multiple values using in() ITEM. Pull new item value on demand. process. VALUE<1-9>} and {FUNCTION. 6 KB, 570 views) it is regex there ". PORT because Hello, team. if. For example, a trigger prototype could be defined for mounted file system discovery to use a different low space limit depending on the mount points or file system types. CONN<1-9> On our old Zabbix installation I made a bunch of macros in a template for the web scenarios and had to adjust some (e. The common use case for macro contexts would be using a low-level discovery macro value as a user macro context. If you use the aggregate check, just be careful with the name of the group and the Each built-in macro can be used in one or more cases. It not display Historical data (when event Since you have multiple data elements involved in the trigger, you should also use a call to multiple data elements in the message. get_A. URL macro if you want (use it in template and define value in host level). php", "zabbix. Login or Sign Up Multiple Item Values in Trigger Name 15-01-2021, 17:27 This macro may be used with a numeric index e. conf, and then the Zabbix agent will invokes a script which returns the set iregsub(pattern,output) Substring extraction by a regular expression match (case-insensitive). I need to report the current and previous values of my host's cpu utilization value when it changes. jams. The regex does not seem to be working. To clarify in further detail for anyone else interested; My initial assumption was incorrect - You do not need a User Macro on your host to get item specific data onto your map. For LAB, I want the threshold to be 99%. I have created another script that returns that value, and I can create Items for each one. HOST}:system. User macros is a long-established mechanism used in Zabbix ubiquitously, giving the monitoring system the flexibility it needs. Both the server and agent are Debian 11, Zabbix server version is 6. 1 Customizing macro values is supported only for couple of macros, like {ITEM. info key item will let me track the service state as I need it - but I'm running into an issue where I need this to be a bit more "dynamic" in that it needs to know if the cluster node is the desired Primary vs. Delete two host macros. [{#ENTPHYSENSORUNITSDISPLAY}] to extract a list of units to use from the following discovery rule: a complex filter to select multiple items for aggregation Calculated items may be referenced by macros or other entities same as any other item type. VALUE2} global macros for global one-click configuration changes and fine tuning; Macro context. Here is my situation. The common use case for macro contexts would be using an LLD macro value as a user macro context. Round the number "18. I would like to know if there is any possibility that from the Zabbix Agent configuration the value of a MACRO of the template can be setup. Flexible intervals may be written as two macros separated by a forward slash Possible values: 0 - Zabbix agent; 2 - Zabbix trapper; 3 - Simple check; 5 - Zabbix internal; 7 - Zabbix agent (active); 10 - External check; 11 - Database monitor; Zabbix resolves macros according to the following precedence: If a macro with the same name exists on multiple linked templates of the same level, the macro from the template with the lowest ID will be used. Last edited by Hey folks, I recently upgraded my Zabbix infrastructure to v7 and have been very happy to see that there was now a zabbix agent 2 plugin to collect metric from MSSQL server without DSN. 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. Los parámetros de función opcionales se indican con < >. *} macros? Using localhostis not an option for me Monitor multiple values within one Item in Zabbix. A simple expression uses a function that is applied to the item with some parameters. Tip: You may use the 'count' function with the like operator to count string values that match a It is a macro that is used in an LLD rule and returns real values of the file system name, network interface, SNMP OID, etc. 2. name [b] = VALUE2 => {%VALUEMACRO} So item. zabbix 8 Value mapping Overview. Zabbix 2. MACRO} will contain the value that it gets from OID you sepcify. host:item. Honestly I want to monitor netflow data of an ESXi which contains 10 VMs within Zabbix. Zabbix: add variable/macro in "Query fields" on web I'm trying to make a template for Debian/Ubuntu package versions (since Zabbix's system. num} Any idea of the issue here ? It seems that Zabbix may compare the first received value (let's say from the SNMP command) with Linux, which will not match. Then, when discovering real file systems, network interfaces etc. Vertical position: Select vertical position of the item value - top, bottom or middle. In fact, these are variables that you can assign with global visibility, a template or a host. I configured it with no issue (zabbix plugin installation + configuration of the template) BUT I am now trying to make it work on a SQL In this script I update the values from Global Macros so I can use these macros in the filename of the "vfs. get_C. VALUE} and all should be fine. Each item has different key and ZABBIX BUGS AND ISSUES; ZBX-20507; User defined macro not supporting multiple values using in() If used, the value must be a single macro. \0 returns the matched text. In another attempt I looked at the user macros with context, but I don't think that can solve my issue - at least I Zabbix low-level discovery (LLD) provides a way to create an array of related items, triggers, or graphs without needing to know the exact number of entities up front. icon indicates a secret text macro. In one of typical uses, a macro In message subjects and message text you can use macros for more efficient problem reporting. size[{#FSNAME},free] but get no ZABBIX BUGS AND ISSUES; ZBX-20507; User defined macro not supporting multiple values using in() 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 If this is your first visit, be sure to check out the FAQ by clicking the link above. So total trigger name: "AP Connection Lost: Tielt-Jeugd 03 - Jeugd3 1eV grote zaal - 172. In addition to a number of built-in macros, user macros and expression macros are also supported. In this example from the Zabbix website, Zabbix will map {#FSNAME} to one of the detected logical volumes I'm attempting to create some more intelligent triggers for our Database Clusters in order to track the service desired state. The Tags tab allows you to define trigger-level tags. 5. 0 Expand Macro is On Label values I have tried are is {{HOST. "History storage period (in days)" option for an item specifies, how long values are kept, older values are deleted from the database. - I create a script for each field "zabbix. The script works fine, mails are transferred. 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. Here is a list of all zabbix macros that are accepted by the manager hosts. I want to have a lower threshold which only alerts via email, when capacity usage is >= 90% (representing WARNING in Nagios). then we can automatically create items based on the received low-level discovery macros and their values. VALUE resolves just fine to the name of the current node, but ITEM. JPG. NAME} macros in the formula. metrics Then i created 2 item prototype with following key. so it matches everything. Multiple values should be separated with commas. Thanks Dear @Richlv. In addition the Inherited and trigger tags option allows to view tags defined on template level, if the trigger comes from that template. Note that if the field value is a macro with a text value, the field will be filled with the resolved For a complete list of all macros supported in Zabbix, see supported macros. where {#MACRO1}, {#MACRO2} are valid lld macro names and oid1, oid2 are OIDs capable of generating meaningful values for these macros. sortfield: string/array: Sort the result by the given properties. interesting suggestion. empieza con un espacio o comillas dobles; contiene paréntesis de cierre "``" o una coma. Bit of a quick and dirty hack, but it's preferable to creating 10,000 new items through the web interface! LLD Macro as a item value . \1 - \9 placeholders are supported to capture groups. If there are multiple templates with the same tag, these tags are displayed once and template names are separated with how to create trigger with multiple conditions 24-07-2014, 09:51. Let's say I want to monitor fields A, B and C. VMware monitoring has received multiple improvements and fixes in I would suggest writing a shell script of some flavor that can connect to the zabbix db -- or better yet python or ruby which use the Zabbix API -- and reverse engineer the group name from a trigger or eventid, which can be passed by an action. The only way I know to add the ESxi and its VMs easily is that create a host with the name of ESXi's name, Application names as VMs's names and items will be define inside each Application. cpu. selectTemplates: query: Return templates that the host macro belongs to in the templates property. fs. What have I done wrong? db. How can i make one reqest and then process item values from iregsub(pattern,output) Substring extraction by a regular expression match (case-insensitive). last()} {{HOST. If Zabbix server or proxy is restarted or there is any change made to preprocessing steps, the last value of the corresponding item is reset, resulting in: I use macros to define standard text which can be referenced in things like trigger "description" fields. LASTVALUE} Zabbix 1600px Default Style - Zabbix-- Zabbix 1600px; vB5 Style; Dark; Cloud; Blog; Trainings; Support; Webinars; Documentation; Downloads; Integrations &amp; Templates Monitor multiple values within one Item in Zabbix. When item value is received, it's stored in history (for string value it's in history_str table in the database). Or is there a better way to use the {HOST. Assemble a party of champions and master the art of Formation Strategy. 4, Agent version is 6. com www. last() >item2. I'd like to take multiple strings (from multiple varbinds) and use them in a single trigger name. This is useful, for example, when several Zabbix hosts exist for one physical host. state. RECOVERY. I think you can put a number in the end of your macro name: HOST. odbc. Replace you {1} with {ITEM. For a complete list of all macros supported in Zabbix, see supported macros. Example 3: Round a number. Using general macros is pretty . 8. The expressions used in triggers are very flexible. OBJECT} → Trigger-based notifications and commands → Problem update notifications and commands → Manual event action scripts: Numeric value of the cause event object. 0 Hi, i need some help with regex en regsub within zabbix. Hi, I'm new in zabbix and there is a lot of info ( to many for begginer ) about hosts. Used only when retrieving host macros. name [b] 's value now becomes available in {%VALUEMACRO} . I would like the ability to create new line/carriage return for this text. For example, the {HOST. My unixODBC connection on zabbix server works fine and was able to get single db. and placing the hosts behind zabbix proxies. Footnotes. However the effective vale is coming from our Host macro. The use of macros is strongly encouraged and recommended, for example in templates, which makes them 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. Zabbix doesn't permit to use the same item for getting multiple values at once. This function is case-sensitive. If this is your first visit, be sure to check out the FAQ by clicking the link above. 4 Host is reporting to Active proxy. 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. 2 URLs that contain a secret macro will not work, as the macro in them will be resolved as "*****". I tried of inserting macro in a macro but it didn't work. Macros estão diponíveis e identificáveis pela sintaxe {MACRO}, e seu valor dependerá do contexto. 3 URLs that contain a secret macro will not work, as the macro in In this case, more than one value may be processed. ADMIN MOD Take multiple values and get a total sum? Morning, I have a series of values that come in showing number of clients pre AP, is there It comes with three macro values that need to be filled as described in its document: "Open "Configuration -> Templates -> Template Alcatel-Lucent Enterprise OmniSwitch AOS 6. last()} My question is, where does the return value from my new script save its value, and can I reference it in the message? Hi Everyone, I am trying to fetch windows process metrics and facing some difficulties. {FUNCTION. O Zabbix suporta uma grande quantidade de macros que podem ser utilizadas em diversas situações. e. The discovered entities are grouped by {#SNMPINDEX} macro value. php". Very capable monitoring solution. item1. Note I would use a global macro that can be used across multiple templates. But especially for log items and regexps there is a better option - global regular expressions. Atsushi is on the point here try to populate that info about the devices to inventory and use inventory macros in your action message for additional info. 151" i have the following SNMP trap: 10:40:31 2023/04/07 PDU You can, with macros you can "bloat" item key almost up to 16Kchars (255 characters per key / 4 characters per macro name * 255 characters per macro). Ok, small language issues here, now I see better, what you need. We have created a mail script that will take command line input and send via O365 to external recipient. Examples Deleting multiple host macros. For each server, I've created multiple hosts e. host2. 12 Thanks for your advice This makes it easy to see if you have this macro defined already and if it will be overwritten. VALUE} o {#LLDMACRO};; func - la función a aplicar;; params: una lista delimitada por comas de parámetros de función, que deben citarse si: . Multiline Regular Expressions - Multiple values 25-10-2021, 23:37. 4. VALUE} and {ITEM. domain, port, etc. Thus having macros with the same name in multiple templates is a configuration risk. {EVENT. and multiple live streams into a single grand adventure. 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 Couple of Words about Macros. com For each host I have created a Web Scenario. The length of these macros is problem in this case. Encoding a macro value into Base64 encoding. 2 Macros used in tag names and values are resolved only during event generation process. load[all,avg1]. 0. The easiest way to populate the keys of a discovery item is to add a “UserParameter” in zabbix_agentd. ' I did on multiple hosts and no longer receive the BITS & trustedinstaller not running. Possible values: 0 - Not classified, 1 - Information, 2 - Warning, 3 - Average, 4 - High, 5 - Disaster. I had my host named "Enviromux" The item key If you need to do it multiple times, use bash to call sed several times. You may have to REGISTER before you can post. 2 calculate issue. package does not get versions from dpkg) and I am having some trouble finding what a discovery rule key value should be. AWESOME. Pass a template string to a Jinja macro. I have no Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Visit the blog 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. The problem is that I can not get multiple values/columns from SQL select statement. It is a really cool feature, and as soon as you understand how it works and what results you can get with it, you will start using it in all of your templates. get_B. Zabbix 3. Once done, import the new XML into Zabbix. Active agent. In trigger name you can only use values of the items you use in trigger expression, ie {ITEM. We have multiple servers per site, and we want to tag all of them as our host group name. ) save value into file your script will save all collected metrics into tmp file and then you have to create special items for parsing this tmp file. host1. HOST} built-in macro can be used to retrieve the host in a trigger expression, or the macro {HOST. This can be used to display values in map labels or graph names. Use of function avg: avg (/Zabbix Server/zabbix[wcache,values] Zabbix Macros. VALUE<1-9>} macros can be used to reference function values of the trigger expressions and Zabbix resolves macros according to the following precedence: If a macro with the same name exists on multiple linked templates of the same level, the macro from the template with the lowest ID will be used. Secondary node. Within the Operations default message, there are macros that expand to form the message, such as: {{HOST. Calculate a percentage of two values in Zabbix. You can use them to create complex logical tests regarding monitored statistics. In this post, I will explain how user macros and regular expressions are used in LLD for filtering the discovery results. 2 Using MACROS in item key definition. VMware monitoring improvements. A built-in macro {#SNMPINDEX} containing index of the discovered OID is applied to discovered entities. {ITEM. Maximum length of a user macro value is 2048 Return template groups that the template macro belongs to in the templategroups property. Or if those URL-s somehow relate to hostname, just use HOST. To start viewing messages, select the forum that you want to visit from the selection below. icon indicates a secret Vault macro. When entities are tagged, any new event related to a tagged entity will inherit its tags. For example, in PRODUCTION, the default 75% is fine, so I will take the global macro value. Today I am going to talk about context macro support inside Zabbix. When a value is received, it is inserted both to history, and to it's assigned "value macro". 24. Creating Zabbix trigger with item from different template. C Drive works fine, extra drives have different letters on different servers, some are F some M some U etc. 2 Browser item JavaScript objects. The user enters their desired macro name here. VALUE2 doesn't return the previous value. Each web scenario have the same name "General Web Tests". Used only when retrieving template macros. Type Zabbix Agent(Active): win. For, QAT, I want the threshold to be 95%. select values with Database Discovery Item. Some Example Servers ({TRIGGER. We are trying to configure a non-standard mailing option (MS Office 365). I tried vfs. regexp(Online|Connected|Connecting|Idle|Throttled)}=0) edit - I know it's not working as currently I have a value of Timeout to one of those keys for hours and it's not triggering. I stumbled across this point in the manual: If a user macro is used in items or triggers in a template, it is suggested to add that macro to the template even if it is defined on a global level But, if I define the macro at the template level, then global value is not used. ) of the macros at host level for each new 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. Hello, I'm looking for some solution to send / set the zabbix low level discovery as a value of the item. This can be especially troublesome if you, like us, have hosts residing in multiple groups. 2345" to 2 digits. Possible values: 0 - Zabbix agent; 2 - Zabbix trapper; 3 - Simple check; 5 - Zabbix internal; 7 - Zabbix agent (active); 10 - External check; 11 - Database monitor; If used, the value must be a single macro. I want to monitor temperature of each CPU. host3. Parameters: pattern - the regular expression to match;; output - the output options. +" means "one or more of whatever". Currently the support macros are {ITEM. Maximum length of a user macro value is 2048 Configuring an Item value widget. Like this: plain-text-widget Hi. 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. 0 Using MACROS in Zabbix. : zabtest-via-proxy1, zabtest-via-proxy2, zabtest-via-proxy3, etc. metrics[{#PID}] Type Dependent Item: The new {FUNCTION. Is it possible to dynamically create items and triggers? 0. 0+ Calculated Item on LLD does not appear. I can construct a JSONPath statement: {#UNITS} => $. So in reality I would like to link the template multiple times to a host using different values for the macros. I have just set it up to monitor a single host (so far). My Discovery rule has {#IFNAME} & {#ITEM. I was trying to collect some data from a file using regular expressions and for that I was looking for an optimal solution. 2. Examples. Zabbix external checks. 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 (array) IDs of the host macros to delete. Some very minor progress happening here. For example. I've not touch SNMP discoveries since Zabbix 4, it used old style discovery which now is called legacy . I have more practical knowledge with this discovery but it can be slightly hard to wrap your head around it when using it first time and are new to SNMP in Hello, I'm a newbie in Zabbix but I'm enjoying learning it. Size: Enter font size height for the item value (in percent relative to total widget height). 5 JavaScript preprocessing. The function returns a result that is compared to the threshold, using an operator and a constant. 1 Incorrect item key : Zabbix Monitoring trigger. Here are my settings: Zabbix Version (Servers, Proxies, Agents): latest 4. Zabbix : Item already exists, inherited from another template. ; Comments: If the function pattern is an incorrect regular expression, then the macro evaluates to 'UNKNOWN' 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. discovery key to discover network interfaces; Add the discovery rule; Press the Item prototypes button; Press the Create item prototype button; We will use the Numeric value of the cause event severity. Tags Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company I read that using LLD i can return multiple values this is my custom script: #!/bin/bash curl -s -H "Accept: application/json" -X GET In the definition of the item, you have a field named something like "value macro". O uso eficiente de macros economiza muito tempo e faz com que a configuração do Zabbix seja mais transparente. agent. Using MACROS in item key definition. link same template with multiple MACROS values . VALUE<1 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. So I created a discovery rule, wich have to create 4 items : - FW I'm running Zabbix to collect data of my FortiGate network. hmm. 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 2 Trigger expression Overview. g. 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 (). Important points here: You need to use Macro and macro function in trigger fields to extract data from value. Each script connects to the database and returns 1 zabbix_value. I would like to pass a value, collected by a remote command executed on a host, to an external script. VALUE1} to {ITEM. {$KEY} API key for the Low-level discovery macros and user macros are supported in item prototype configuration and item value preprocessing parameters. If you have default templates installed, you can take a look on "Template App Apache by Zabbix agent", where is one "Apache: Get status" item and Hi Support, I am attempting to implement a Template-Level Trigger macro. So, you can't put multiple values in the same MACRO, and you'll need to use several macros for Macros resolve to a specific value depending on the context. NAME macro If you insist on using just one host then you just need to hardcode them as already suggested. Examples here illustrate how you can use macros in I would like to know if it's possible to return multiple values from a custom zabbix check. But Macros do not accept Macro functions as values. KEY}. I couldn't get ITEM. The syntax in EXPRESSION is the same as in trigger expressions (see usage limitations below). There are various workarounds such as using one UserParameter for the discovery key and another with a UserParameter=key A way to customize macro values by applying simple functions was added in Zabbix 3. x -> Macros" and set the three entries. Return values (object) Returns an object containing the IDs of the deleted host macros under the hostmacroids property. I have multiple FortiAP WiFi access points and these are configured and orchestrated through a FortiGate firewall. LASTVALUE} also works, but is different. Currently, I use them separately, one widget for one item. Template has it's own Macros with values. 0 Pull new item value on demand. Using MACROS in Zabbix. I presume all your Zabbix Internal performance items are OK, summarized by like the "Zabbix internal process busy %" and "Zabbix cache usage, % free" graphs that comes with the "Template App Zabbix Server". NAME<1-9> or any other MACRO to resolve other than ITEM. Value mapping allows configuring a more user-friendly representation of received values using mappings between numeric/string values and string representations. Try to unlink and clear the linked template, in my case 'Windows by Zabbix agent. Flexible intervals may be written as two macros separated by a forward . 102. I'm monitoring a bunch unix/linux hosts, and would like trigger like this: cpu_user_time + cpu_system_time > 80% Hi, I have a host with multiple web scenarios (128 web scenarios), each one with a single step. , these macros are substituted with real values and are the basis for creating real items, triggers and graphs. Select horizontal position of the item value - left, right or center. How to list Zabbix macro values for a host. IP} which 4 Using macros in messages Overview. Request: (Zabbix 6. Calculating a 10-minute average of the number of values processed by Zabbix. 0. I’m using the Network Generic Device by SNMP template as an example. php" and "zabbix. Macro context is a simple text value. daven1985. php (1. 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. When used in the problem name, the macro will not resolve to the latest item value when viewing problem events; instead, it will keep the item value from the time when the problem happened. Note that when used in update intervals, a single macro has to fill the whole field. VALUE} 或者 {#LLDMACRO};; func - 要应用的函数;; params - 以逗号分隔的函数参数列表, 如果满足以下情况必须用引号引起来: . Would you mind sharing some performance stats (values per second)l, the rough specs of your server and the DB engine that you're using (eg. jih jbpw hedib zewj nvtrcth gcmerlox jpzhfc aajawy mpcgg iues