Ronald
2018-11-14 20:55:55 UTC
Dear All,
I am trying to investigate if it is possible to make the 'parents' value of
a host a dynamic value.
In this case I would like to automatically make Check_MK aware of the Host
(Hypervisor) where a Guest (VM) is running on. As the VM can switch between
some Hosts it would be ideal if the 'parent' value is also switched (eg
during next inventory check.
The Hypervisor in this case is KVM host. Within the guest I have the
hostname present by means of a virtio-shared file containing the hostname,
and made it present in the agent output (as a start):
<<<local>>>
seem to work.
Any help would be appreciated.
Best regards,
Ron
I am trying to investigate if it is possible to make the 'parents' value of
a host a dynamic value.
In this case I would like to automatically make Check_MK aware of the Host
(Hypervisor) where a Guest (VM) is running on. As the VM can switch between
some Hosts it would be ideal if the 'parent' value is also switched (eg
during next inventory check.
The Hypervisor in this case is KVM host. Within the guest I have the
hostname present by means of a virtio-shared file containing the hostname,
and made it present in the agent output (as a start):
<<<local>>>
0 Hypervisor count=0 OK - kvm.site.domain.tld is the Hypervisor
I did already attempt to set the name via check_mk_agent, but this does notseem to work.
<<<local>>>
parents = kvm.pi1vbg.ampr.org
Is there a variable to be used in this case?parents = kvm.pi1vbg.ampr.org
Any help would be appreciated.
Best regards,
Ron