Hi,
i need a little push in the right direction. Can someone tell me please how to solve the following task.
First my Setup:
Icinga 2 version: r2.13.1-1
Director version (System - About): 1.8.1
Icingaweb2: 2.9.4 with:
incubator 0.6.0
monitoring 2.9.4
icinga/icinga-php-library 0.7.0
inga/icinga-php-thirdparty 0.10.0
More information on request, but I think that has little to do with the task at hand.
Broken down, I would like to query a host (a hypervisor) from which the corresponding services are then formed according to the number of virtual machines.
In the MIB File is an Index Object which gives me the following values:
.1.3.6.1.4.1.458.115.1.17.1.1.1.0 returns 1
.1.3.6.1.4.1.458.115.1.17.1.1.2.0 returns 2
.1.3.6.1.4.1.458.115.1.17.1.1.3.0 returns 3
.1.3.6.1.4.1.458.115.1.17.1.1.4.0 returns 4
.1.3.6.1.4.1.458.115.1.17.1.1.5.0 returns 5
There are currently five virtual machines on the hypervisor and several services should be generated automatically for each VM, e.g. State, activity etc.
As soon as a new VM is added or an existing one is deleted, the services should adapt accordingly.
Is that possible with icinga’s own tools? If not, I would try to write a script, but I don’t know how to deal with the return values. Has anyone given me a few tips or examples of how something like this can best be implemented. Many thanks in advance.
best regards Pio