This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
是否可以将变量传递给display_nameIcinga2 配置,例如用于服务:
apply Service for (disk_name => config in host.vars.disks) to Host {
import "generic-service"
vars = vars + config
display_name = "disk" //TODO: pass hdd name?
check_command = "disk"
}
apply Service for (disk_name => config in host.vars.disks) to Host {
import "generic-service"
vars = vars + config
display_name = disk_name
check_command = "disk"
}