[ZBX-23992] Unable to create Item Prototypes from Discovery Rule Created: 2024 Jan 25  Updated: 2024 Jan 26  Resolved: 2024 Jan 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Templates (T)
Affects Version/s: 6.4.10
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Roland van 't Kruijs Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File controllers.json     PNG File image-2024-01-25-13-11-14-386.png    

 Description   

I am trying to monitor the Dell EMC PowerVault ME4024, but due to limitations I am forced to use API instead of SNMP. As a result, I am using a Python3 script to grab the JSON.

Steps to reproduce:

  1. Created an Item "Discovery Controllers", to generate the JSON (file: controllers.json) > working
  2. Created Discovery Rule with the following settings:
    • Type: Dependent item
    • Master item: Discovery Controllers
    • LLD macro: {#ID} - JSONPath: $..['durable-id']
  3. Created Item Prototype with the following settings:
    • Name: Controller: {#ID}
    • Type: Dependent item
    • Key: cntrl.{#ID}
    • Master item: Discovery Controllers
    • Preprocessing steps:
      • JSONPath: $[?(@.'durable-id' == '\{#ID}')]
      • Trim: []"

Result:

Expected:
What I try to achieve is to generate individual items.



 Comments   
Comment by Edgar Akhmetshin [ 2024 Jan 26 ]

Hello Roland,


Use a shorter name and put full path in a description of the item, if it's so critical to have such information.

Closing as Won't fix.

Regards,
Edgar

Generated at Mon Jun 16 08:54:14 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.