I have a data structure (if this is not the best structure for LLD, I can modify it)
I am trying to make discovery rule for {#SERVER} and log the status {#STATUS}.
In my template I have an item which fetches this data as raw data
I have a discovery rule where the master item is this raw data item.
I want to create item prototype for use per {#SERVER} using dependent item (dependent to raw data?). Not sure where to enter {#STATUS} in the item prototype itself?
The manual example uses preprocessing. Do I use JSONPath? what should it look like?
Code:
[
{ "#SERVER": "server1", "#STATUS": 0 },
{ "#SERVER": "server2", "#STATUS": 0 },
{ "#SERVER": "server3", "#STATUS": 0 },
{ "#SERVER": "server4", "#STATUS": 0 }
]
In my template I have an item which fetches this data as raw data
I have a discovery rule where the master item is this raw data item.
I want to create item prototype for use per {#SERVER} using dependent item (dependent to raw data?). Not sure where to enter {#STATUS} in the item prototype itself?
The manual example uses preprocessing. Do I use JSONPath? what should it look like?
Comment