Hello,
I would like to add a group to the "Discover VMware VMs".
{#HV.ID} should use as a base, because I am not allowed to use regular user macros in LLD.
For example, my {#HV.ID}:
I now want to cut everything up to the first point.
Wished result:
Unfortunately, all my attempts to do this with {{#HV.ID}.regsub(...)} failed.
Is there someone who can create my regular expression for the REGSUB for me?
This was one of my many attempts:
Alternatively, I would prefer if I could give the groups of the hypervisor (parent) to Discovery VM (child). But I still have no idea how best to do this.
Thanks for your help,
Best Regards,
Cornelius
I would like to add a group to the "Discover VMware VMs".
{#HV.ID} should use as a base, because I am not allowed to use regular user macros in LLD.
For example, my {#HV.ID}:
Code:
esxi07.lan.company.org esxi06.lan.company.org esxi2.lan.company.local
Wished result:
Code:
lan.company.org lan.company.org lan.company.local
Is there someone who can create my regular expression for the REGSUB for me?
This was one of my many attempts:
Code:
{{#HV.ID}.regsub([a-zA-Z]+,(\.[a-zA-Z]+)+)}
Thanks for your help,
Best Regards,
Cornelius
Comment