I have a Discovery Rule that is applied to a handful of hosts. The discovery script finds an IP on a host, and uses this to create an item for that host.
The item is something like custom.check_a[USER,PASS,IP].
I am able to get the IP from the discovery script into the item prototype by using {#IP}, and when the items are created this is reflected.
I also have macros assigned to the template that contains the discovery rule which are {$USER} and {$PASS}, which I want to add into the item prototype so that I have the three variables substituted with the macros from the template, and the IP from the discovery script....
An example of this would be:
custom.check_a[admin,passord01,8.8.8.8]
How do I go about referencing the macros from the template in the item prototype?
Thanks in advance!
The item is something like custom.check_a[USER,PASS,IP].
I am able to get the IP from the discovery script into the item prototype by using {#IP}, and when the items are created this is reflected.
I also have macros assigned to the template that contains the discovery rule which are {$USER} and {$PASS}, which I want to add into the item prototype so that I have the three variables substituted with the macros from the template, and the IP from the discovery script....
An example of this would be:
custom.check_a[admin,passord01,8.8.8.8]
How do I go about referencing the macros from the template in the item prototype?
Thanks in advance!
Comment