Ad Widget

Collapse

LLD macro does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SStepanov
    Junior Member
    • Aug 2021
    • 4

    #1

    LLD macro does not work

    Hello, everybody!

    I am new to zabbix, and I cannot understand why my LLD is not working.
    Here are some details:

    I have a discovery that returns this json:
    Code:
    [
    {
    "{#NAME}": "zabbix_zabbix-web-nginx-pgsql_1"
    },
    {
    "{#NAME}": "zabbix_zabbix-server_1"
    },
    {
    "{#NAME}": "zabbix_postgres-server_1"
    },
    {
    "{#NAME}": "zabbix_zabbix-agent_1"
    }
    ]
    as you can see, these are macro for container names.

    Then, I set up some item prototypes:
    Click image for larger version

Name:	Screenshot from 2021-08-11 21-02-38.png
Views:	354
Size:	32.7 KB
ID:	429677

    The main item prototype looks like this:

    Click image for larger version

Name:	Screenshot from 2021-08-11 21-03-51.png
Views:	339
Size:	36.7 KB
ID:	429678

    but when I apply my discovery rule to a host, it throws exceptions:

    Click image for larger version

Name:	Screenshot from 2021-08-11 21-05-12.png
Views:	326
Size:	73.4 KB
ID:	429679

    So, as I understand, these errors mean that zabbix simply ignore my macro and does not replace {#NAME} with a value from json.

    What am I doing wrong?
Working...