Hello,
I use odbc.get to get a list of 6 columns (ID, SUB_ID, TYPE, STATUS, NAME, CATEGORY) and then use JSONPATH preprocessing on a dependent item to filter out some of the results by TYPE:
$[?(@.TYPE=='XXXX' || @.TYPE=='XXXX')]
The problem is the ordering of...
Search Result
Collapse
16 results in 0.0035 seconds.
Keywords
Members
Tags
-
odbc.get columns are reordered after jsonpath preprocessing
Last edited by Ace; 26-08-2025, 14:03. -
Which SNMP Walk preprocessing is faster, Regex or JSONPath
I have some devices that discover many items each.
I'm refactoring their template so that the devices can benefit from the SNMP Walk feature.
The parent "Walk" item finds many SNMP OIDs and its dependent items use preprocessing to identify the item values.
As...Last edited by markfree; 08-06-2024, 17:38. -
Discovery finds only the first occurrence
For a discovery item, I have a simple Json similar to this:
...Code:[{ "description": "ARM_4.10_1.2", "id": "7", "name": "ARM_4.10_1.2", "url": "/api/v1/kpi/current/sbc/callStats/ipGroup/7"Last edited by markfree; 20-09-2023, 16:57. -
Zabbix server restarted [file:json.c,line:101] zbx_realloc: out of memory
Hello,
i have a problem with my zabbix server. It restarts in random moments with this error: [file:json.c,line:101] zbx_realloc: out of memory. Requested 134217728 bytes. <- No other information in log.
My zabbix server:
Version 6.0.20
Ram: 512 GB...Last edited by Sunrise0318; 22-08-2023, 21:57. -
Convert key value pair to JSON
Hi,
I have this command output format in:
key1 : value1
key2 : value2
key3 : value3
I'd like to get the value from the specific key.
I tried to convert this using CSV to JSON with colon as delimiter, but I got the output
[{"1":"key1... -
Полученные данные из "Списка обнаружения" передать в ключ "Прототипа элемента данных"
Добрый день.
Хочу проверять SMART у обнаруженных локальных дисков через Smartmontools.
1) Создаю "Элемент данных"
Получаю следующие данные:Code:Тип: Zabbix агент Ключ: system.run["smartctl --scan-open"]
...Code:/dev/sda -d ata # /dev/sda, ATA device
-
Создание оповещение при хранении файла с расширением *.json более часа.
Добрый день коллеги.
С созданием ключей в Zabbix опыта практически нет, но есть задача контролировать нахождение импортируемых файлов с расширением *.json в конкретной папке более одного часа.
Почитав справочную инфу, предполагаю использование вот это ключа: vfs.file.time,... -
Continue with the next JSONPath if first fails (Preprocessing)
Hey guys!
I am using my scripts on many servers...
Example:
Preprocessing contain a JSONPath like
Recently on some nodes I have different output, but I don't want to duplicate dozens of scripts and templates.Code:$.status.value
I'm looking... -
JSON Path string to number
Using preprocessing, I'm trying to read some JSON data from a service and it is returning me a string instead of a number.
The JSON is similar to this:
...Code:{ "nodes": { "rHhmEKJNSMmpcV9p5my2CQ": { "timestamp": null, "name": -
JSONpath preprocessing
Hello,
I am extracting a JSON data set and trying to run discovery with LLD macros and item prototypes.
I believe it will work as is, except some of the JSON objects have brackets in the name such as "Voltage(V)" and I simply can't get past this as is due the following... -
How to format JSON value from ODBC query(get)
I have a item from a OBDC query that return a json like this
[{"job_name":"UpdateRSView","job_status":"Enable d", "last_run_status":"Error Failed","last_run_date":"2021-06-02 12:00:00.000","run_duration":"00:00:03","next_sche...Last edited by DarkWall; 02-06-2021, 19:28. -
Converting json key/value array to jsonpath?
Hello,
So I'm trying to convert this stats output to something I can use in a zabbix discovery:
https://github.com/nanopool/BoringAPI
The problem is getting the list of GPU's to use as a macro for getting the other paths...
The more direct values like Total Hashrate work... -
dcfasika started a topic Extra character "\" being inserted when key item is generated during json responsein Zabbix HelpExtra character "\" being inserted when key item is generated during json response
We're using Zabbix 5.0.5.
1) Created a php script which returns interface name and OID number. Essentially, the interface name and OID number will be used to check status. Below is the output of the JSON
{
"data": [
{
"snmpindex": "1.1.1.4.15.192.63.129.1.4.10.193.254.20",... -
Monitoring REST API requiring OAuth2 Bearer Tokens
Hello,
Is there a way to monitor a REST API service secured by OAuth2 using Zabbix 4?
Ideally the setup would look like this:- Request Auth Token at an OAuth2 endpoint (basically a HTTP POST)
- send USER+PW, parse and save the token from the response
- Use the saved token and an
- Request Auth Token at an OAuth2 endpoint (basically a HTTP POST)
-
object name template in jsonpath
Hello. So I have two json objects
1
2Code:{ "template_001": { "item":45 } }
How can I...Code:{ "template_002": { "item":56 } }