In my setup, we have buildings, telecom closets and then hosts in those
closets. The list of buildings, closets and hosts are imported from a
database every two hours and they change dynamically.
We currently use flat config files for this part of our setup but I want to
convert this to use API as I do for everything else. This is my last
hurdle!
How can I manage the "assign where" lines inside hostgroups via the API?
object HostGroup "building_000300" {
assign where host.vars.building == "000300"
}
object HostGroup "closet_148" {
assign where host.vars.closet == "148"
}
object Host "lab-sw1" {
import "cisco_switch"
address = "10.2.2.22"
vars.building = "000300"
vars.closet = "148"
vars.device_type = "cisco_switch"
vars.cisco_switch_model = "cisco_3560"
vars.cisco_switch_ssh = false
vars.cisco_switch_telnet = true
}
Thanks
- Zachary
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users