A
A
Artem Tsybulkin2018-12-17 21:06:58
Zabbix
Artem Tsybulkin, 2018-12-17 21:06:58

How to properly configure Discovery Rule and Item Prototypes in Zabbix 4.0?

Hello, I'm getting familiar with Zabbix 4.0. I found a lot of information on setting up LLD in the documentation and from external sources. But everywhere they consider either typical examples, which I can already look at in pre-installed templates, or in general something rather distant and people simply do not answer correctly.
My scenario:
1. Monitoring objects are located behind NAT, and an active agent is required.
2. I am using a custom setting:

UserParameter=script.memory,powershell C:\Zabbix\Deploy\Example\x64\satellite.ps1 hardware memory

3. Testing with zabbix_get:
{
    "data": [
        {
           "{#SPEED}": 1600,
           "{#DEVICE}": "ChannelA-DIMM0",
           "{#CAPACITY}": 8589934592
        },
        {
           "{#SPEED}": 1600,
           "{#DEVICE}": "ChannelB-DIMM0",
           "{#CAPACITY}": 8589934592
        }
    ]
}

4. Next, I want to create a discovery rule that will allow prototypes to create similar metrics:
1) Name=Speed ​​for {#DEVICE}, Value=1600
and
2) Name={#DEVICE} capacity, Value=8589934592.
5. In the rule, I set the key: script.memory, and specify the filters {#SPEED} AND {#DEVICE} AND {#CAPACITY}.
Question: how to set up prototypes for data elements, what type should they be, am I setting up the rule correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question