Can someone guide me on how I can use Javascript preprocessing with vmware.vm.discovery returned JSON?
Also is there some schema definition of the returned json to use here?
Thanks
John...
Search Result
Collapse
40 results in 0.0022 seconds.
Keywords
Members
Tags
-
Ste
Hi,
I had a unique requirement where I had to do deduplication based on substring of a whole message but after dedup want to preserver the full message.
For example if the alarm message formed is like "VARBIND1=<varbind-value1> VARBIND2=<varbind-value2> VARBIND3=<varbind-value3>"... -
Конвертация HEX to UTF-8 средствами zabbix
Всем привет,
Имеется следущая строка для discovery:
Code:
Code:discovery[{#ICAM_IP}, 1.3.6.1.4.1.1004849.2.10.2.2.1.2, {#CAM_NAME}, 1.3.6.1.4.1.1004849.2.10.2.2.1.4, {#CAM_STATUS}, 1.3.6.1.4.1.1004849.2.10.2.2.1.3]
Вот вывод функции тест и... -
Preprocessing javascript base64 text
hi all
i want to decode base64 encoded text that i sent from zabbix_sender but when in Preprocessing step i return atob(value) i got [object Uint8Array]
i test with this custom script and just got same result
...Code:try { b64 = btoa("utf8 string"); utf8 -
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. -
Server returned empty content treatment
I'm monitoring an HTTP endpoint that returns a text list, and use a Javascript preprocessing step to count the number of lines.
Sometimes the returned value is empty, so Zabbix makes the item unsupported.
I could use a "Check for not supported value" preprocessing...Last edited by markfree; 28-01-2024, 18:00. -
Date and time conversions
Whenever I get a timestamp value like "yyyymmddhhMMss", if necessary, I convert it to "unixtime" with a JavaScript preprocessing step.
This script is usually sufficient:
...Code:// checks if the input value is null if (isNaN(Date.parse(value))) { return 0; } -
How old can data be displayed in an Item Value widget?
I have noticed that some item values displayed by the "Item Value" widget are not displayed in the dashboard. Instead, a "no data" message is displayed.
The item has an interval of 1 day and a "discard unchanged" preprocessing step with a heartbeat...Last edited by markfree; 14-12-2023, 00:58. -
Downside to Using "Discard Unchanged with Heartbeat?"
Hello there!
I have been using and configuring Zabbix for several months now. I was customizing a template when I came across the Discard Unchanged with Heartbeat preprocessing rule. I looked it up in the documentation and it sounds like it would be highly useful in reducing the storage...Last edited by aav_sjm; 23-10-2023, 19:14. -
Low-Level Discovery preprocessing questions
Hello,
I am creating a Zabbix template to monitor a commercial software package.
I am using a lot of Low-Level Discovery (LLD) and it works.
However, some of the preprocessing rules seem redundant, so I am wondering if I am perhaps not using the most effective/efficient way... -
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... -
Item Preprocessing Regex Help
I'm trying to parse through dpkg versions with the "system.sw.packages.get" key.
Dpkg prepends and appends various data that I want to trim off so it can be consistent accross different package managers.
For example I would like to get rid of the ":1" and the "+deb11u1"...Last edited by erasedhammer; 15-05-2023, 16:49. -
Предобработка данных макроса SNMP discovery. Как убрать лишние пробелы?
Версия Zabbix 6.2.6
Здравствуйте.
Собираю данные из таблицы регистрации клиентов WiFi на оборудовании Mikrotik.
Для идентификации клиентов записываю данные о мак-адресе клиента в макрос {#SNMPVALUE}. В дальнейшем использую информацию при... -
How to select LLD Macro field/path if there is no variable name to specify
Title might not be entirely clear but the problem is quite specific. I want to create a discovery rule with the output shown here:
...Code:{ "http_method": "GET", "results": { "ZABBIX_O365": { "": { -
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...