create a (master) item of type "text" to store the json, in my case an external script, no preprocessing needed, the update interval of this item will be the same for the discovery and the dependents items,
create a discovery rule of type "dependent item", for the key, choose whatever you want, as master item, choose the one created at step 1), still no preprocessing needed at this time, for LLD macros {#ID} → $.id and {#NAME} → $.name
create an item prototype, name Quantity for {#NAME}, type "dependent item", to make it unique, use something[{#ID}] as key. Select the master item created at step 1), choose numeric as type. In preprocessing JSONPath → $.[?(@.id=={#ID})].quantity (edit: and trim → [])
You must be logged for add a new comment and price offer! LOGIN
Edit your comment
Register a person to Idomaster.com
I want to register:
Log in to Idomaster.com
Request a password reset
Log in to Idomaster.com
We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our
use of cookies. Find out moreAccept
Comments
Zabbix Consulting Services
Freelancer
IT / Technical Support Specialist
IBM – Suomi