en-us	##### Receiver response  The response consists of the HTTP response status code and the JSON payload. The HTTP response status code must be "200", "201", "202", "203", or "204" for requests that were handled successfully, other for failed requests.  Example of success:  ```json localhost:8080/v1/history": HTTP/1.1 200 OK Date: Wed, 11 Jan 2023 16:40:30 GMT Content-Length: 0 ```  Example with errors:  ```json localhost:8080/v1/history": HTTP/1.1 422 Unprocessable Entity Content-Type: application/json Date: Wed, 11 Jan 2023 17:07:36 GMT Content-Length: 55   {"error":"invalid character '{' after top-level value"} ```
ca	##### Resposta del receptor  La resposta consisteix en el codi d'estat de resposta HTTP i la càrrega útil JSON. El codi d'estat de la resposta HTTP ha de ser "200", "201", "202", "203" o "204" per a les peticions que s'han gestionat correctament, una altra per a les peticions fallides.  Exemple d'èxit:  ```json localhost:8080/v1/history": HTTP/1.1 200 OK Date: Wed, 11 Jan 2023 16:40:30 GMT Content-Length: 0 ```  Exemple amb errors:  ```json localhost:8080/v1/history": HTTP/1.1 422 Unprocessable Entity Content-Type: application/json Date: Wed, 11 Jan 2023 17:07:36 GMT Content-Length: 55   {"error":"invalid character '{' after top-level value"} ```

en-us	#### Receiving notification  Now, with delivering notifications configured, it would be fun to actually receive one. To help with that, we might on purpose increase the load on our host - so that our [trigger](trigger#adding_trigger) "fires" and we receive a problem notification.  Open the console on your host and run:      cat /dev/urandom | md5sum  You may run one or several of [these processes](http://en.wikipedia.org/wiki/Md5sum).  Now go to *Monitoring → Latest data* and see how the values of 'CPU Load' have increased. Remember, for our trigger to *fire*, the 'CPU Load' value has to go over '2' for 3 minutes running. Once it does:  -   in *Monitoring → Problems* you should see the trigger with a     flashing 'Problem' status -   you should receive a problem notification in your email  ::: noteimportant If notifications do not work:  -   verify once again that both the email settings and the action have     been configured properly -   make sure the user you created has at least read permissions on the     host which generated the event, as noted in the *[Adding     user](login#adding_user)* step. The user, being part of the 'Zabbix     administrators' user group must have at least read access to 'Linux     servers' host group that our host belongs to. -   Additionally, you can check out the action log by going to *Reports     → Action log*.   :::
ca	#### Rebuda de notificacions  Ara, amb el lliurament de notificacions configurat, seria maco obtenir-ne una. Per provar-ho, podem augmentar la càrrega del nostre equip d'una manera específica, de manera que el nostre disparador "s'encén" i rebem una notificació de problema.  Obriu la consola al vostre equip i executeu:       cat /dev/urandom | md5sum  Podeu executar un o més d'[aquests processos](http://en.wikipedia.org/wiki/Md5sum).  Ara aneu a *Monitoratge → Dades més recents* i mireu com han augmentat els valors de 'Càrrega de CPU'. Tingueu en compte que perquè el nostre trigger s'activi, el valor de "Càrrega de CPU" ha de ser per damunt de '2' durant 3 minuts. Quan això passa:  - a *Monitoratge → Problemes* hauríeu de veure el disparador amb un estat de "Problema" intermitent - hauríeu de rebre una notificació de problema als vostres correus electrònics.  ::: noteimportant Si les notificacions no funcionen:  - Comproveu de nou que els paràmetres de correu electrònic i d'acció siguin configurats correctament. - Assegureu-vos que l'usuari que heu creat té almenys permís de lectura a l'equip que ha generat l'esdeveniment, tal com s'indica a la passa *[Afegir usuari](login#adding_user)*. L'usuari que forma part del grup d'usuaris 'Administradors Zabbix' ha de tindre almenys accés de lectura al grup d'equips 'Servidors Linux' al qual pertany el nostre equip. - A més, podeu veure el registre d'accions anant a *Informes → Registre d'accions*. :::

en-us	##### Recent change markers  Inward pointing red triangles around an element indicate a recent trigger status change - one that's happened within the last 30 minutes. These triangles are shown if the *Mark elements on trigger status change* check-box is marked in map [configuration](/manual/config/visualization/maps/map#creating_a_map).
ca	##### Marcadors de canvis recents  Els triangles vermells cap a dins al voltant d'un element indiquen un canvi d'estat d'activació, que s'ha produït durant els darrers 30 minuts. Aquests triangles es mostren si la casella de selecció *Marca els elements al canvi d'estat d'activació* és marcada a la [configuració](/manual/config/visualization/maps/map#creating_a_map) del mapa.

en-us	#### Recent data vs longer periods  For very recent data a **single** line is drawn connecting each received value. The single line is drawn as long as there is at least one horizontal pixel available for one value.  For data that show a longer period **three lines** are drawn - a dark green one shows the average, while a light pink and a light green line shows the maximum and minimum values at that point in time. The space between the highs and the lows is filled with yellow background.  Working time (working days) is displayed in graphs as a white background, while non-working time is displayed in gray (with the *Original blue* default frontend theme).  ![](../../../../../assets/en/manual/config/graph_working_time.png){width="550"}  Working time is always displayed in simple graphs, whereas displaying it in [custom graphs](custom#configuring_custom_graphs) is a user preference.  Working time is not displayed if the graph shows more than 3 months.
ca	#### Dades recents i períodes llargs  Per a dades molt recents, es dibuixa una línia **única** que connecta cada valor rebut. La línia única es dibuixa sempre que hi hagi almenys un píxel horitzontal disponible per a un valor.  Per a les dades que mostren un període més llarg, es dibuixen **tres línies**: una línia verda fosca indica la mitjana, mentre que una línia rosa clara i una línia verda clara indiquen els valors màxim i mínim en aquest moment. L'espai entre els alts i els baixos s'omple de fons groc.  El temps de treball (dies laborables) es mostra en gràfics amb un fons blanc, mentre que el temps no laborable es mostra en gris (amb el tema frontal predeterminat *Blau original*).  ![](../../../../../assets/en/manual/config/graph_working_time.png){width="550"}  El temps de treball sempre es mostra en gràfics senzills, mentre que mostrar-lo a [gràfics personalitzats](custom#configuring_custom_graphs) és una preferència de l'usuari.  El temps de treball no es mostra si el gràfic mostra més de 3 mesos.

en-us	#### Recovery operation details  ![](../../../../../assets/en/manual/config/recovery_operation_details.png){width="600"}  Three operation types are available for recovery events:  -   **Send message** - send recovery message to specified user; -   **Notify all involved** - send recovery message to all users who were notified on the problem event; -   **<remote command name>** - execute a remote command. Commands are available for execution if previously defined in [global scripts](/manual/web_interface/frontend_sections/alerts/scripts#configuring_a_global_script) with *Action operation* selected as its scope.  Parameters for each operation type are described below. All mandatory input fields are marked with a red asterisk. When done, click on *Add* to add operation to the list of *Recovery operations*.  ::: noteclassic Note that if the same recipient is defined in several operation types without specified *Custom message*, duplicate notifications are not sent. :::
ca	#### Detalls de l'operació de recuperació  ![](../../../../../assets/en/manual/config/recovery_operation_details.png){width="600"}  Hi ha tres tipus d'operacions disponibles per als esdeveniments de recuperació: - **Enviar missatge** - envia un missatge de recuperació a l'usuari especificat - **Notificar a tots els implicats** - envia un missatge de recuperació a tots els usuaris que van rebre una notificació de l'esdeveniment problemàtic - **\<nom de la comanda remota\>** - executa una comanda remota. Les ordres són disponibles per a l'execució si s'han definit prèviament a [scripts globals](/manual/web_interface/frontend_sections/alerts/scripts#configuring_a_global_script) amb *Action Operation* triat com a àmbit.  A continuació es descriuen els paràmetres per a cada tipus d'operació. Tots els camps d'entrada obligatoris són marcats amb un asterisc vermell. Quan hagueu acabat, feu clic a *Afegir* per afegir una operació a la llista d'*Operacions de recuperació*.  :::noteclassic Tingueu en compte que si el mateix destinatari es defineix a diversos tipus de transaccions sense especificar un *missatge personalitzat*, no s'enviaran pas notificacions duplicades. :::

en-us	### Red Hat Enterprise Linux  Open the `/etc/yum.repos.d/zabbix.repo` file and set enabled=1 for the `zabbix-unstable` repo.    [zabbix-unstable]  name=Zabbix Official Repository (unstable) - $basearch  baseurl=https://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/  enabled=1  gpgcheck=1  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
ca	### Red Hat Enterprise Linux  Obriu l'arxiu `/etc/yum.repos.d/zabbix.repo` i definiu enabled=1 per al repositori `zabbix-unstable`.       [zabbix-unstable]     name=Zabbix Official Repository (unstable) - $basearch     baseurl=https://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

en-us	 ##### redis.config[connString,<password>,<pattern>] {#redis.config}  <br> Gets the configuration parameters of a Redis instance that match the pattern.<br> Return value: *JSON* - if a glob-style pattern was used; single value - if a pattern did not contain any wildcard character.  Parameters:  -   **connString** - the URI or session name;<br> -   **password** - the Redis password;<br> -   **pattern** - a glob-style pattern (*\** by default).
ca	 ##### redis.config[connString,<password>,<pattern>] {#redis.config}  <br> Obté els paràmetres de configuració d'una instància de Redis que coincideixen amb el patró.<br> Valor de retorn: *JSON* - si s'ha emprat un patró d'estil glob; valor únic: si un patró no contenia cap caràcter comodí.  Paràmetres:  - **connString** - URI o nom de la sessió;<br> - **mot de pas** - mot de pas de Redis;<br> - **patró** - un patró d'estil globus (*\** per defecte).

en-us	 ##### redis.info[connString,<password>,<section>] {#redis.info}  <br> Gets the output of the INFO command.<br> Return value: *JSON* - the output is serialized as JSON.  Parameters:  -   **connString** - the URI or session name;<br> -   **password** - the Redis password;<br> -   **section** - the [section](https://redis.io/commands/info) of information (*default* by default).<br>
ca	 ##### redis.info[connString,<password>,<section>] {#redis.info}  <br> Obté la sortida de l'ordre INFO.<br> Valor de retorn: *JSON* - la sortida es serialitza com a JSON.  Paràmetres:  - **connString** - URI o nom de la sessió;<br> - **mot de pas** - mot de pas de Redis;<br> - **secció** - [secció](https://redis.io/commands/info) d'informació (per defecte és *per defecte*).<br>

en-us	 ##### redis.ping[connString,<password>] {#redis.ping}  <br> Test if a connection is alive or not.<br> Return value: *1* - the connection is alive; *0* - the connection is broken (if there is any error presented including AUTH and configuration issues).  Parameters:  -   **connString** - the URI or session name;<br> -   **password** - the Redis password.<br>
ca	 ##### redis.ping[connString,<password>] {#redis.ping}  <br> Comprova si una connexió és activa o no.<br> Valor de retorn: *1* - la connexió és activa; *0*: la connexió és fallida (si es presenta algun error inclosos problemes d'AUTH i de configuració).  Paràmetres:  - **connString** - URI o el nom de la sessió;<br> - **mot de pas** - mot de pas de Redis.<br>

en-us	 ##### redis.slowlog.count[connString,<password>] {#redis.slowlog.count}  <br> The number of slow log entries since Redis was started.<br> Return value: *Integer*.  Parameters:  -   **connString** - the URI or session name;<br> -   **password** - the Redis password.<br>
ca	 ##### redis.slowlog.count[connString,<password>] {#redis.slowlog.count}  <br> Nombre d'entrades de registre lentes des que es va iniciar Redis.<br> Valor de retorn: *Enter*.  Paràmetres:  - **connString** - URI o nom de la sessió;<br> - **mot de pas** - mot de pas de Redis.<br>

en-us	##### Referencing a network map  Network maps can be referenced by both `sysmapid` and `mapname` GET parameters. For example,      http://zabbix/zabbix/zabbix.php?action=map.view&mapname=Local%20network  will open the map with that name (Local network).  If both `sysmapid` (map ID) and `mapname` (map name) are specified, `mapname` has higher priority.
ca	##### Referenciar un mapa de xarxa  Els adaptadors de xarxa es poden fer referència als paràmetres GET `sysmapid` i `mapname`. Per exemple,       http://zabbix/zabbix/zabbix.php?action=map.view&mapname=Local%20network  obrirà el mapa amb aquest nom (Xarxa local).  Si s'especifiquen `sysmapid' (ID del mapa) i `mapname' (nom del mapa), `mapname' té una prioritat més alta.

en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
ca	##### RefreshActiveChecks  Amb quina freqüència s'actualitza la llista de comprovacions actives, en segons. Tingueu en compte que després de no poder actualitzar les comprovacions actives, la següent actualització es provarà en 60 segons.  Per defecte: `5`<br> Rang: 1-86400

en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
ca	##### RefreshActiveChecks  Amb quina freqüència s'actualitza la llista de comprovacions actives, en segons. Tingueu en compte que després de no poder actualitzar les comprovacions actives, la següent actualització es provarà en 60 segons.  Per defecte: `5`<br> Rang: 1-86400

en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
ca	##### RefreshActiveChecks  Amb quina freqüència s'actualitza la llista de comprovacions actives, en segons. Tingueu en compte que després de no poder actualitzar les comprovacions actives, la següent actualització es provarà en 60 segons.  Per defecte: `5`<br> Rang: 1-86400

en-us	##### RefreshActiveChecks  How often the list of active checks is refreshed, in seconds. Note that after failing to refresh active checks the next refresh will be attempted in 60 seconds.  Default: `5`<br> Range: 1-86400
ca	##### RefreshActiveChecks  Amb quina freqüència s'actualitza la llista de comprovacions actives, en segons. Tingueu en compte que després de no poder actualitzar les comprovacions actives, la següent actualització es provarà en 60 segons.  Per defecte: `5`<br> Rang: 1-86400

en-us	### 'Refresh proxy configuration' request object  The 'Refresh proxy configuration' task request object has the following properties.  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |proxyids|array|Proxy IDs.|
ca	### Objecte de consulta 'Recarrega la configuració del proxy'  Té les propietats següents.  |Propietat|[Tipus](/manual/api/reference_commentary#data_types)|Descripció| |--|--|------| |proxyids|array|Proxy IDs.|

en-us	# regexp.create
ca	# regexp.create

en-us	# regexp.delete
ca	# regexp.delete

en-us	# regexp.get
ca	# regexp.get

en-us	# regexp.update
ca	# regexp.update

en-us	# Register a new module  This section explains how to add a new module to Zabbix frontend.
ca	# Registrar un mòdul nou  Aquesta secció explica com afegir un mòdul nou a la interfície Zabbix.

en-us	 ###### Register request  A request sent by the agent during the agent startup phase to obtain provided metrics to register a plugin.  |   |   | |---|---| |direction|agent → plugin| |response|yes|  Parameters specific to register requests:  |Name|Type|Comments| |---------|--------|----------| |version|string|The protocol version <major>.<minor>|  *Example:*      {"id":1,"type":2,"version":"1.0"}
ca	###### Petició d'enregistrament  Petició enviada per l'agent durant la fase d'inici de l'agent per obtindre les mètriques proveïdes per enregistrar un plugin.  |   |   | |---|---| |direction|agent → plugin| |response|yes|  Paràmetres específics de les peticions d'enregistrament:  |Nom|Tipus|Comentaris| |---------|--------|----------| |version|string|La versió del protocol <major>.<minor>|  *Exemple:*      {"id":1,"type":2,"version":"1.0"}

en-us	 ###### Register response  Plugin's response to the register request.  |   |   | |---|---| |direction|plugin → agent| |response|n/a|  Parameters specific to register responses:  |Name|Type|Comments| |---------|--------|----------| |name|string|The plugin name.| |metrics|array of strings (optional)|The metrics with descriptions as used in the plugin. Returns RegisterMetrics(). Absent if error is returned.| |interfaces|uint32 (optional)|The bit mask of plugin's supported interfaces. Absent if error is returned.| |error|string (optional)|An error message returned if a plugin cannot be started. Absent, if metrics are returned.|  *Examples:*      {"id":2,"type":3,"metrics":["external.test", "External exporter Test."], "interfaces": 4}  or      {"id":2,"type":3,"error":"error message"}
ca	###### Resposta d'enregistrament  resposta del plug-in a la petició d'enregistrament.  |   |   | |---|---| |direction|plugin → agent| |réponse|n/a|  Paràmetres específics de les respostes d'enregistraments:  |Nom|Tipus|Comentaris| |---------|--------|----------| |name|string|El nom del plug-in.| |metrics|array of strings (optional)|Les mètriques amb les descripcions com s'empren al plug-in. Retorna RegisterMetrics(). Absent si es retorna un error.| |interfaces|uint32 (optional)|La màscara binària de les interfícies admeses per el plug-in. Absent si es retorna un error.| |error|string (optional)|Retorna un missatge d'error si no es pot engegar un plug-in. Absent si les mètriques són retornades.|  *Exemples:*      {"id":2,"type":3,"metrics":["external.test", "Test de l'exportateur externe."], "interfaces": 4}  ou      {"id":2,"type":3,"error":"message d'erreur"}

en-us	 ##### registry.data[key,<value name>] {#registry.data}  <br> Return data for the specified value name in the Windows Registry key.<br> Return value: *Integer*, *string* or *text* (depending on the value type)  Parameters:  -   **key** - the registry key including the root key; root abbreviations (e.g. HKLM) are allowed; -   **value name** - the registry value name in the key (empty string "" by default). The default value is returned if the value name is not supplied.  Comments:  -   Supported root abbreviations:<br>HKCR - HKEY_CLASSES_ROOT<br>HKCC - HKEY_CURRENT_CONFIG<br>HKCU - HKEY_CURRENT_USER<br>HKCULS - HKEY_CURRENT_USER_LOCAL_SETTINGS<br>HKLM - HKEY_LOCAL_MACHINE<br>HKPD - HKEY_PERFORMANCE_DATA<br>HKPN - HKEY_PERFORMANCE_NLSTEXT<br>HKPT - HKEY_PERFORMANCE_TEXT<br>HKU - HKEY_USERS<br> -   Keys with spaces must be double-quoted.  Examples:      registry.data["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting"] #return the data of the default value of this key     registry.data["HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting","EnableZip"] #return the data of the value named "Enable Zip" in this key
ca	 ##### registry.data[key,<nom del valor>] {#registry.data}  <br> Retorna les dades del nom del valor especificat a la clau del registre de Windows.<br> Valor de retorn: *Enter*, *cadena* o *text* (segons el tipus de valor)  Paràmetres:  - **clau** - la clau del registre inclosa la clau arrel; es permeten les abreviatures arrel (per exemple, HKLM); - **nom del valor** - el nom del valor del registre a la clau (cadena buida "" per defecte). El valor predeterminat es retorna si no es proporciona el nom del valor.  Comentaris:  - Abreujatures d'arrel admeses:<br>HKCR - HKEY_CLASSES_ROOT<br>HKCC - HKEY_CURRENT_CONFIG<br>HKCU - HKEY_CURRENT_USER<br>HKCULS - HKEY_CURRENT_USER_LOCAL_SETTINGS<br>HKLM - HKEY_MPDACH -<br>HKEY_HKEY HKPN - HKEY_PERFORMANCE_NLSTEXT<br> HKPT - HKEY_PERFORMANCE_TEXT<br>HKU - HKEY_USERS<br> - Les claus amb espais han d'ésser entre cometes.  Exemples:      registry.data["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting"] #retorna les dades del valor predeterminat d'aquesta clau     registry.data["HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting","EnableZip"] #retorna les dades del valor anomenat "Enable Zip" en aquesta clau

en-us	 ##### registry.get[key,<mode>,<name regexp>] {#registry.get}  <br> The list of Windows Registry values or keys located at given key.<br> Return value: *JSON object*.  Parameters:  -   **key** - the registry key including the root key; root abbreviations (e.g. HKLM) are allowed (see comments for registry.data\[\] to see full list of abbreviations);<br> -   **mode** - possible values:<br>*values* (default) or *keys*;<br> -   **name regexp** - only discover values with names that match the regexp (default - discover all values). Allowed only with *values* as `mode`.  Keys with spaces must be double-quoted.  Examples:      registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values,"^DisplayName|DisplayVersion$"] #return the data of the values named "DisplayName" or "DisplayValue" in this key. The JSON will include details of the key, last subkey, value name, value type and value data.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values] #return the data of the all values in this key. The JSON will include details of the key, last subkey, value name, value type and value data.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,keys] #return all subkeys of this key. The JSON will include details of the key and last subkey.
ca	 ##### registry.get[clau,<mode>,<nom regexp>] {#registry.get}  <br> La llista de valors o claus del Registre de Windows que es troben a la clau determinada.<br> Valor de retorn: *objecte JSON*.  Paràmetres:  - **clau** - la clau del registre inclosa la clau arrel; Les abreviatures arrel (p. ex. HKLM) es permeten (vegeu els comentaris de registry.data\[\] per veure la llista completa d'abreviatures);<br> - **mode** - valors possibles:<br>*valors* (per defecte) o *claus*;<br> - **name regexp** - només descobreix valors amb noms que coincideixen amb l'expressió regular (per defecte: descobreix tots els valors). Només es permet amb *valors* com a `mode`.  Les claus amb espais han d'ésser entre cometes.  Exemples:      registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values,"^DisplayName|DisplayVersion$"] #retorna les dades dels valors anomenats "DisplayName" o "DisplayValue" en aquesta clau. El JSON inclourà detalls de la clau, la darrera subclau, el nom del valor, el tipus de valor i les dades del valor.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,values] #retorna les dades de tots els valors d'aquesta clau. El JSON inclourà detalls de la clau, l'última subclau, el nom del valor, el tipus de valor i les dades del valor.     registry.get[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,keys] #retorna totes les subclaus d'aquesta clau. El JSON inclourà detalls de la clau i la darrera subclau.

en-us	#### regsub(pattern,output) {#regsub}  Substring extraction by a regular expression match (case-sensitive).  Parameters:  -   **pattern** - the regular expression to match; -   **output** - the output options. **\\1 - \\9** placeholders are supported to capture groups. **\\0** returns the matched text.  Comments:  -   If the function pattern is an incorrect regular expression, then the macro evaluates to 'UNKNOWN'     (except for low-level discovery macros, in which case the function will be ignored, and the macro will remain unresolved).  Examples:  |Macro function|Received value|Output| |-------------|----|-------------| |`{{ITEM.VALUE}.regsub(^[0-9]+, Problem)}`|`123Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", "Problem")}`|`123 Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", Problem ID: \1)}`|`123 Log line`|`Problem ID: 123`| |`{{ITEM.VALUE}.regsub(".*", "Problem ID: \1")}`|`Log line`|''Problem ID: ''| |`{{ITEM.VALUE}.regsub("^(\w+).*?([0-9]+)", " Problem ID: \1_\2 ")}`|`MySQL crashed errno 123`|'' Problem ID: MySQL\_123 ''| |`{{ITEM.VALUE}.regsub("([1-9]+", "Problem ID: \1")}`|`123 Log line`|`*UNKNOWN*` (invalid regular expression)| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \1)}`|`customername_1`|`customername`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \2)}`|`customername_1`|`1`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}`|`customername_1`|`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}` (invalid regular expression)| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \1)}"}`|`customername_1`|`{$MACRO:"customername"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \2)}"}`|`customername_1`|`{$MACRO:"1"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+\", \1)}"}`|`customername_1`|`{$MACRO:"{{#M}.regsub(\"(.*)_([0-9]+\", \1)}"}` (invalid regular expression)| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"customername\"}"`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \2)}\"}"`|`customername_1`|`"{$MACRO:\"1\"}")`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}")` (invalid regular expression)|
ca	#### regsub(patró, sortida) {#regsub}  Extracció de subcadenes mitjançant una coincidència d'expressió regular (distingeix entre majúscules i minúscules).  Paràmetres:  - **patró** - l'expressió regular que coincideix; - **sortida** - les opcions de sortida. **\\1 - \\9** s'admeten els marcadors de posició per capturar grups. **\\0** retorna el text coincident.  Comentaris:  - Si el patró de funció és una expressió regular incorrecta, la macro s'avalua com a "DESCONEGUDA"     (excepte les macros de descoberta de baix nivell, en aquest cas la funció s'ignorarà i la macro romandrà sense resoldre).  Exemples:  |Funció macro|Valor rebut|Sortida| |--------------|-----|-------------| |`{{ITEM.VALUE}.regsub(^[0-9]+, Problem)}`|`123Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", "Problem")}`|`123 Log line`|`Problem`| |`{{ITEM.VALUE}.regsub("^([0-9]+)", Problem ID: \1)}`|`123 Log line`|`Problem ID: 123`| |`{{ITEM.VALUE}.regsub(".*", "Problem ID: \1")}`|`Log line`|''Problem ID: ''| |`{{ITEM.VALUE}.regsub("^(\w+).*?([0-9]+)", " Problem ID: \1_\2 ")}`|`MySQL crashed errno 123`|'' Problem ID: MySQL\_123''| |`{{ITEM.VALUE}.regsub("([1-9]+", "Problem ID: \1")}`|`123 Log line`|`*UNKNOWN*` (invalid regular expression)| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \1)}`|`customername_1`|`customername`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+)", \2)}`|`customername_1`|`1`| |`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}`|`customername_1`|`{{#IFALIAS}.regsub("(.*)_([0-9]+", \1)}` (invalid regular expression)| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \1)}"}`|`customername_1`|`{$MACRO:"customername"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+)\", \2)}"}`|`customername_1`|`{$MACRO:"1"}`| |`{$MACRO:"{{#IFALIAS}.regsub(\"(.*)_([0-9]+\", \1)}"}`|`customername_1`|`{$MACRO:"{{#M}.regsub(\"(.*)_([0-9]+\", \1)}"}` (invalid regular expression)| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"customername\"}"`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+)\\", \2)}\"}"`|`customername_1`|`"{$MACRO:\"1\"}")`| |`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}"`|`customername_1`|`"{$MACRO:\"{{#IFALIAS}.regsub(\\"(.*)_([0-9]+\\", \1)}\"}")` (invalid regular expression)|

en-us	#### Regular expression limitations in Zabbix agent 2  Zabbix agent 2 does not support lookaheads and lookbehinds in regular expressions due to the standard Go regexp library limitations.
ca	#### Limitacions d'expressió regular a l'agent Zabbix 2  L'agent Zabbix 2 no admet els lookaheads i lookbacks a les expressions regulars degut a les limitacions estàndard de la biblioteca d'expressions regulars de Go.

en-us	# Regular expression object  The following objects are directly related to the `regexp` API.
ca	# Objecte d'expressió regular  Els següents objectes són relacionats amb l'API `regexp`.

en-us	##### Regular expression {#regexp}  Match the value to the regular expression and replace with the required output.  Parameters:  -   **pattern** - the regular expression;<br> -   **output** - the output formatting template. An \\N (where N=1…9) escape sequence is replaced with the Nth matched group. A \\0 escape sequence is replaced with the matched text.  Comments:  -   A failure to match the input value will make the item unsupported;<br> -   The regular expression supports extraction of maximum 10 captured groups with the \\N sequence;<br> -   If you mark the *Custom on fail* checkbox, it is possible to specify custom error-handling options: either to discard the value, set a specified value, or set a specified error message. In case of a failed preprocessing step, the item will not become unsupported if the option to discard the value or set a specified value is selected.<br> -   Please refer to [regular expressions](/manual/regular_expressions#example) section for some existing examples.
ca	##### Expressió regular {#regexp}  Relacioneu el valor amb l'expressió regular i substituïu-lo amb la sortida esperada.  Paràmetres:  - **patró** - l'expressió regular;<br> - **sortida** - la plantilla de format de sortida. Una seqüència d'escapada \\N (on N=1...9) es substitueix per l'enèssim grup coincident. Una seqüència d'escapada \\0 es substitueix pel text coincident.  Comentaris:  - Si no coincideix amb el valor d'entrada, l'element no serà pas compatible;<br> - L'expressió regular admet l'extracció d'un màxim de 10 grups capturats amb la seqüència \\N;<br> - Si marqueu la casella de selecció *Personalitzat en cas d'error*, és possible especificar opcions personalitzades de gestió d'errors: per descartar el valor, establir un valor especificat o establir un missatge d'error especificat. En cas d'un pas de preprocessament fallit, l'element no serà compatible si es tria l'opció per descartar el valor o establir un valor especificat.<br> - Consulteu la secció [expressions regulars](/manual/regular_expressions#example) per veure alguns exemples.

en-us	#### - Regular expressions  This section allows creating custom regular expressions that can be used in several places in the frontend. See [Regular expressions](/manual/regular_expressions) section for details.
ca	#### - Expressions regulars  Aquesta secció us permet crear expressions regulars personalitzades que es poden emprar a diversos llocs de la interfície. Veieu [Expressions regulars](/manual/regular_expressions) per a més detalls.

en-us	#### Regular expression support by location  |Location|<|Regular expression|Global regular expression|Multiline matching|Comments| |-|----------|---------|---------|---------|--------------------| |**[Agent items](/manual/config/items/itemtypes/zabbix_agent)**|<|<|<|<|<| |<|eventlog\[\]|Yes|Yes|Yes|`regexp`, `severity`, `source`, `eventid` parameters| |<|eventlog.count\[\]|^|^|^|`regexp`, `severity`, `source`, `eventid` parameters| |^|log\[\]|^|^|^|`regexp` parameter| |^|log.count\[\]|^|^|^|^| |^|logrt\[\]|^|Yes/No|^|`regexp` parameter supports both, `file_regexp` parameter supports non-global expressions only| |^|logrt.count\[\]|^|^|^|^ |^|proc.cpu.util\[\]|^|No|No|`cmdline` parameter| |^|proc.get\[\]|^|^|^|^| |^|proc.mem\[\]|^|^|^|^| |^|proc.num\[\]|^|^|^|^| |^|sensor\[\]|^|^|^|`device` and `sensor` parameters on Linux 2.4| |^|system.hw.macaddr\[\]|^|^|^|`interface` parameter| |^|system.sw.packages\[\]|^|^|^|`regexp` parameter| |^|system.sw.packages.get\[\]|^|^|^|`regexp` parameter| |^|vfs.dir.count\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.dir.get\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.dir.size\[\]|^|^|^|`regex_incl`, `regex_excl`, `regex_excl_dir` parameters| |^|vfs.file.regexp\[\]|^|^|Yes|`regexp` parameter| |^|vfs.file.regmatch\[\]|^|^|^|^| |^|web.page.regexp\[\]|^|^|^|^| |**[SNMP traps](/manual/config/items/itemtypes/snmptrap)**|<|<|<|<|<| |<|snmptrap\[\]|Yes|Yes|No|`regexp` parameter| |**[Item value preprocessing](/manual/config/items/item#item_value_preprocessing)**|<|Yes|No|No|`pattern` parameter| |**[Functions for triggers/calculated items](/manual/appendix/functions)**|<|<|<|<|<| |<|count()|Yes|Yes|Yes|`pattern` parameter if `operator` parameter is *regexp* or *iregexp*| |<|countunique()|Yes|Yes|^|^| |<|find()|Yes|Yes|^|^| |^|logeventid()|Yes|Yes|No|`pattern` parameter| |^|logsource()|^|^|^|^| |**[Low-level discovery](/manual/discovery/low_level_discovery#discovery_rule_filter)**|<|<|<|<|<| |<|Filters|Yes|Yes|No|*Regular expression* field| |^|Overrides|Yes|No|^|In *matches*, *does not match* options for *Operation* conditions| |**[Action conditions](/manual/config/notifications/action/conditions)**|<|Yes|No|No|In *matches*, *does not match* options for *Host name* and *Host metadata* autoregistration conditions| |**[Scripts](/manual/web_interface/frontend_sections/alerts/scripts)**|<|Yes|Yes|No|*Input validation rule* field| |**[Web monitoring](/manual/web_monitoring#configuring_a_web_scenario)**|<|Yes|No|Yes|*Variables* with a **regex:** prefix<br>*Required string* field| |**[User macro context](/manual/config/macros/user_macros#user_macro_context)**|<|Yes|No|No|In macro context with a **regex:** prefix| |**[Macro functions](/manual/config/macros/macro_functions)**|<|<|<|<|<| |<|regsub()|Yes|No|No|`pattern` parameter| |^|iregsub()|^|^|^|^| |**[Icon mapping](/manual/web_interface/frontend_sections/administration/general#icon_mapping)**|<|Yes|Yes|No|*Expression* field| |**[Value mapping](/manual/config/items/mapping#configuration)**|<|Yes|No|No|*Value* field if mapping type is `regexp`|
ca	#### Suport de les expressions regulars per ubicació  |Ubicació|<|Expressió regular|Expressió regular global|Concordança multilínia|Comentaris| |-|----------|----------|----------|----------|------- ---------------| |**[Elements de l'agent](/manual/config/items/itemtypes/zabbix_agent)**|<|<|<|<|<| |<|eventlog\[\]|Sí|Sí|Sí|Paràmetres `regexp`, `severity`, `source`, `eventid`| |<|eventlog.count\[\]|^|^|^|`regexp`, `severity`, `source`, `eventid` parameters| |^|log\[\]|^|^|^|paràmetre `regexp`| |^|log.count\[\]|^|^|^|^| |^|logrt\[\]|^|Sí/No|^|El paràmetre `regexp` admet totes dues, el paràmetre `file_regexp` només admet expressions no globals| |^|logrt.count\[\]|^|^|^|^ |^|proc.cpu.util\[\]|^|No|No|paràmetre `cmdline`| |^|proc.get\[\]|^|^|^|^| |^|proc.mem\[\]|^|^|^|^| |^|proc.num\[\]|^|^|^|^| |^|sensor\[\]|^|^|^|paràmetres `dispositiu` i `sensor` a Linux 2.4| |^|system.hw.macaddr\[\]|^|^|^|paràmetre `interface`| |^|system.sw.packages\[\]|^|^|^|paràmetre `package`| |^|system.sw.packages.get\[\]|^|^|^|paràmetre `regexp`| |^|vfs.dir.count\[\]|^|^|^|Paràmetres `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.dir.get\[\]|^|^|^|Paràmetres `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.dir.size\[\]|^|^|^|Paràmetres `regex_incl`, `regex_excl`, `regex_excl_dir`| |^|vfs.file.regexp\[\]|^|^|Sí|paràmetre `regexp`| |^|vfs.file.regmatch\[\]|^|^|^|^| |^|web.page.regexp\[\]|^|^|^|^| |**[Traps SNMP](/manual/config/items/itemtypes/snmptrap)**|<|<|<|<|<| |<|snmptrap\[\]|Sí|Sí|No|paràmetre `regexp`| |**[Preprocessament del valor de l'element](/manual/config/items/item#item_value_preprocessing)**|<|Sí|No|No|paràmetre `pattern`| |**[Funcions per a triggers/elements calculats](/manual/apèndix/funcions)**|<|<|<|<|<| |<|count()|Yes|Yes|Yes|paràmetre `pattern` si el paràmetre `operator` és *regexp* o *iregexp*| |<|countunique()|sí|sí|^|^| |<|find()|Sí|Sí|^|^| |^|logeventid()|Sí|Sí|No|paràmetre `patró`| |^|logsource()|^|^|^|^| |**[Descoberta de baix nivell](/manual/discovery/low_level_discovery#discovery_rule_filter)**|<|<|<|<|<| |<|Filters|Sí|Sí|No|Camp *Expressió regular*| |^|Overrides|Sí|No|^|A les opcions *coincideix*, *no coincideix* per a les condicions de *operació*| |**[Condicions d'acció](/manual/config/notifications/action/conditions)**|<|Sí|No|No|A les opcions *coincideix*, *no coincideix* per a *Nom d'equip * i *Metadades de l'equip* de condicions d'autoinscripció| |**[Scripts](/manual/web_interface/frontend_sections/alerts/scripts)**|<|Yes|Yes|No|*Input validation rule* field| |**[Monitoratge web](/manual/web_monitoring#configuring_a_web_scenario)**|<|Sí|No|Sí|*Variables* amb un prefix **regex:**<br>Camp *String required*| |**[Context de macro d'usuari](/manual/config/macros/user_macros#user_macro_context)**|<|Sí|No|No|En un context de macro amb un prefix **regex:**| |**[Funcions de macro](/manual/config/macros/macro_functions)**|<|<|<|<|<| |<|regsub()|Sí|No|No|paràmetre `pattern`| |^|iregsub()|^|^|^|^| |**[Mapa d'icones](/manual/web_interface/frontend_sections/administration/general#icon_mapping)**|<|Sí|Sí|No|Camp *Expressió*| |**[Mapa de valors](/manual/config/items/mapping#configuration)**|<|Sí|No|No|Camp *Valor* si el tipus de mapatge és `regexp`|

en-us	#### Regular expressions  You may manually enter a regular expression in supported places. Note that the expression may not start with @ because that symbol is used in Zabbix for referencing global regular expressions.  ::: notewarning It's possible to run out of stack when using regular expressions. See the [pcrestack man page](http://pcre.org/original/doc/html/pcrestack.html) for more information. :::  Note that in multiline matching, the `^` and `$` anchors match at the beginning/end of each line respectively, instead of the beginning/end of the entire string.  See also examples for [correct escaping](/manual/appendix/escaping) in various contexts.
ca	#### Expressions regulars  Podeu introduir manualment una expressió regular a les ubicacions admeses. Tingueu en compte que l'expressió no pot començar amb @ perquè aquest símbol s'empra a Zabbix per fer referència a expressions regulars globals.  ::: notewarning És possible sortir de la pila quan s'empren expressions regulars. Consulteu la [pàgina man de pcrestack](http://pcre.org/original/doc/html/pcrestack.html) per obtindre més informació. :::  Tingueu en compte que a la concordança multilínia, les àncores `^` i `$` coincideixen amb l'inici/final de cada línia, respectivament, en lloc de l'inici/final de tota la cadena.  Veieu exemples d'[escapada correcta](/manual/appendix/escaping) a diferents contexts.

en-us	### Regular expression  The global regular expression object has the following properties.  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |regexpid|ID|ID of the regular expression.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations| |name|string|Name of the regular expression.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |test\_string|string|Test string.|
ca	### Expressió regultar  L'objecte d'expressió regular global té les propietats següents.  |Propietat|[Tipus](/manual/api/reference_commentary#data_types)|Descripció| |--|--|------| |regexpid|ID|ID de l'expressió regular.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* per operacions d'actualització| |name|string|Nom de l'expressió regular.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* per operacions de creació| |test\_string|string|Cadena de caràcters de prova.|

en-us	### Regular expression  These examples use regular expressions in the preprocessing steps.
ca	### Expressió regular  Aquests exemples empren expressions regulars a les passes de preprocessament.

en-us	# Regular expression  This class is designed to work with global regular expressions.  Object references:  -   [Regular expression](/manual/api/reference/regexp/object#regular_expression) -   [Expressions](/manual/api/reference/regexp/object#expressions)  Available methods:  -   [regexp.create](/manual/api/reference/regexp/create) - create new regular expressions -   [regexp.delete](/manual/api/reference/regexp/delete) - delete regular expressions -   [regexp.get](/manual/api/reference/regexp/get) - retrieve regular expressions -   [regexp.update](/manual/api/reference/regexp/update) - update regular expressions
ca	# Expressió regular  Aquesta classe és dissenyada per treballar amb expressions regulars globals.  Referències d'objectes:  -   [Expressió regular](/manual/api/reference/regexp/object#regular_expression) -   [Expressions](/manual/api/reference/regexp/object#expressions)  Mètodes disponibles:  -   [regexp.create](/manual/api/reference/regexp/create) - crear noves expressions regulars -   [regexp.delete](/manual/api/reference/regexp/delete) - esborrar expressions regulars -   [regexp.get](/manual/api/reference/regexp/get) - recuperar expressions regulars -   [regexp.update](/manual/api/reference/regexp/update) - actualitzar expressions regulars

en-us	##### Remote command limit  Remote command limit after resolving all macros depends on the type of database and character set (non-ASCII characters require more than one byte to be stored):  |Database|Limit in characters|Limit in bytes| |---|---|---| |MySQL|65535|65535| |Oracle Database|2048|4000| |PostgreSQL|65535|not limited| |SQLite (only Zabbix proxy)|65535|not limited|  Remote command execution output (return value) is limited to 16MB (including trailing whitespace that is truncated). [IPMI remote command](#ipmi-remote-commands) limit is based on the installed IPMI library. Note that [database limits](/manual/config/items/item#text-data-limits) apply to all remote commands.
ca	##### Límit de les comandes remotes  El límit de comandes remotes després de resoldre totes les macros depèn del tipus de base de dades i del conjunt de caràcters (els caràcters no ASCII requereixen més d'un octet per emmagatzemar-los):  |Base de dades|Límit de caràcters|Límit en octets| |---|---|---| |MySQL|65535|65535| |Base de dades Oracle|2048|4000| |PostgreSQL|65535|il·limitat| |SQLite (només proxy Zabbix)|65535|il·limitat|  La sortida de l'execució d'ordres remots (valor de retorn) és limitada a 16 Mo (incloent els espais en blanc al final truncats). El límit de les [comandes remotes IPMI](#ipmi-remote-commands) es basa en la biblioteca IPMI instal·lada. També s'hi apliquen els [límits de la base de dades](/manual/config/items/item#text-data-limits).

en-us	#### Remote commands on active agents  It is now possible to execute [remote commands](/manual/config/notifications/action/operation/remote_command) on a version 7.0 agent that is operating in active mode. Once the execution of a remote command is triggered by an action [operation](/manual/config/notifications/action/operation#operations) or manual [script](/manual/web_interface/frontend_sections/alerts/scripts) execution, the command will be included in the active checks configuration and executed once the active agent receives it. Note that older active agents will ignore any remote commands included in the active checks configuration. For more information, see [*Passive and active agent checks*](/manual/appendix/items/activepassive#active-checks).
ca	#### Comandes remotes en agents actius  Ara és possible executar [ordres remotes](/manual/config/notifications/action/operation/remote_command) en un agent de la versió 7.0 que està operant en mode actiu. Una vegada que l'execució d'una ordre remota s'activa mitjançant una acció d'[operació](/manual/config/notifications/action/operation#operations) o una execució manual d'un [script](/manual/web_interface/frontend_sections/alerts/scripts), l'ordre s'inclourà a la configuració de comprovacions actives i s'executarà un cop l'agent actiu la rebi. Tingueu en compte que els agents actius més antics ignoraran les ordres remotes incloses a la configuració de comprovacions actives. Per obtindre més informació, veieu [*Comprovacions d'agents passius i actius*](/manual/appendix/items/activepassive#active-checks).

en-us	#### Remote commands with multiple interfaces  If the target system has multiple interfaces of the selected type (Zabbix agent or IPMI), remote commands will be executed on the default interface.  It is possible to execute remote commands via SSH and Telnet using another interface than the Zabbix agent one. The available interface to use is selected in the following order:  * Zabbix agent default interface * SNMP default interface * JMX default interface * IPMI default interface
ca	#### Comandes remotes amb diverses interfícies  Si el sistema de destinació té diverses interfícies del tipus seleccionat (agent Zabbix o IPMI), les ordres remotes s'executaran a la interfície predeterminada.  És possible executar ordres de forma remota mitjançant SSH i Telnet mitjançant una altra interfície que l'agent Zabbix. La interfície disponible per emprar es tria en l'ordre següent:  * Interfície predeterminada de l'agent Zabbix * Interfície predeterminada SNMP * Interfície predeterminada JMX * Interfície per defecte IPMI

en-us	#### Remove token expiry  Remove expiry date from token.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```
ca	#### Esborrar la data de caducitat d'un token  Esborra la data de caducitat d'un token.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Removing hosts from host groups  Remove two hosts from the given host groups.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```
ca	#### Treure equips dels grups  Treu dos equips dels seus grups d'equips.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```

en-us	#### Removing interfaces  Remove the "127.0.0.1" SNMP interface from two hosts.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```
ca	#### Esborrar interfícies  Esborrar la interfície SNMP "127.0.0.1" de dos equips.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```

en-us	#### Removing templates from a group  Remove two templates from group "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```
ca	#### Esborrar plantilles d'un grup  Esborrar dues plantilles del grup "2".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```

en-us	#### Removing templates from template groups  Remove two templates from the given template groups.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "templateids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```
ca	#### Esborra plantilles de grups de plantilles  Treu dues plantilles dels grups de plantilles donats.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "templateids": [             "30050",             "30001"         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```

en-us	#### Removing web server test page  To avoid information exposure, removing the web server test page is recommended.  By default, the Apache web server webroot contains the `index.html` test page:  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  Please refer to the documentation of your web server to find help on how to remove default test pages.
ca	#### Esborrar la pàgina de prova del servidor web  Per evitar l'exposició de la informació, es recomana esborrar la pàgina de prova del servidor web.  Per defecte, l'arrel web del servidor web Apache conté la pàgina de prova `index.html`:  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  Consulteu la documentació del vostre servidor web per trobar ajuda sobre com esborrar les pàgines de prova predeterminades.

en-us	#### Renamed elements  -   Some [dashboard widget](/manual/web_interface/frontend_sections/dashboards/widgets) parameters with the label *Tags* have been renamed for more clarity: *Item tags* (for *Data overview* widget), *Scenario tags* (for *Web monitoring* widget); *Problem tags* (for *Graph*, *Problem hosts*, *Problems*, *Problems by severity*, and *Trigger overview* widget); -   The action link to editing of the map contents, available from the map list in the *Monitoring* → [*Maps*](/manual/web_interface/frontend_sections/monitoring/maps) section, has been renamed from *Constructor* to *Edit*; -   The fields for setting history and trend storage periods in the [item](/manual/config/items/item#configuration) and [item prototype](/manual/discovery/low_level_discovery/item_prototypes) configuration forms have been renamed; -   In *Top hosts* widget [configuration](/manual/web_interface/frontend_sections/dashboards/widgets/top_hosts#configuration), the fields *Order column* and *Host count* have been renamed *Order by* and *Host limit* to better describe their functions. -   In *Graph* widget configuration, the [legend](/manual/web_interface/frontend_sections/dashboards/widgets/graph#legend) field *Display min/max/avg* has been renamed to *Display min/avg/max*, and [data set](/manual/web_interface/frontend_sections/dashboards/widgets/graph#data-set) fields *host pattern* and *item pattern* have been renamed to *host patterns* and *item patterns*. -   In [User profile](/manual/web_interface/user_profile#user-profile) settings, the *Messaging* tab has been renamed to *Frontend notifications*, in which the *Frontend messaging* option has also been renamed to *Frontend notifications*.
ca	#### Elements canviats de nom  - Alguns paràmetres [etiquetes del tauler](/manual/web_interface/frontend_sections/dashboards/widgets) amb l'etiqueta *Etiquetes* s'han canviat de nom per a més claredat: *Etiquetes d'elements* (per al giny *Visió general de dades*), *Etiquetes d'escenari* (per al giny *Monitoratge web*); *Etiquetes de problemes* (per a *Gràfic*, *Equips amb problemes*, *Problemes*, *Problemes per gravetat* i el giny *Visió general del trigger*); - L'enllaç d'acció per editar el contingut del mapa, disponible a la llista de mapes a la secció *Monitoratge* → [*Mapes*](/manual/web_interface/frontend_sections/monitoring/maps), s'ha canviat de nom de *Constructor* a * Editar*; - S'ha canviat el nom dels camps per establir l'historial i els períodes d'emmagatzematge de tendències als formularis de configuració d'[element](/manual/config/items/item#configuration) i [prototipus d'element](/manual/discovery/low_level_discovery/item_prototypes); - Al giny de [configuració](/manual/web_interface/frontend_sections/dashboards/widgets/top_hosts#configuration) d'*Equips principals*, els camps *Ordre de columna* i *Recompte d'equip* s'han canviat de nom a *Ordenar per* i *Límit d'equips* per descriure millor les seves funcions. - A la configuració del giny *Gràfic*, el camp [llegenda](/manual/web_interface/frontend_sections/dashboards/widgets/graph#legend) *Display min/max/avg* s'ha canviat de nom a *Display min/avg/max*, i els camps [conjunt de dades](/manual/web_interface/frontend_sections/dashboards/widgets/graph#data-set) *patró d'equip* i *patró d'element* s'han canviat de nom a *patrons d'equips* i *patrons d'elements*. - A la configuració de [Perfil d'usuari](/manual/web_interface/user_profile#user-profile), la pestanya *Missatgeria* s'ha canviat el nom a *Notificacions de la interfície*, on l'opció de *missatgeria d'interfície* també s'ha canviat el nom a *Notificacions d'interfície*.

en-us	#### Rename icon map  Rename an icon map to "OS icons".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "OS icons"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```
ca	#### Reanomenar el mapa d'icones  Reanomenar un mapa d'icones com a "Icones OS".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "Icones OS"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```

en-us	#### Rename image  Rename image to "Cloud icon".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Cloud icon"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```
ca	#### Reanomenar imatge  Reanomena la imatge a "Icona de núvol".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Icona de núvol"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Renaming a dashboard  Rename a dashboard to "SQL server status".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dashboard.update",     "params": {         "dashboardid": "2",         "name": "SQL server status"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "2"         ]     },     "id": 1 } ```
ca	#### Reanomenant un tauler  Reanomenar el tauler com a "Estat del servidor SQL".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dashboard.update",     "params": {         "dashboardid": "2",         "name": "SQL server status"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Renaming a host group  Rename a host group to "Linux hosts."  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Linux hosts"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```
ca	#### reanomenar un grup d'equips  Reanomena un grup d'equips cap a "Equips Linux".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Equips Linuxhosts"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```

en-us	#### Renaming a template dashboard  Rename a template dashboard to "Performance graphs".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Performance graphs"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```
ca	#### Reanomenar una plantilla de tauler  Reanomena una plantilla de tauler a "Gràfics de rendiment".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Gràfics de rendiment"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```

en-us	#### Renaming a template group  Rename a template group to "Templates/Databases"  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.update",     "params": {         "groupid": "7",         "name": "Templates/Databases"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```
ca	#### Reanometar un grup de plantilles  Reanomena un grup de plantilles a "Plantilles / Bases de dades".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.update",     "params": {         "groupid": "7",         "name": "Plantilles / Bases de Dades"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```

en-us	#### Renaming a template  Rename the template to "Template OS Linux".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Template OS Linux"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```
ca	#### Reanomenar una plantilla  Reanomenar la plantilla a "Plantilla OS Linux".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Plantilla OS Linux"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```

en-us	#### Renaming a user  Rename a user to John Doe.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "John",         "surname": "Doe"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```
ca	#### Reanomenar un usuari  Reanomena un usuari a "Josep Perarnau".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "Josep",         "surname": "Perarnau"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```

en-us	 ##### repeat(value,count) {#repeat}  Repeat a string.<br> Supported value types: *String*, *Text*, *Log*.  Parameter:   -   **value** - the value to check;<br> -   **count** - the number of times to repeat.  Example:      repeat(last(/host/key),2) #repeat the value two times
ca	 ##### repeat(value,count) {#repeat}  Repeteix una cadena.<br> Tipus de valor admesos: *Cadena*, *Text*, *Log*.  Paràmetre:   -   **valor** - valor a comprovar;<br> -   **recompte** - nombre de vegades a repetir.  Exemple:      repeat(last(/host/key),2) #repeteix dos cops el valor

en-us	#### Replace conditions, but keep the evaluation method  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.update",     "params": {         "correlationid": "1",         "filter": {             "conditions": [                 {                     "type": 3,                     "oldtag": "error",                     "newtag": "ok"                 }             ]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "correlationids": [             "1"         ]     },     "id": 1 } ```
ca	#### Reemplaçar condicions, mantinguent el mètode d'avaluació  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.update",     "params": {         "correlationid": "1",         "filter": {             "conditions": [                 {                     "type": 3,                     "oldtag": "error",                     "newtag": "ok"                 }             ]         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "correlationids": [             "1"         ]     },     "id": 1 } ```

en-us	##### Replace {#replace}  Find the search string and replace it with another (or nothing).  Parameters:  -   **search string** - the string to find and replace, case-sensitive (required);<br> -   **replacement** - the string to replace the search string with. The replacement string may also be empty effectively allowing to delete the search string when found.  Comments:  -   All occurrences of the search string will be replaced; -   It is possible to use escape sequences to search for or replace line breaks, carriage return, tabs and spaces "\\n \\r \\t \\s"; backslash can be escaped as "\\\\" and escape sequences can be escaped as "\\\\n"; -   Escaping of line breaks, carriage return, tabs is automatically done during low-level discovery.
ca	##### Substitueix {#replace}  Cerqueu la cadena de cerca i substituïu-la per una altra (o res).  Paràmetres:  - **cadena de cerca** - la cadena a trobar i substituir, distingeix entre majúscules i minúscules (obligatori);<br> - **reemplaçament** - la cadena per substituir la cadena de cerca. La cadena de substitució també pot ésser buida de manera efectiva, permetent eliminar la cadena de cerca quan es trobi.  Comentaris:  - Es substituiran totes les ocurrències de la cadena de cerca; - És possible emprar seqüències d'escapada per cercar o substituir salts de línia, retorn de carro, tabulacions i espais "\\n \\r \\t \\s"; La barra invertida es pot escapar com a "\\\\" i les seqüències d'escapament es poden escapar com a "\\\\n"; - L'escapament de salts de línia, retorn de carro i pestanyes es fa automàticament durant la descoberta de baix nivell.

en-us	 ##### replace(value,pattern,replacement) {#replace}  Find the pattern in the value and replace with replacement. All occurrences of the pattern will be replaced.<br> Supported value types: *String*, *Text*, *Log*.  Parameter:   -   **value** - the value to check;<br> -   **pattern** - the pattern to find;<br> -   **replacement** - the string to replace the pattern with.  Example:      replace(last(/host/key),"ibb","abb") - replace all 'ibb' with 'abb'
ca	 ##### replace(value,pattern,replacement) {#replace}  Troba el patró al valor i el substitueix. Es substituiran totes les ocurrències del patró.<br> Tipus de valors admesos: *Cadena*, *Text*, *Log*.  Paràmetre:  - **valor** - valor que cal comprovar;<br> - **patró** - patró a cercar;<br> - **reemplaçament** - cadena per substituir el patró.  Exemple:      replace(last(/host/key),"ibb","abb") - substitueix tots els 'ibb' amb 'abb'

en-us	#### Replacing dependencies  Replace dependencies for trigger.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "22713",         "dependencies": [             {                 "triggerid": "22712"             },             {                 "triggerid": "22772"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "22713"         ]     },     "id": 1 } ```
ca	#### Reemplaçar dependències  Reemplaça dependències per tigger.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "22713",         "dependencies": [             {                 "triggerid": "22712"             },             {                 "triggerid": "22772"             }         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "22713"         ]     },     "id": 1 } ```

en-us	#### Replacing host interfaces  Replace all host interfaces with a single agent interface.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```
ca	#### Reemplaçar interfícies d'equips  Reemplaçar totes les interfícies d'un equip per una sola interfície d'agent.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```

en-us	#### Replacing hosts in a host group  Replace all hosts in a host group to ones mentioned host.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```
ca	#### Reemplaçar equips dins un grup d'equips  Reemplaça tots els equips d'un grup d'equips per els equips triats.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ],     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```

en-us	#### Replacing templates in a template group  Replace all templates in a template group to ones mentioned templates.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massupdate",     "params": {         "groups": [             {                 "groupid": "8"             }         ],         "templates": [             {                 "templateid": "40050"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "8",         ]     },     "id": 1 } ```
ca	#### Reemplaçar plantilles d'un grup de plantilles  Reemplaça totes les plantilles d'un grup de plantilles per les plantilles anomenades.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "templategroup.massupdate",     "params": {         "groups": [             {                 "groupid": "8"             }         ],         "templates": [             {                 "templateid": "40050"             }         ],     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "groupids": [             "8",         ]     },     "id": 1 } ```

en-us	#### Replacing trigger prototype tags  Replace tags for one trigger prototype.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```
ca	#### Reemplaçar les etiquetes de prototip de trigger  Reemplaça les etiquetes d'un prototip de trigger.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```

en-us	#### Replacing triggers tags  Replace tags for trigger.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```
ca	#### Reemplaçar etiquetes de triggers  Reemplaça les etiquetes d'un trigger.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```

en-us	#### Replacing user macros  Replace all user macros with the given user macro on multiple templates.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10074"             },             {                 "templateid": "10075"             },             {                 "templateid": "10076"             },             {                 "templateid": "10077"             }         ],         "macros": [             {                 "macro": "{$AGENT.TIMEOUT}",                 "value": "5m",                 "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)."             }         ]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10074",             "10075",             "10076",             "10077"         ]     },     "id": 1 } ```
ca	#### Reemplaçar macros d'usuari  Substitueix totes les macros d'usuari per la macro donada a diverses plantilles.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10074"             },             {                 "templateid": "10075"             },             {                 "templateid": "10076"             },             {                 "templateid": "10077"             }         ],         "macros": [             {                 "macro": "{$AGENT.TIMEOUT}",                 "value": "5m",                 "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)."             }         ]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10074",             "10075",             "10076",             "10077"         ]     },     "id": 1 } ```

en-us	# report.create
ca	# report.create

en-us	# report.delete
ca	# report.delete

en-us	 ### Report details  If you click on the service name in the report, you can access another report  that displays a more detailed view.  ![](../../../../../assets/en/manual/web_interface/sla_report_details.png){width="600"}  Note that [negative problem duration](/manual/web_interface/frontend_sections/monitoring/problems#negative-problem-duration) does not affect SLA calculation or reporting.
ca	### Detalls de l'informe  Si feu clic al nom del servei de l'informe, podreu accedir a un altre informe amb una vista més detallada.  ![](../../../../../assets/en/manual/web_interface/sla_report_details.png){width="600"}  Tingueu en compte que la [durada del problema negatiu](/manual/web_interface/frontend_sections/monitoring/problems#negative-problem-duration) no afecta al càlcul ni als informes d'SLA.

en-us	# report.get
ca	# report.get

en-us	# Report object  The following objects are directly related to the `report` API.
ca	# Objecte informe  Els següents objectes són relacionats amb l'API `report`.

en-us	 ### Report  The filter allows to select the report based on the SLA name as well as the  service name. It is also possible to limit the displayed period.  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  Each column (period) displays the SLI for that period. SLIs that are in breach of the set  SLO are highlighted in red.  20 periods are displayed in the report. A maximum of 100 periods can be displayed, if  both the *From* date and *To* date are specified. 
ca	### Informe  El filtre us permet triar l'informe en funció del nom del SLA així com del nom del servei. També és possible limitar el període mostrat.  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  Cada columna (període) mostra l'SLI d'aquest període. Els SLI que no compleixen l'SLO definit es destaquen en vermell.  A l'informe es veuen 20 períodes. Es poden veure un màxim de 100 períodes, si s'especifica la data *Des de* i la data *Fins a*.

en-us	### Report  The report object has the following properties:  |Property|[Type](/manual/api/reference_commentary#data_types)|Description| |--|--|------| |reportid|ID|ID of the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*<br>- *required* for update operations| |userid|ID|ID of the user who created the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |name|string|Unique name of the report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |dashboardid|ID|ID of the dashboard that the report is based on.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* for create operations| |period|integer|Period for which the report will be prepared.<br><br>Possible values:<br>0 - *(default)* previous day;<br>1 - previous week;<br>2 - previous month;<br>3 - previous year.| |cycle|integer|Period repeating schedule.<br><br>Possible values:<br>0 - *(default)* daily;<br>1 - weekly;<br>2 - monthly;<br>3 - yearly.| |start\_time|integer|Time of the day, in seconds, when the report will be prepared for sending.<br><br>Default: 0.| |weekdays|integer|Days of the week for sending the report.<br><br>Days of the week are stored in binary form with each bit representing the corresponding week day. For example, 12 equals 1100 in binary and means that reports will be sent every Wednesday and Thursday.<br><br>Default: 0.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *required* if `cycle` is set to "weekly".| |active\_since|string|On which date to start.<br><br>Possible values:<br>empty string - *(default)* not specified (stored as 0);<br>specific date in YYYY-MM-DD format (stored as a timestamp of the beginning of a day (00:00:00)).| |active\_till|string|On which date to end.<br><br>Possible values:<br>empty string - *(default)* not specified (stored as 0);<br>specific date in YYYY-MM-DD format (stored as a timestamp of the end of a day (23:59:59)).| |subject|string|Report message subject.| |message|string|Report message text.| |status|integer|Whether the report is enabled or disabled.<br><br>Possible values:<br>0 - Disabled;<br>1 - *(default)* Enabled.| |description|text|Description of the report.| |state|integer|State of the report.<br><br>Possible values:<br>0 - *(default)* report was not yet processed;<br>1 - report was generated and successfully sent to all recipients;<br>2 - report generating failed; "info" contains error information;<br>3 - report was generated, but sending to some (or all) recipients failed; "info" contains error information.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*| |lastsent|timestamp|Unix timestamp of the last successfully sent report.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*| |info|string|Error description or additional information.<br><br>[Property behavior](/manual/api/reference_commentary#property-behavior):<br>- *read-only*|
ca	### Informe  L'objecte té les propietats següents:  |Propietat|[Tipus](/manual/api/reference_commentary#data_types)|Descripció| |--|--|------| |reportid|ID|ID de l'informe.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *només lectura*<br>- *obligatori* per operacions d'actualització| |userid|ID|ID de l'usuari que ha creat l'informe.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* per operacions de creació| |name|string|Nom únic de l'informe.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* per operacions de creació| |dashboardid|ID|ID del tauler de control en què es basa l'informe.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* per operacions de creació| |period|integer|Període per al qual s'elaborarà l'informe.<br><br>Valors possibles:<br>0 - *(per defecte)* dia anterior;<br>1 - setmana anterior;<br>2 - anterior mes;<br>3 - any anterior.| |cycle|integer|Programació de repetició del període.<br><br>Valors possibles:<br>0 - *(per defecte)* diari;<br>1 - setmanal;<br>2 - mensual;<br >3 - anual.| |start\_time|integer|Hora del dia, en segons, en què es prepararà l'informe per enviar-lo.<br><br>Per defecte: 0.| |weekdays|integer|Dies de la setmana per enviar l'informe.<br><br>Els dies de la setmana s'emmagatzemen en forma binària, amb cada bit que representa el dia corresponent de la setmana. Per exemple, 12 és igual a 1100 en binari i vol dir que s'enviaran informes cada dimecres i dijous.<br><br>Per defecte: 0.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *obligatori* si `cycle` és "weekly".| |active\_since|string|Quan ha de començar.<br><br>Valors possibles:<br>cadena buida - *(per defecte)* sense especificar (emmagatzemat com a 0);<br>data específica del format AAAA-MM-DD (emmagatzemat com a marca de temps d'inici del dia (00:00:00)).| |active\_till|string|Quan ha d'acabar.<br><br>Valors possibles:<br>cadena buida - *(per defecte)* sense especificar (emmagatzemat com a 0);<br>data específica en format YYYY-MM-DD (emmagatzemat com a marca de temps del final del dia (23:59:59)).| |subject|string|Assumpte del missatge de l'informe.| |message|string|Informa del text del missatge.| |status|integer|Indica si l'informe és actiu o desactivat.<br><br>Valors possibles:<br>0 - Desactivat;<br>1 - *(per defecte)* Activat.| |description|text|Descripció de l'informe.| |state|integer|Estat de l'informe.<br><br>Valors possibles:<br>0 - *(per defecte)* l'informe encara no s'ha processat;<br>1 - informe generat enviat correctament a tots els destinataris;<br>2 - no s'ha pogut generar l'informe; "info" conté informació d'error;<br>3 - s'ha generat l'informe, però no s'ha pogut enviar a alguns (o a tots) els destinataris; "info" conté informació d'error.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *només lectura*| |lastsent|timestamp|Marca de temps de Unix del darrer informe enviat correctament.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *només lectura*| |info|string|Descripció de l'error o informació addicional.<br><br>[Comportament de la propietat](/manual/api/reference_commentary#property-behavior):<br>- *només lectura*|

en-us	# Report  This class is designed to work with scheduled reports.  Object references:  -   [Report](/manual/api/reference/report/object#report) -   [Users](/manual/api/reference/report/object#users) -   [User groups](/manual/api/reference/report/object#user_groups)  Available methods:  -   [report.create](/manual/api/reference/report/create) - create new scheduled reports -   [report.delete](/manual/api/reference/report/delete) - delete scheduled reports -   [report.get](/manual/api/reference/report/get) - retrieve scheduled reports -   [report.update](/manual/api/reference/report/update) - update scheduled reports
ca	# Informe  Aquesta classe és dissenyada per treballar amb informes programats.  Referències d'objectes:  -   [Informe](/manual/api/reference/report/object#report) -   [Usuaris](/manual/api/reference/report/object#users) -   [Grups d'usuaris](/manual/api/reference/report/object#user_groups)  Mètodes disponibles:  -   [report.create](/manual/api/reference/report/create) - crear nous informes programats -   [report.delete](/manual/api/reference/report/delete) - esborrar informes programats -   [report.get](/manual/api/reference/report/get) - recuperar informes programats -   [report.update](/manual/api/reference/report/update) - actualitzar informes programats

en-us	# report.update
ca	# report.update

en-us	##### - Repositories  Official Zabbix [repository](/manual/installation/install_from_packages/rhel) has been added to */etc/yum.repos.d*:      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
ca	##### - Repositoris  El [repositori](/manual/installation/install_from_packages/rhel) oficial de Zabbix s'ha afegit a */etc/yum.repos.d* :      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/7.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

en-us	#### Requesting authenticated user's information  Authenticate and return additional information about the user.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.login",     "params": {         "username": "Admin",         "password": "zabbix",         "userData": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userid": "1",         "username": "Admin",         "name": "Zabbix",         "surname": "Administrator",         "url": "",         "autologin": "1",         "autologout": "0",         "lang": "ru_RU",         "refresh": "0",         "theme": "default",         "attempt_failed": "0",         "attempt_ip": "127.0.0.1",         "attempt_clock": "1355919038",         "rows_per_page": "50",         "timezone": "Europe/Riga",         "roleid": "3",         "userdirectoryid": "0",         "type": 3,         "userip": "127.0.0.1",         "debug_mode": 0,         "gui_access": "0",         "mfaid": "1",         "deprovisioned": false,         "auth_type": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42",         "secret": "cd0ba923319741c6586f3d866423a8f4"     },     "id": 1 } ```
ca	#### Demanar informació de l'usuari autenticat  Autentica i reenvia la informació suplementària de l'usuari.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.login",     "params": {         "username": "Admin",         "password": "zabbix",         "userData": true     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "userid": "1",         "username": "Admin",         "name": "Zabbix",         "surname": "Administrator",         "url": "",         "autologin": "1",         "autologout": "0",         "lang": "ru_RU",         "refresh": "0",         "theme": "default",         "attempt_failed": "0",         "attempt_ip": "127.0.0.1",         "attempt_clock": "1355919038",         "rows_per_page": "50",         "timezone": "Europe/Riga",         "roleid": "3",         "userdirectoryid": "0",         "type": 3,         "userip": "127.0.0.1",         "debug_mode": 0,         "gui_access": "0",         "mfaid": "1",         "deprovisioned": false,         "auth_type": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42",         "secret": "cd0ba923319741c6586f3d866423a8f4"     },     "id": 1 } ```

en-us	 [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```
ca	 [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```

en-us	### Required mode
ca	### Mode obligatori

en-us	### Required mode
ca	### Mode obligatori

en-us	#### Required software  Zabbix is built around modern web servers, leading database engines, and PHP scripting language.
ca	#### Programari requerit  Zabbix és construït al voltant de servidors web moderns, motors de bases de dades de darrera generació i llenguatge de script PHP.

en-us	##### Requirements  The following is required to set up encryption:  -   Developer-supported operating system with OpenSSL >=1.1.X or     alternative.  ::: noteclassic  It is recommended to avoid OS in the end-of-life status, especially in the case of new installations  :::  -   Database engine (RDBMS) installed and maintained from the official     repository provided by developer. Operating systems often shipped     with outdated  database software versions for which encryption     support is not implemented, for example RHEL 7 based systems and     PostgreSQL 9.2, MariaDB 5.5 without encryption support. 
ca	##### Especificacions  Els elements següents són requerits per configurar el xifrat:  - El sistema d'explotació admès per els desenvolupadors amb OpenSSL >=1.1.X o alternatiu.  ::: noteclassic  Es recomana evitar els sistemes d'explotació prop de fi de vida, especialment a les noves instal·lacions :::  - El motor de base de dades (RDBMS) instal·lat i mantingut a partir del repositori oficial del desenvolupador. Els sistemes d'explotació sovint són lliurats amb vesrions de programari de base de dades obsoletes per aquelles on el suport de xifrat no és pas implementat, per exemple els sistemes basats en RHEL 7 i PostgreSQL 9.2, MariaDB 5.5 sense suport de xifrat.

en-us	### Reserved ID value "0"  Reserved ID value "0" can be used to filter elements and to remove referenced objects. For example, to remove a referenced proxy from a host, proxyid should be set to 0 ("proxyid": "0") or to filter hosts monitored by server option proxyids should be set to 0 ("proxyids": "0").
ca	### Valor d'ID reservat "0"  El valor "0" d'ID reservat es pot emprar per filtrar elements i esborrar objectes referenciats. Per exemple, per esborrar un proxy referenciat d'un equip, s'ha d'establir proxyid should a 0 ("proxyid": "0"), o per filtrar equips monitorats per l'opció del servidor, s'ha d'establir proxyids a 0 ("proxyids": "0").

en-us	#### Resetting TOTP secrets for multiple users  Reset TOTP secrets for two users.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.resettotp",     "params": [         "1",         "5"     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1",             "5"         ]     },     "id": 1 } ```
ca	#### Resetejar secrets TOTP de diversos usuaris  Reseteja els secrets TOTP de dos usuaris.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "user.resettotp",     "params": [         "1",         "5"     ],     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1",             "5"         ]     },     "id": 1 } ```

en-us	#### Resize a map  Change the size of the map to 1200x1200 pixels.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```
ca	#### Redimensionar un mapa  Canviar la mida del mapa a 1200x1200 píxels.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```

en-us	#### Restricting allowed certificate Issuer and Subject  When two Zabbix components (e.g. server and agent) establish a TLS connection they both check each others certificates. If a peer certificate is signed by a trusted CA (with pre-configured top-level certificate in `TLSCAFile`), is valid, has not expired and passes some other checks then communication can proceed. Certificate issuer and subject are not checked in this simplest case.  Here is a risk - anybody with a valid certificate can impersonate anybody else (e.g. a host certificate can be used to impersonate server). This may be acceptable in small environments where certificates are signed by a dedicated in-house CA and risk of impersonating is low.  If your top-level CA is used for issuing other certificates which should not be accepted by Zabbix or you want to reduce risk of impersonating you can restrict allowed certificates by specifying their Issuer and Subject strings.  For example, you can write in Zabbix proxy configuration file:      TLSServerCertIssuer=CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=Zabbix server,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  With these settings, an active proxy will not talk to Zabbix server with different Issuer or Subject string in certificate, a passive proxy will not accept requests from such server.  A few notes about Issuer or Subject string matching:  1.  Issuer and Subject strings are checked independently. Both are     optional. 2.  UTF-8 characters are allowed. 3.  Unspecified string means any string is accepted. 4.  Strings are compared "as-is", they must be exactly the same to     match. 5.  Wildcards and regexp's are not supported in matching. 6.  Only some requirements from [RFC 4514 Lightweight Directory Access     Protocol (LDAP): String Representation of Distinguished     Names](http://tools.ietf.org/html/rfc4514) are implemented:     1.  escape characters '"' (U+0022), '+' U+002B, ',' U+002C, ';'         U+003B, '<' U+003C, '>' U+003E, '\\' U+005C anywhere in         string.     2.  escape characters space (' ' U+0020) or number sign ('\#'         U+0023) at the beginning of string.     3.  escape character space (' ' U+0020) at the end of string. 7.  Match fails if a null character (U+0000) is encountered ([RFC     4514](http://tools.ietf.org/html/rfc4514) allows it). 8.  Requirements of [RFC 4517 Lightweight Directory Access Protocol     (LDAP): Syntaxes and Matching     Rules](http://tools.ietf.org/html/rfc4517) and [RFC 4518 Lightweight     Directory Access Protocol (LDAP): Internationalized String     Preparation](http://tools.ietf.org/html/rfc4518) are not supported     due to amount of work required.  Order of fields in Issuer and Subject strings and formatting are important! Zabbix follows [RFC 4514](http://tools.ietf.org/html/rfc4514) recommendation and uses "reverse" order of fields.  The reverse order can be illustrated by example:      TLSServerCertIssuer=CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     TLSServerCertSubject=CN=Zabbix proxy,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  Note that it starts with low level (CN), proceeds to mid-level (OU, O) and ends with top-level (DC) fields.  *OpenSSL* by default shows certificate Issuer and Subject fields in "normal" order, depending on additional options used:      $ openssl x509 -noout -in /home/zabbix/zabbix_proxy.crt -issuer -subject     issuer= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Development group/CN=Signing CA     subject= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Development group/CN=Zabbix proxy      $ openssl x509 -noout -text -in /home/zabbix/zabbix_proxy.crt     Certificate:             ...             Issuer: DC=com, DC=zabbix, O=Zabbix SIA, OU=Development group, CN=Signing CA         ...             Subject: DC=com, DC=zabbix, O=Zabbix SIA, OU=Development group, CN=Zabbix proxy  Here Issuer and Subject strings start with top-level (DC) and end with low-level (CN) field, spaces and field separators depend on options used. None of these values will match in Zabbix Issuer and Subject fields!  ::: noteimportant  To get proper Issuer and Subject strings usable in Zabbix invoke OpenSSL with special options\ (`-nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname`):  :::      $ openssl x509 -noout -issuer -subject \             -nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname \             -in /home/zabbix/zabbix_proxy.crt     issuer= CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     subject= CN=Zabbix proxy,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com  Now string fields are in reverse order, fields are comma-separated, can be used in Zabbix configuration files and frontend.
ca	#### Restricció de l'emissor i receptor autoritzats  Quan dos components (per exemple, el servidor Zabbix i l'agent) estableixen una connexió TLS, cadascun comprova els certificats de l'altre. Si un certificat igual signat per una CA de confiança (amb un certificat de nivell superior preconfigurat a "TLSCAFile") és vàlid, no ha caducat i passa més comprovacions, la comunicació pot continuar. L'emissor i el subjecte del certificat no es comprova en aquest cas més senzill.  Hi ha el risc que qualsevol persona amb un certificat vàlid pugui suplantar la identitat d'una altra persona (per exemple, es pot emprar un certificat d'equip per suplantar la identitat d'un servidor). Això pot ser acceptable en entorns petits on els certificats són signats per una CA interna dedicada i el risc de suplantació d'identitat és baix.  Si la vostra CA de nivell superior s'empra per emetre altres certificats que Zabbix no hauria d'acceptar o si voleu reduir el risc de falsificació, podeu restringir els certificats permesos especificant-ne el remitent i l'assumpte.  Per exemple, podeu escriure al fitxer de configuració del proxy Zabbix:       TLSServerCertIssuer=CN=Signing CA,OU=Grup de desenvolupament,O=Zabbix SIA,DC=zabbix,DC=com      TLSServerCertSubject=CN=Servidor Zabbix,OU=Grup de desenvolupament,O=Zabbix SIA,DC=zabbix,DC=com  Amb aquesta configuració, el proxy actiu no es comunicarà amb el servidor Zabbix amb una cadena d'emissor o una cadena de subjecte diferent al certificat, i el proxy passiu no acceptarà peticions d'aquest servidor.  Algunes notes sobre la concordança de la cadena del remitent o de l'assumpte:  1. Les cadenes del remitent i del subjecte es comproven de manera independent. Tots dos són opcionals. 2. Es permeten caràcters UTF-8. 3. La cadena no especificada significa que s'accepta qualsevol cadena. 4. Les cadenes es comparen "tal com són", han de ser exactament iguals perquè coincideixin. 5. Els comodins i les expressions regulars no s'admeten a la concordança. 6. Només s'implementen certs requisits d'[RFC 4514 Lightweight Directory Access Protocol (LDAP): String Representation of Distinguished Names](http://tools.ietf.org/html/rfc4514):      1. caràcters d'escapada '"' (U+0022), '+' U+002B, ',' U+002C, ';' U+003B, '<' U+003C, '>' U+003E, '\' U+005C en qualsevol lloc de la cadena.      2. Caràcters d'escapada (' ' U+0020) o el signe de lletra ('#' U+0023) al principi de la cadena.      3. caràcters d'escapada (' ' U+0020) al final de la cadena. 7. La coincidència falla si es troba un caràcter nul (U+0000) ([[http://tools.ietf.org/html/rfc4514|RFC 4514]] ho permet). 8. Els requisits de [[http://tools.ietf.org/html/rfc4517|RFC 4517 Lightweight Directory Access Protocol (LDAP): sintaxis i regles de concordança]] i [[http://tools.ietf.org/ html/rfc4518|RFC 4518 Lightweight Directory Access Protocol (LDAP): preparació de cadenes internacionalitzades]] no s'admeten a causa de la quantitat de treball necessària.  L'ordre dels camps a les cadenes Entrega per i Assumpte i el format són importants! Zabbix segueix les recomanacions de [RFC 4514](http://tools.ietf.org/html/rfc4514) i empra l'ordre "inversa" dels camps.  L'ordre inversa es pot il·lustrar amb l'exemple següent:       TLSServerCertIssuer=CN=Signing CA,OU=Grup de desenvolupament,O=Zabbix SIA,DC=zabbix,DC=com      TLSServerCertSubject=CN=Proxy Zabbix,OU=Grup de desenvolupament,O=Zabbix SIA,DC=zabbix,DC=com  Tingueu en compte que comença amb el nivell baix (CN), va al nivell mitjà (OU, O) i acaba amb els camps de nivell superior (DC).  *OpenSSL* mostra per defecte els camps Emissor i Assumpte del certificat en ordre "normal", depenent de les opcions addicionals emprades:       $ openssl x509 -noout -in /home/zabbix/zabbix_proxy.crt -issuer -subject      emissor= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Grup de desenvolupament/CN=Signing CA      subject= /DC=com/DC=zabbix/O=Zabbix SIA/OU=Grup de desenvolupament/CN=Proxy Zabbix       $ openssl x509 -noout -text -in /home/zabbix/zabbix_proxy.crt      Certificació:              ...              Emissor: DC=com, DC=zabbix, O=Zabbix SIA, OU=Grup de desenvolupament, CN=Signing CA          ...              Assumpte: DC=com, DC=zabbix, O=Zabbix SIA, OU=Grup de desenvolupament, CN=proxy Zabbix  Aquí les cadenes Emissor i Subject comencen amb el nivell superior (DC) i acaben amb un camp de nivell baix (CN), els espais i els separadors de camps depenen de les opcions emprades. Cap d'aquests valors coincidirà als camps Remitent i Assumpte de Zabbix!  ::: noteimportant   Per obtindre les cadenes correctes d'emissor i subjecte que es puguin emprar a Zabbix, executeu OpenSSL amb opcions especials\ (`-nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname`):      $ openssl x509 -noout -issuer -subject \             -nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname \             -in /home/zabbix/zabbix_proxy.crt     issuer= CN=Signing CA,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com     subject= CN=Zabbix proxy,OU=Development group,O=Zabbix SIA,DC=zabbix,DC=com :::  Ara els camps de cadena són en ordre invers, els camps són separats per comes, es poden emprar en fitxers de configuració i a la interfície Zabbix.

en-us	#### Result  The `Result` object contains session statistics and is returned by the [`Browser`](#browser) object `getResult()` method.  Typically, the `Result` object is stringified and returned from the script, and then parsed into dependent item values through preprocessing.  While the `Result` object does not have any methods, it can contain the following properties.  |Property|<|<|Type|Description| |-|-|-|-----|---------------------| |duration|<|<|string|Session duration from session creation to result retrieval.| |error|<|<|object|Error information.| |<|http_status|<|integer|HTTP status returned by the WebDriver (or 0 if there are no WebDriver errors).| |^|error_code|<|string|Error returned by the WebDriver (or empty string if there are no WebDriver errors).| |^|message|<|string|WebDriver error message (or empty string if there are no WebDriver errors).| |performance_data|<|<|object|Performance statistics.| |<|summary|<|object|Performance summary.| |^|<|navigation|object|Navigation summary.| |^|^|resource|object|Resource summary.| |<|details|<|array of objects|Performance statistics after each operation that could have resulted in navigation.| |^|<|mark|string|*(optional)* Performance snapshot mark specified with the [`collectPerfEntries()`](#browser) method.| |^|^|navigation|object|Navigation statistics.| |^|^|resource|object|Resource summary for this step.| |^|^|user|array of objects|Array of mark/measure type statistics.| |<|marks|<|array of objects|Marked performance snapshot indexes.| |^|<|name|string|Performance snapshot mark name.| |^|^|index|integer|Performance snapshot index in details array.|
ca	#### Resultat  L'objecte `Result` conté estadístiques de sessió i és retornat pel mètode [`Navegador`](#browser) `getResult()`.  Normalment, l'objecte `Result` es restringeix i es retorna des de l'script, i després s'analitza en valors d'element dependents mitjançant el preprocessament.  Tot i que l'objecte `Result` no té cap mètode, pot contindre les propietats següents.  |Propietat|<|<|Tipus|Descripció| |-|-|-|------|---------------------| |duration|<|<|string|Durada de la sessió des de la creació de la sessió fins a la recuperació del resultat.| |error|<|<|object|Informació d'error.| |<|http_status|<|integer|Estat HTTP retornat pel WebDriver (o 0 si no hi ha errors de WebDriver).| |^|error_code|<|string|Error retornat pel WebDriver (o cadena buida si no hi ha errors de WebDriver).| |^|missatge|<|string|Missatge d'error de WebDriver (o cadena buida si no hi ha errors de WebDriver).| |dades_de_rendiment|<|<|object|Estadístiques de rendiment.| |<|resum|<|object|Resum del rendiment.| |^|<|navegació|object|Resum de navegació.| |^|^|recurs|object|Resum del recurs.| |<|detalls|<|array of objects|Estadístiques de rendiment després de cada operació que podria haver donat lloc a la navegació.| |^|<|mark|string|*(opcional)* Marca d'instantània de rendiment especificada amb el mètode [`collectPerfEntries()`](#browser).| |^|^|navegació|object|Estadístiques de navegació.| |^|^|recurs|object|Resum del recurs per a aquest pas.| |^|^|usuari|array of objects|Matriu d'estadístiques de tipus de marca/mesura.| |<|marks|<|array of objects|Índexs d'instantània de rendiment marcats.| |^|<|nom|string|Nom de la marca de la instantània de rendiment.| |^|^|index|integer|Índex d'instantània de rendiment a la matriu de detalls.|

en-us	#### Retrieve alerts by action ID  Retrieve all alerts generated by action "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "alert.get",     "params": {         "output": "extend",         "actionids": "3"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "alertid": "1",             "actionid": "3",             "eventid": "21243",             "userid": "1",             "clock": "1362128008",             "mediatypeid": "1",             "sendto": "support@company.com",             "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",             "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",             "status": "0",             "retries": "3",             "error": "",             "esc_step": "1",             "alerttype": "0",             "p_eventid": "0",             "acknowledgeid": "0"         }     ],     "id": 1 } ```
ca	#### Recuperar les alertes per l'ID d'acció  Recuperar totes les alertes generades per l'acció "3".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "alert.get",     "params": {         "output": "extend",         "actionids": "3"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "alertid": "1",             "actionid": "3",             "eventid": "21243",             "userid": "1",             "clock": "1362128008",             "mediatypeid": "1",             "sendto": "support@company.com",             "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",             "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",             "status": "0",             "retries": "3",             "error": "",             "esc_step": "1",             "alerttype": "0",             "p_eventid": "0",             "acknowledgeid": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieve all discovery rules  Retrieve all configured discovery rules and the discovery checks they use.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "drule.get",     "params": {         "output": "extend",         "selectDChecks": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "druleid": "2",             "proxyid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "concurrency_max": "0",             "error": "",             "dchecks": [                 {                     "dcheckid": "7",                     "druleid": "2",                     "type": "3",                     "key_": "",                     "snmp_community": "",                     "ports": "21",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 },                 {                     "dcheckid": "8",                     "druleid": "2",                     "type": "4",                     "key_": "",                     "snmp_community": "",                     "ports": "80",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 }             ]         },         {             "druleid": "6",             "proxyid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "concurrency_max": "10",             "error": "",             "dchecks": [                 {                     "dcheckid": "10",                     "druleid": "6",                     "type": "9",                     "key_": "system.uname",                     "snmp_community": "",                     "ports": "10050",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "2",                     "name_source": "3",                     "allow_redirect": "0"                 }             ]         }     ],     "id": 1 } ```
ca	#### Recuperar totes les regles de descoberta  Recupera totes les regles de descoberta configurades i els testos de descoberta que empren.  [Petició](/manual/api#performing-requests):   ```json {     "jsonrpc": "2.0",     "method": "drule.get",     "params": {         "output": "extend",         "selectDChecks": "extend"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "druleid": "2",             "proxyid": "0",             "name": "Local network",             "iprange": "192.168.3.1-255",             "delay": "5s",             "status": "0",             "concurrency_max": "0",             "error": "",             "dchecks": [                 {                     "dcheckid": "7",                     "druleid": "2",                     "type": "3",                     "key_": "",                     "snmp_community": "",                     "ports": "21",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 },                 {                     "dcheckid": "8",                     "druleid": "2",                     "type": "4",                     "key_": "",                     "snmp_community": "",                     "ports": "80",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "1",                     "name_source": "0",                     "allow_redirect": "0"                 }             ]         },         {             "druleid": "6",             "proxyid": "0",             "name": "Zabbix agent discovery",             "iprange": "192.168.1.1-255",             "delay": "1h",             "status": "0",             "concurrency_max": "10",             "error": "",             "dchecks": [                 {                     "dcheckid": "10",                     "druleid": "6",                     "type": "9",                     "key_": "system.uname",                     "snmp_community": "",                     "ports": "10050",                     "snmpv3_securityname": "",                     "snmpv3_securitylevel": "0",                     "snmpv3_authpassphrase": "",                     "snmpv3_privpassphrase": "",                     "uniq": "0",                     "snmpv3_authprotocol": "0",                     "snmpv3_privprotocol": "0",                     "snmpv3_contextname": "",                     "host_source": "2",                     "name_source": "3",                     "allow_redirect": "0"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve all proxies  Retrieve all configured proxies and their interfaces.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxyid": "11",             "name": "Active proxy",             "proxy_groupid": "0",             "local_address": "",             "local_port": "10051",             "operating_mode": "0",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "0",             "timeout_zabbix_agent": "",             "timeout_simple_check": "",             "timeout_snmp_agent": "",             "timeout_external_check": "",             "timeout_db_monitor": "",             "timeout_http_agent": "",             "timeout_ssh_agent": "",             "timeout_telnet_agent": "",             "timeout_script": "",             "last_access": "1693391880",             "version": "70000",             "compatibility": "1",             "state": "1"         },         {             "proxyid": "12",             "name": "Passive proxy",             "proxy_groupid": "1",             "local_address": "127.0.0.1",             "local_port": "10051",             "operating_mode": "1",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "1",             "timeout_zabbix_agent": "5s",             "timeout_simple_check": "5s",             "timeout_snmp_agent": "5s",             "timeout_external_check": "5s",             "timeout_db_monitor": "5s",             "timeout_http_agent": "5s",             "timeout_ssh_agent": "5s",             "timeout_telnet_agent": "5s",             "timeout_script": "5s",             "lastaccess": "1693391875",             "version": "60400",             "compatibility": "2",             "state": "2"         }     ],     "id": 1 } ```
ca	#### Recuperar tots els proxys  Recuperar tots els proxys configurats i les seves interfícies.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxyid": "11",             "name": "Active proxy",             "proxy_groupid": "0",             "local_address": "",             "local_port": "10051",             "operating_mode": "0",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "0",             "timeout_zabbix_agent": "",             "timeout_simple_check": "",             "timeout_snmp_agent": "",             "timeout_external_check": "",             "timeout_db_monitor": "",             "timeout_http_agent": "",             "timeout_ssh_agent": "",             "timeout_telnet_agent": "",             "timeout_script": "",             "last_access": "1693391880",             "version": "70000",             "compatibility": "1",             "state": "1"         },         {             "proxyid": "12",             "name": "Passive proxy",             "proxy_groupid": "1",             "local_address": "127.0.0.1",             "local_port": "10051",             "operating_mode": "1",             "description": "",             "allowed_addresses": "",             "address": "127.0.0.1",             "port": "10051",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "custom_timeouts": "1",             "timeout_zabbix_agent": "5s",             "timeout_simple_check": "5s",             "timeout_snmp_agent": "5s",             "timeout_external_check": "5s",             "timeout_db_monitor": "5s",             "timeout_http_agent": "5s",             "timeout_ssh_agent": "5s",             "timeout_telnet_agent": "5s",             "timeout_script": "5s",             "lastaccess": "1693391875",             "version": "60400",             "compatibility": "2",             "state": "2"         }     ],     "id": 1 } ```

en-us	#### Retrieve all proxy groups  Retrieve all configured proxy groups with proxies.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxygroup.get",     "params": {         "output": "extend",         "selectProxies": ["proxyid", "name"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_groupid": "1",             "name": "Proxy group 1",             "failover_delay": "1m",             "min_online": "3",             "description": "",             "state": "1",             "proxies": [                 {                     "proxyid": "1",                     "name": "proxy 1"                 },                 {                     "proxyid": "2",                     "name": "proxy 2"                 }             ]         },         {             "proxy_groupid": "2",             "name": "Proxy group 2",             "failover_delay": "10m",             "min_online": "3",             "description": "",             "state": "3",             "proxies": [                 {                     "proxyid": "3",                     "name": "proxy 3"                 },                 {                     "proxyid": "4",                     "name": "proxy 4"                 },                 {                     "proxyid": "5",                     "name": "proxy 5"                 }             ]         }     ],     "id": 1 } ```
ca	#### Recupera tots els grups de proxy  Recupereu tots els grups de proxys configurats amb proxys.   [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "proxygroup.get",     "params": {         "output": "extend",         "selectProxies": ["proxyid", "name"]     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_groupid": "1",             "name": "Proxy group 1",             "failover_delay": "1m",             "min_online": "3",             "description": "",             "state": "1",             "proxies": [                 {                     "proxyid": "1",                     "name": "proxy 1"                 },                 {                     "proxyid": "2",                     "name": "proxy 2"                 }             ]         },         {             "proxy_groupid": "2",             "name": "Proxy group 2",             "failover_delay": "10m",             "min_online": "3",             "description": "",             "state": "3",             "proxies": [                 {                     "proxyid": "3",                     "name": "proxy 3"                 },                 {                     "proxyid": "4",                     "name": "proxy 4"                 },                 {                     "proxyid": "5",                     "name": "proxy 5"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve all scripts  Retrieve all configured scripts.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         },         {             "scriptid": "5",             "name": "URL",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Go to {HOST.NAME}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "4",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action=latest.view&hostids[]={HOST.ID}",             "new_window": "0",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "6",             "name": "URL with user input",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Open zabbix page {MANUALINPUT}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action={MANUALINPUT}",             "new_window": "0",             "manualinput": "1",             "manualinput_prompt": "Select a page to open:",             "manualinput_validator": "dashboard.view,script.list,actionlog.list",             "manualinput_validator_type": "1",             "parameters": []         }     ],     "id": 1 } ```
ca	#### Recuperar tots els scripts  Recupera tots els scripts configurats.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "",             "new_window": "1",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         },         {             "scriptid": "5",             "name": "URL",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Go to {HOST.NAME}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "4",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action=latest.view&hostids[]={HOST.ID}",             "new_window": "0",             "manualinput": "0",             "manualinput_prompt": "",             "manualinput_validator": "",             "manualinput_validator_type": "0",             "manualinput_default_value": "",             "parameters": []         },         {             "scriptid": "6",             "name": "URL with user input",             "command": "",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "Open zabbix page {MANUALINPUT}?",             "type": "6",             "execute_on": "1",             "timeout": "30s",             "scope": "2",             "port": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "menu_path": "",             "url": "http://zabbix/ui/zabbix.php?action={MANUALINPUT}",             "new_window": "0",             "manualinput": "1",             "manualinput_prompt": "Select a page to open:",             "manualinput_validator": "dashboard.view,script.list,actionlog.list",             "manualinput_validator_type": "1",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieve a map  Retrieve all data about map "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                 {                     "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```
ca	#### Recuperar un mapa  Recuperar totes les dades relatives al mapa "3".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                   {                       "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve an icon map  Retrieve all data about icon map "3".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```
ca	#### Recuperar un mapa d'icones  Recupera tota la informació del mapa d'icones "3".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```

en-us	#### Retrieve an image  Retrieve all data for image with ID "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```
ca	#### Recuperar una imatge  Recupera tota la informació de l'imatge amb ID "2".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```

en-us	### Retrieve an item value via API  The widget should show the last value of an item of user's choice. For that, you need to add the ability to select items in the widget configuration.  In this section, you will learn how to add an item selection field to the widget form and how to add the visual part of this field to the configuration view. Then, the widget controller will be able to retrieve item data and its value via an API request. Once received, the value can be displayed in the widget view.  1. Open *includes/WidgetForm.php* and add the *CWidgetFieldMultiSelectItem* field. This will allow selecting an item in the configuration form.  **ui/modules/lesson_gauge_chart/includes/WidgetForm.php**  ```php <?php  namespace Modules\LessonGaugeChart\Includes;  use Zabbix\Widgets\{     CWidgetField,     CWidgetForm };  use Zabbix\Widgets\Fields\{     CWidgetFieldMultiSelectItem,     CWidgetFieldTextBox };  /**  * Gauge chart widget form.  */ class WidgetForm extends CWidgetForm {          public function addFields(): self {         return $this             ->addField(                 (new CWidgetFieldMultiSelectItem('itemid', _('Item')))                     ->setFlags(CWidgetField::FLAG_NOT_EMPTY | CWidgetField::FLAG_LABEL_ASTERISK)                     ->setMultiple(false)             )             ->addField(                 new CWidgetFieldTextBox('description', _('Description'))             );     } } ```  2. Open *views/widget.edit.php* and add the field visual component to the configuration view.  **ui/modules/lesson_gauge_chart/views/widget.edit.php**  ```php <?php  /**  * Gauge chart widget form view.  *  * @var CView $this  * @var array $data  */  (new CWidgetFormView($data))     ->addField(         new CWidgetFieldMultiSelectItemView($data['fields']['itemid'])     )     ->addField(         new CWidgetFieldTextBoxView($data['fields']['description'])     )     ->show(); ```  3. Return to the dashboard and click on the gear icon in the widget to open the widget configuration form.  4. The widget configuration form now contains a new input field *Item*. Select the host "Zabbix server" and the item "Load average (1m avg)".  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_conf_item.png){width=600}  5. Click on *Apply* in the widget configuration form. Then click on *Save changes* in the top right corner to save the dashboard.  6. Open and modify *actions/WidgetView.php*.  From now on, the item ID will be available in the widget controller in *$this->fields\_values\['itemid'\]*. The *doAction()* controller method collects the item data (name, value type, units) using the API method *[item.get](/manual/api/reference/item/get)* and the item last value using the API method *[history.get](/manual/api/reference/history/get)*.  **ui/modules/lesson_gauge_chart/actions/WidgetView.php**  ```php <?php  namespace Modules\LessonGaugeChart\Actions;  use API,     CControllerDashboardWidgetView,     CControllerResponseData;  class WidgetView extends CControllerDashboardWidgetView {      protected function doAction(): void {         $db_items = API::Item()->get([             'output' => ['itemid', 'value_type', 'name', 'units'],             'itemids' => $this->fields_values['itemid'],             'webitems' => true,             'filter' => [                 'value_type' => [ITEM_VALUE_TYPE_UINT64, ITEM_VALUE_TYPE_FLOAT]             ]         ]);          $value = null;          if ($db_items) {             $item = $db_items[0];              $history = API::History()->get([                 'output' => API_OUTPUT_EXTEND,                 'itemids' => $item['itemid'],                 'history' => $item['value_type'],                 'sortfield' => 'clock',                 'sortorder' => ZBX_SORT_DOWN,                 'limit' => 1             ]);              if ($history) {                 $value = convertUnitsRaw([                     'value' => $history[0]['value'],                     'units' => $item['units']                 ]);             }         }          $this->setResponse(new CControllerResponseData([             'name' => $this->getInput('name', $this->widget->getName()),             'value' => $value,             'description' => $this->fields_values['description'],             'user' => [                 'debug_mode' => $this->getDebugMode()             ]         ]));     } } ```  7. Open *views/widget.view.php* and add the item value to the widget view.  **ui/modules/lesson_gauge_chart/views/widget.view.php**  ```php <?php  /**  * Gauge chart widget view.  *  * @var CView $this  * @var array $data  */  (new CWidgetView($data))     ->addItem([         new CTag('h1', true, $data['description']),         new CDiv($data['value'] !== null ? $data['value']['value'] : _('No data'))     ])     ->show(); ```  8. Refresh the dashboard page. The widget will display the latest item value.  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_view_item.png){width="600"}
ca	### Recuperar el valor d'un element mitjançant l'API  El giny hauria de mostrar el darrer valor d'un element triat per l'usuari. Per això, heu d'afegir la possibilitat de triar elements a la configuració del giny.  En aquesta secció aprendreu a afegir un camp de selecció d'elements al formulari del giny i a afegir la part visual d'aquest camp a la vista de configuració. Aleshores, el controlador de ginys podrà recuperar les dades de lelement i el seu valor mitjançant una petició d'API. Un cop rebuda, el valor es pot mostrar a la vista del giny.  1. Obriu *includes/WidgetForm.php* i afegiu el camp *CWidgetFieldMultiSelectItem*. Això us permetrà triar un element al formulari de configuració.  **ui/modules/lesson_gauge_chart/includes/WidgetForm.php**  ```php <?php  namespace Modules\LessonGaugeChart\Includes;  use Zabbix\Widgets\{     CWidgetField,     CWidgetForm };  use Zabbix\Widgets\Fields\{     CWidgetFieldMultiSelectItem,     CWidgetFieldTextBox };  /**  * Formulari de giny de gràfic de calibre.  */ classe WidgetForm amplia CWidgetForm {      public function addFields(): self {         return $this             ->addField(                 (newCWidgetFieldMultiSelectItem('itemid', _('Item')))                     ->setFlags(CWidgetField::FLAG_NOT_EMPTY | CWidgetField::FLAG_LABEL_ASTERISK)                     ->setMultiple (false)             )             ->addField(                 new CWidgetFieldTextBox('descripció', _('Descripció'))             );     } } ```  2. Obriu *views/widget.edit.php* i afegiu el component visual de camp a la vista de configuració.  **ui/modules/lesson_gauge_chart/views/widget.edit.php**  ```php <?php  /**  * Visualització del formulari del giny del gràfic de mesura.  *  * @var CView $this  * @var array $data  */  (new CWidgetFormView($data))     ->addField(         new CWidgetFieldMultiSelectItemView($data['fields']['itemid'], $data['captions']['items']['itemid'])     )     ->addField(         new CWidgetFieldTextBoxView($data['fields']['description'])     )     ->show(); ```  3. Torneu al tauler i feu clic a la icona d'engranatge del giny per obrir el formulari de configuració del giny.  4. El formulari de configuració del giny ara conté un camp d'entrada nou *Element*. Trieu l'equip "Servidor Zabbix" i l'element "Càrrega mitjana (1 m de mitjana)".  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_conf_item.png){width=600}  5. Feu clic a *Aplicar* al formulari de configuració del gint. Tot seguit, feu clic a *Desar els canvis* a l'extrem superior dret per desar el tauler.  6. Obriu i modifiqueu *actions/WidgetView.php*.  A partir d'ara, l'identificador de l'element serà disponible al controlador del giny a *$this->fields\_values\['itemid'\]*. El mètode del controlador *doAction()* recopila les dades de l'element (nom, tipus de valor, unitats) mitjançant el mètode API *[item.get](/manual/api/reference/item/get)* i l'últim valor de l'element mitjançant el Mètode de l'API *[history.get](/manual/api/reference/history/get)*.  **ui/modules/lesson_gauge_chart/actions/WidgetView.php**  ```php <?php  namespace Modules\LessonGaugeChart\Actions;  use API,     CControllerDashboardWidgetView,     CCollerResponseData;  class WidgetView extendsCControllerDashboardWidgetView {      protected function doAction(): void {         $db_items = API::Item()->get([             'output' => ['itemid', 'value_type', 'nom', 'unitats'],             'itemids' => $this->fields_values['itemid'],             'webitems' => true,             'filtre' => [                 'value_type' => [ITEM_VALUE_TYPE_UINT64, ITEM_VALUE_TYPE_FLOAT]             ]         ]);          $value = nul;          if ($db_items) {             $element = $db_items[0];              $història = API::History()->get([                 'output' => API_OUTPUT_EXTEND,                 'itemids' => $item['itemid'],                 'history' => $item['value_type'],                 'sortfield' => 'rellotge',                 'sortorder' => ZBX_SORT_DOWN,                 'límit' => 1             ]);              si ($history) {                 $value = convertUnitsRaw([                     'valor' => $history[0]['valor'],                     'unitats' => $item['unitats']                 ]);             }         }          $this->setResponse(new CControllerResponseData([             'name' => $this->getInput('name', $this->widget->getName()),             'valor' => $value,             'description' => $this->fields_values['descripció'],             'usuari' => [                 'debug_mode' => $this->getDebugMode()             ]         ]));     } } ```  7. Obriu *views/widget.view.php* i afegiu el valor de l'element a la vista del giny.  **ui/modules/lesson_gauge_chart/views/widget.view.php**  ```php <?php  /**  * Visualització del giny del gràfic de mesura.  *  * @var CView $this  * @var array $data  */  (new CWidgetView($data))     ->addItem([         new CTag('h1', true, $data['descripció']),         CDiv new($data['valor'] !== nul ? $data['valor']['valor'] : _('Sense dades'))     ])     ->show(); ```  8. Actualitzeu la pàgina del tauler. El giny mostrarà el valor de l'element més recent.  ![](../../../../assets/en/devel/modules/tutorials/widget/widget_view_item.png){width="600"}

en-us	#### Retrieve a token  Retrieve all data for the token with ID "2".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```
ca	#### Recuperar un token  Recuperar tota la informació del token amb ID "2".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve audit log  Retrieve two latest audit log records.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "auditlog.get",     "params": {         "output": "extend",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 2     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "auditid": "cksstgfam0001yhdcc41y20q2",             "userid": "1",             "username": "Admin",             "clock": "1629975715",             "ip": "127.0.0.1",             "action": "1",             "resourcetype": "0",             "resourceid": "0",             "resourcename": "Jim",             "recordsetid": "cksstgfal0000yhdcso67ondl",             "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}"         },         {             "auditid": "ckssofl0p0001yhdcqxclsg8r",             "userid": "1",             "username": "Admin",             "clock": "1629967278",             "ip": "127.0.0.1",             "action": "0",             "resourcetype": "0",             "resourceid": "20",             "resourcename": "John",             "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",             "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"         }     ],     "id": 1 } ```
ca	#### Recuperar registre d'auditoria  Recupera els dos darrers registres del registre d'auditoria.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "auditlog.get",     "params": {         "output": "extend",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 2     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "auditid": "cksstgfam0001yhdcc41y20q2",             "userid": "1",             "username": "Admin",             "clock": "1629975715",             "ip": "127.0.0.1",             "action": "1",             "resourcetype": "0",             "resourceid": "0",             "resourcename": "Jim",             "recordsetid": "cksstgfal0000yhdcso67ondl",             "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}"                      },         {             "auditid": "ckssofl0p0001yhdcqxclsg8r",             "userid": "1",             "username": "Admin",             "clock": "1629967278",             "ip": "127.0.0.1",             "action": "0",             "resourcetype": "0",             "resourceid": "20",             "resourcename": "John",             "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",             "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"         }     ],     "id": 1 } ```

en-us	#### Retrieve correlations  Retrieve all configured correlations together with correlation conditions and operations. The filter uses the "and/or" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "correlationid": "1",             "name": "Correlation 1",             "description": "",             "status": "0",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "type": "3",                         "oldtag": "error",                         "newtag": "ok",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A"             },             "operations": [                 {                     "type": "0"                 }             ]         }     ],     "id": 1 } ```
ca	#### Recuperar correlacions  Recupera totes les correlacions configurades juntament amb condicions i operacions. El filtre empra "i/o" tipus d'avaluació, pel que la propietat `formula` és buida i `eval_formula` es genera automàticament.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "correlation.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "correlationid": "1",             "name": "Correlation 1",             "description": "",             "status": "0",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "type": "3",                         "oldtag": "error",                         "newtag": "ok",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A"             },             "operations": [                 {                     "type": "0"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve discovered hosts by discovery rule  Retrieve all hosts and the discovered services they are running that have been detected by discovery rule "4".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dhost.get",     "params": {         "output": "extend",         "selectDServices": "extend",         "druleids": "4"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dservices": [                 {                     "dserviceid": "1",                     "dhostid": "1",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697227",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.1",                     "dns": "station.company.lan"                 }             ],             "dhostid": "1",             "druleid": "4",             "status": "0",             "lastup": "1337697227",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "2",                     "dhostid": "2",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.4",                     "dns": "john.company.lan"                 }             ],             "dhostid": "2",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "3",                     "dhostid": "3",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.26",                     "dns": "printer.company.lan"                 }             ],             "dhostid": "3",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "4",                     "dhostid": "4",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.7",                     "dns": "mail.company.lan"                 }             ],             "dhostid": "4",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         }     ],     "id": 1 } ```
ca	#### Recuperar equips descoberts per la regla de descoberta  Recuperar tots els equips i els serveis actius descoberts que s'han detectat amb la regla de descobriment nombre "4".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dhost.get",     "params": {         "output": "extend",         "selectDServices": "extend",         "druleids": "4"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dservices": [                 {                     "dserviceid": "1",                     "dhostid": "1",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697227",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.1",                     "dns": "station.company.lan"                 }             ],             "dhostid": "1",             "druleid": "4",             "status": "0",             "lastup": "1337697227",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "2",                     "dhostid": "2",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.4",                     "dns": "john.company.lan"                 }             ],             "dhostid": "2",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "3",                     "dhostid": "3",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.26",                     "dns": "printer.company.lan"                 }             ],             "dhostid": "3",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         },         {             "dservices": [                 {                     "dserviceid": "4",                     "dhostid": "4",                     "type": "4",                     "key_": "",                     "value": "",                     "port": "80",                     "status": "0",                     "lastup": "1337697234",                     "lastdown": "0",                     "dcheckid": "5",                     "ip": "192.168.1.7",                     "dns": "mail.company.lan"                 }             ],             "dhostid": "4",             "druleid": "4",             "status": "0",             "lastup": "1337697234",             "lastdown": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieve discovery actions  Retrieve all configured discovery actions together with action conditions and operations. The filter uses the "and" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 1         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "2",             "name": "Auto discovery. Linux servers.",             "eventsource": "1",             "status": "1",             "esc_period": "0s",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "conditiontype": "10",                         "operator": "0",                         "value": "0",                         "value2": "",                         "formulaid": "B"                     },                     {                         "conditiontype": "8",                         "operator": "0",                         "value": "9",                         "value2": "",                         "formulaid": "C"                     },                     {                         "conditiontype": "12",                         "operator": "2",                         "value": "Linux",                         "value2": "",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A and B and C"             },             "operations": [                 {                     "operationid": "1",                     "actionid": "2",                     "operationtype": "6",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "optemplate": [                         {                             "templateid": "10001"                         }                     ]                 },                 {                     "operationid": "2",                     "actionid": "2",                     "operationtype": "4",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opgroup": [                         {                             "groupid": "2"                         }                     ]                 }             ]         }     ],     "id": 1 } ```
ca	#### Recuperar accions de descoberta  Recupera totes les accions de descoberta configurades, juntament amb condicions i operacions d'accions. El filtre empre el tipus d'avaluació "and", pel que la propietat `formula` és buida i `eval_formula` es genera automàticament.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 1         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "2",             "name": "Auto discovery. Linux servers.",             "eventsource": "1",             "status": "1",             "esc_period": "0s",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "conditiontype": "10",                         "operator": "0",                         "value": "0",                         "value2": "",                         "formulaid": "B"                     },                     {                         "conditiontype": "8",                         "operator": "0",                         "value": "9",                         "value2": "",                         "formulaid": "C"                     },                     {                         "conditiontype": "12",                         "operator": "2",                         "value": "Linux",                         "value2": "",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A and B and C"             },             "operations": [                 {                     "operationid": "1",                     "actionid": "2",                     "operationtype": "6",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "optemplate": [                         {                             "templateid": "10001"                         }                     ]                 },                 {                     "operationid": "2",                     "actionid": "2",                     "operationtype": "4",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opgroup": [                         {                             "groupid": "2"                         }                     ]                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve discovery checks for a discovery rule  Retrieve all discovery checks used by discovery rule "6".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dcheck.get",     "params": {         "output": "extend",         "dcheckids": "6"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dcheckid": "6",             "druleid": "4",             "type": "3",             "key_": "",             "snmp_community": "",             "ports": "21",             "snmpv3_securityname": "",             "snmpv3_securitylevel": "0",             "snmpv3_authpassphrase": "",             "snmpv3_privpassphrase": "",             "uniq": "0",             "snmpv3_authprotocol": "0",             "snmpv3_privprotocol": "0",             "snmpv3_contextname": "",             "host_source": "1",             "name_source": "0",             "allow_redirect": "0"         }     ],     "id": 1 } ```
ca	#### Recuperar els tests de descoberta d'una regla de descoberta  Recuperar tots els tests de descoberta que empra la regla de descoberta "6".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dcheck.get",     "params": {         "output": "extend",         "dcheckids": "6"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dcheckid": "6",             "druleid": "4",             "type": "3",             "key_": "",             "snmp_community": "",             "ports": "21",             "snmpv3_securityname": "",             "snmpv3_securitylevel": "0",             "snmpv3_authpassphrase": "",             "snmpv3_privpassphrase": "",             "uniq": "0",             "snmpv3_authprotocol": "0",             "snmpv3_privprotocol": "0",             "snmpv3_contextname": "",             "host_source": "1",             "name_source": "0",             "allow_redirect": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieve host interfaces  Retrieve all data about the interfaces used by host "30057."  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```
ca	#### Recuperar les interfícies d'un equip  Recuperar tota la informació de les interfícies emprades per l'equip "30057."  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```

en-us	#### Retrieve LLD rule by URL  Retrieve LLD rule for host by rule URL field value. Only exact match of URL string defined for LLD rule is supported.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "name": "mode",                     "value": "json"                 },                 {                     "name": "elements",                     "value": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [                 {                     "name" : "X-Type",                     "value": "api"                 },                 {                     "name": "Authorization",                     "value": "Bearer mF_A.B5f-2.1JcM"                 }             ],             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "lifetime_type": "0",             "enabled_lifetime_type": "2",             "enabled_lifetime": "0",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```
ca	#### Recuperar regla LLD per URL  Recupera la regla LLD per a un equip segons el valor del camp URL de la regla. Només s'admet la correspondència exacta de la cadena URL definida per la regla.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "name": "mode",                     "value": "json"                 },                 {                     "name": "elements",                     "value": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [                 {                     "name" : "X-Type",                     "value": "api"                 },                 {                     "name": "Authorization",                     "value": "Bearer mF_A.B5f-2.1JcM"                 }             ],             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "lifetime_type": "0",             "enabled_lifetime_type": "2",             "enabled_lifetime": "0",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieve LLD rule with overrides  Retrieve one LLD rule that has various override settings.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```
ca	#### Recuperar cadena LLD amb reemplaçaments  Recupera una regla LLD que té diferents paràmetres de reemplaçament.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 39, } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 39 } ```

en-us	 #### Retrieve script and webhook media types  The following example returns three media types:  -   script media type with parameters; -   script media type without parameters; -   webhook media type with parameters.  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": ["mediatypeid", "name", "parameters"],         "filter": {             "type": [1, 4]         }     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "10",             "name": "Script with parameters",             "parameters": [                 {                     "sortorder": "0",                     "value": "{ALERT.SENDTO}"                 },                 {                     "sortorder": "1",                     "value": "{EVENT.NAME}"                 },                 {                     "sortorder": "2",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "sortorder": "3",                     "value": "Zabbix alert"                 }             ]         },         {             "mediatypeid": "13",             "name": "Script without parameters",             "parameters": []         },         {             "mediatypeid": "11",             "name": "Webhook",             "parameters": [                 {                     "name": "alert_message",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "name": "event_update_message",                     "value": "{EVENT.UPDATE.MESSAGE}"                 },                 {                     "name": "host_name",                     "value": "{HOST.NAME}"                 },                 {                     "name": "trigger_description",                     "value": "{TRIGGER.DESCRIPTION}"                 },                 {                     "name": "trigger_id",                     "value": "{TRIGGER.ID}"                 },                 {                     "name": "alert_source",                     "value": "Zabbix"                 }             ]         }     ],     "id": 1 } ```
ca	#### Recupera tipus de suport script i webhook  L'exemple següent retorna tres tipus de suport:  -   tipus de suport script amb paràmetres; -   tipus de suport script sense paràmetres; -  tipus de suport webhook amb paràmetres.  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": ["mediatypeid", "name", "parameters"],         "filter": {             "type": [1, 4]         }     },     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "10",             "name": "Script amb paràmetres",             "parameters": [                 {                     "sortorder": "0",                     "value": "{ALERT.SENDTO}"                 },                 {                     "sortorder": "1",                     "value": "{EVENT.NAME}"                 },                 {                     "sortorder": "2",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "sortorder": "3",                     "value": "Alerta de Zabbix"                 }             ]         },         {             "mediatypeid": "13",             "name": "Script sense paràmetres",             "parameters": []         },         {             "mediatypeid": "11",             "name": "Webhook",             "parameters": [                 {                     "name": "alert_message",                     "value": "{ALERT.MESSAGE}"                 },                 {                     "name": "event_update_message",                     "value": "{EVENT.UPDATE.MESSAGE}"                 },                 {                     "name": "host_name",                     "value": "{HOST.NAME}"                 },                 {                     "name": "trigger_description",                     "value": "{TRIGGER.DESCRIPTION}"                 },                 {                     "name": "trigger_id",                     "value": "{TRIGGER.ID}"                 },                 {                     "name": "alert_source",                     "value": "Zabbix"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve scripts by event IDs  Retrieve all scripts available to events "632" and "614".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {          "eventid":  "632"       },       {          "eventid":  "614"       }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "632": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "614": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "1",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```
ca	#### Recupera scripts per IDs d'esdeveniments  Recupera tots els scripts disponibles dels esdeveniments "632" i "614".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {          "eventid":  "632"       },       {          "eventid":  "614"       }     ],     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "632": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "614": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "1",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "4",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```

en-us	#### Retrieve scripts by host IDs  Retrieve all scripts available on hosts "30079" and "30073".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [        {           "hostid":  "30079"        },        {           "hostid":  "30073"        }     ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "0",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```
ca	#### Recuperar scripts per ID d'equip  Recupera tots els scripts disponibles dels equips "30079" i "30073".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [        {           "hostid":  "30079"        },        {           "hostid":  "30073"        }     ],     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "0",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "4",                 "name": "Open Zabbix page",                 "command": "",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "Are you sure you want to open page *UNKNOWN*?",                 "type": "6",                 "execute_on": "2",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "http://localhost/ui/zabbix.php?action=*UNKNOWN*",                 "new_window": "1",                 "manualinput": "1",                 "manualinput_prompt": "Zabbix page to open:",                 "manualinput_validator_type": "1",                 "manualinput_validator": "dashboard.view,discovery.view",                 "manualinput_default_value": "",                 "parameters": []             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "timeout": "30s",                 "scope": "2",                 "port": "",                 "authtype": "0",                 "username": "",                 "password": "",                 "publickey": "",                 "privatekey": "",                 "menu_path": "",                 "url": "",                 "new_window": "1",                 "manualinput": "0",                 "manualinput_prompt": "",                 "manualinput_validator_type": "0",                 "manualinput_validator": "",                 "manualinput_default_value": "",                 "parameters": []             }         ]     },     "id": 1 } ```

en-us	#### Retrieve services discovered on a host  Retrieve all discovered services detected on discovered host "11".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dservice.get",     "params": {         "output": "extend",         "dhostids": "11"     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dserviceid": "12",             "dhostid": "11",             "value": "",             "port": "80",             "status": "1",             "lastup": "0",             "lastdown": "1348650607",             "dcheckid": "5",             "ip": "192.168.1.134",             "dns": "john.local"         },         {             "dserviceid": "13",             "dhostid": "11",             "value": "",             "port": "21",             "status": "1",             "lastup": "0",             "lastdown": "1348650610",             "dcheckid": "6",             "ip": "192.168.1.134",             "dns": "john.local"         }     ],     "id": 1 } ```
ca	#### Recuperar els serveis descoberts d'un equip  Recuperar tots els serveis descoberts de l'equip "11".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "dservice.get",     "params": {         "output": "extend",         "dhostids": "11"     },     "id": 1 } ```  Resposta:  ```json { "jsonrpc": "2.0", "result": [ { "dserviceid": "12", "dhostid": "11", "value": "", "port": "80", "status": "1", "lastup": "0", "lastdown": "1348650607", "dcheckid": "5", "ip": "192.168.1.134", "dns": "john.local" }, { "dserviceid": "13", "dhostid": "11", "value": "", "port": "21", "status": "1", "lastup": "0", "lastdown": "1348650610", "dcheckid": "6", "ip": "192.168.1.134", "dns": "john.local" } ], "id": 1 } ```

en-us	#### Retrieve specific script with manualinput value.  Retrieve script with ID "4" on event "632" with manualinput value "dashboard.view".  [Request](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {         "eventid":  "632",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {       "632": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "4",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```
ca	#### Recupera un script específic amb valor d'entrada manual.  Recupera l'script amb ID "4" a l'esdeveniment "632" amb el valor d'entrada manual "dashboard.view".  [Petició](/manual/api#performing-requests):  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyevents",     "params": [       {         "eventid":  "632",         "scriptid": "4",         "manualinput": "dashboard.view"       }   ],     "id": 1 } ```  Resposta:  ```json {     "jsonrpc": "2.0",     "result": {       "632": [         {           "scriptid": "4",           "name": "Open Zabbix page",           "command": "",           "host_access": "2",           "usrgrpid": "0",           "groupid": "0",           "description": "",           "confirmation": "Are you sure you want to open page dashboard.view?",           "type": "6",           "execute_on": "2",           "timeout": "30s",           "scope": "4",           "port": "",           "authtype": "0",           "username": "",           "password": "",           "publickey": "",           "privatekey": "",           "menu_path": "",           "url": "http://localhost/ui/zabbix.php?action=dashboard.view",           "new_window": "1",           "manualinput": "1",           "manualinput_prompt": "Zabbix page to open:",           "manualinput_validator_type": "1",           "manualinput_validator": "dashboard.view,discovery.view",           "manualinput_default_value": "",           "parameters": []         }       ]     },     "id": 1 } ```