Ad Widget

Collapse

VMware - Problem with macros in hosts created by discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elkropac
    Junior Member
    • Jun 2022
    • 24

    #1

    VMware - Problem with macros in hosts created by discovery

    Hi, we are trying to use vmware templates to monitor our infrastructure.
    I have cloned original vmware template to our own, and i linked it to another template with {$VMWARE.USERNAME} and {$VMWARE.PASSWORD} macros defined.
    I also overrided "Host prototypes" to link newly created host to our template with passwords.
    Problem is, in discovered vmware hypervisors, the value of this macro is inherited empty from original "Vmware hypervisor" template, but in discoverd VM, it is inherited from our template.

    In esxi host
    Click image for larger version

Name:	Screenshot_20220608_141013.png
Views:	288
Size:	5.2 KB
ID:	445798

    In vm (the value is inherited from our template, not from VMware Guest)
    Click image for larger version

Name:	Screenshot_20220608_140819.png
Views:	342
Size:	5.0 KB
ID:	445797

    I have workarounded it by removing all {$VMWARE} macro's from original "vmware hypervisor" template.

    What is the correct way? I don't want to edit original templates

    Thanks for info
    Libor
  • elkropac
    Junior Member
    • Jun 2022
    • 24

    #2
    Edit: ok, it seems, i have added {$VMWARE*} macros to host prototype for VM (yesterday), thats why it's filled in correctly.
    But i would like to inherit it from our template. Is there a way to make our template to override those macros from original templates?

    Comment

    Working...