Hey guys.
I'm creating a discovery rule with a host prototype, and I'm looking for a good way to add a unique host name for each discovered host.
Each original host has a master item that returns only two values per object. Something like this:
The host prototype uses the LLD macro {#NAME} to create new hosts. However, some of these names are repeated on other hosts.
I first thought of using the built-in macro "{HOST.HOST}" followed by the discovery macro {#NAME}, like "{HOST.HOST} - {#NAME}". This way, each newly discovered host would have a unique name.
Unfortunately, built-in macros are not supported for host prototypes names.
So, I'm wondering if there's another way to append a unique value from the original host to the discovered host names.
Any thoughts on this matter?
I'm creating a discovery rule with a host prototype, and I'm looking for a good way to add a unique host name for each discovered host.
Each original host has a master item that returns only two values per object. Something like this:
Code:
[{
"NAME":"QMNAME1",
"STATUS":"Running"
},
(...),
{
"NAME":"QMNAME2",
"STATUS":"Running"
}]
I first thought of using the built-in macro "{HOST.HOST}" followed by the discovery macro {#NAME}, like "{HOST.HOST} - {#NAME}". This way, each newly discovered host would have a unique name.
Unfortunately, built-in macros are not supported for host prototypes names.
So, I'm wondering if there's another way to append a unique value from the original host to the discovered host names.
Any thoughts on this matter?
Comment