Hi, I got the module to install, but not able to get a map to display. When I click on the Dependencies link in Icinga Web I get the error "No configuration file detected. Returning to setup."
In etc/icinga2/conf.d/hosts.conf, I have the following config
apply Dependency "Parent" for (parent in host.vars.parents) to Host {
parent_host_name = parent
assign where host.address && host.vars.parents
}
object Host "Zues" {
import "generic-host"
display_name = "Zues_1.1"
address = "192.168.1.1"
check_command = "hostalive"
}
object Host "3850_12X_ToyRoom" {
import "generic-host"
display_name = "3850_12X_ToyRoom_1.179"
address = "192.168.1.179"
check_command = "hostalive"
vars.parents = ["Zues"]
}
object Host "SPIDIF10GMaster" {
import "generic-host"
display_name = "SPIDF10GMaster_1.164"
address = "192.168.1.164"
check_command = "hostalive"
vars.parents = ["Zues"]
}
object Host "GreenCulls" {
import "generic-host"
display_name = "GreenCulls_1.22"
address = "192.168.1.22"
check_command = "hostalive"
vars.parents = ["Zues"]
}
Am a newb to icinga, so think I am not defining my dependencies correctly. Do I need to put the "apply dependency" statement somewhere else and/or define the dependency?
Hi, I got the module to install, but not able to get a map to display. When I click on the Dependencies link in Icinga Web I get the error "No configuration file detected. Returning to setup."
In etc/icinga2/conf.d/hosts.conf, I have the following config
apply Dependency "Parent" for (parent in host.vars.parents) to Host {
parent_host_name = parent
assign where host.address && host.vars.parents
}
object Host "Zues" {
import "generic-host"
display_name = "Zues_1.1"
address = "192.168.1.1"
check_command = "hostalive"
}
object Host "3850_12X_ToyRoom" {
import "generic-host"
display_name = "3850_12X_ToyRoom_1.179"
address = "192.168.1.179"
check_command = "hostalive"
vars.parents = ["Zues"]
}
object Host "SPIDIF10GMaster" {
import "generic-host"
display_name = "SPIDF10GMaster_1.164"
address = "192.168.1.164"
check_command = "hostalive"
vars.parents = ["Zues"]
}
object Host "GreenCulls" {
import "generic-host"
display_name = "GreenCulls_1.22"
address = "192.168.1.22"
check_command = "hostalive"
vars.parents = ["Zues"]
}
Am a newb to icinga, so think I am not defining my dependencies correctly. Do I need to put the "apply dependency" statement somewhere else and/or define the dependency?