T
T
TechNOIR2020-06-29 12:58:39
Zabbix
TechNOIR, 2020-06-29 12:58:39

Zabbix. How to make a discovery rule?

Good afternoon.

A script is running on the server in the Zabbix agent. Which, through the custom.test data key, spits out the json made for discovery.
But then I don’t understand a little how to make a discovery rule?

{
    "data": [{
        "{#ColName}": "Col1",
        "{#ProjName}": "Proj1",
        "{#Name}": "Service1",
        "{#Status}": "enabled"
    }, {
        "{#ColName}": "Col1",
        "{#ProjName}": "Proj2",
        "{#Name}": "Service1",
        "{#Status}": "disabledBySystem"
    }, {
        "{#ColName}": "Col1",
        "{#ProjName}": "Proj3",
        "{#Name}": "Service2",
        "{#Status}": "enabled"
    }, {
        "{#ColName}": "Col2",
        "{#ProjName}": "Proj1",
        "{#Name}": "Service43234",
        "{#Status}": "enabled"
    }, {
        "{#ColName}": "Col2",
        "{#ProjName}": "Proj2",
        "{#Name}": "Service1324",
        "{#Status}": "enabled"
    }, {
        "{#ColName}": "Col3",
        "{#ProjName}": "Proj1",
        "{#Name}": "Service12323",
        "{#Status}": "enabled"
    }]
}


At the output, in theory, 6 data elements should appear, which I receive a status for each element.
How to play it right?

thanks in advance

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