I am trying to set up LLD discovery with the discovered items using dependent checks against a single master item.
I have a script (external check) that returns a JSON 'blob' with multiple values (this works and I can manually set up dependent checks against this), but the target application means that these values may change name acording to the device being monitored so I want to LLD the values. I have a script that flattens the JSON and creates LLD formatted JSON (MACRO/VALUE pairs) - this I THINK is correct.
I want to set up template / LLD discovery rule that takes the LLD JSON and creates dependent checks againt the 'master' JSON blob which is where i am struggling. If I create the master check at the template/item level then I can't reference it within the discovery rule/item prototype (but the items is created on the hosts). If I create the 'master' Check within the discovery template/Item prototype then it tries to create a 'master check' for EVERY LLD Item which fails as they all have the same key (external script name + parameters) - and the whole idea is NOT to make a query for every value but to make one master query and then pull the data out of that...
Suggestions ?
David
I have a script (external check) that returns a JSON 'blob' with multiple values (this works and I can manually set up dependent checks against this), but the target application means that these values may change name acording to the device being monitored so I want to LLD the values. I have a script that flattens the JSON and creates LLD formatted JSON (MACRO/VALUE pairs) - this I THINK is correct.
I want to set up template / LLD discovery rule that takes the LLD JSON and creates dependent checks againt the 'master' JSON blob which is where i am struggling. If I create the master check at the template/item level then I can't reference it within the discovery rule/item prototype (but the items is created on the hosts). If I create the 'master' Check within the discovery template/Item prototype then it tries to create a 'master check' for EVERY LLD Item which fails as they all have the same key (external script name + parameters) - and the whole idea is NOT to make a query for every value but to make one master query and then pull the data out of that...
Suggestions ?
David
Comment