Hello
I would like to know how can I add/override the specifc attribute in a
exisiting template used by some hosts.
eg.
I have a endpoint config
object Endpoint "icinga-node-3" {
host = "www.damata.ind.br",
port = 10051,
config_files = [ "/etc/icinga2/conf.d/*.conf",
"/etc/icinga2/conf.d/customers/node3/*.conf" ]
}
In /etc/icinga2/conf.d/*.conf directory i I have default icinga files
In "/etc/icinga2/conf.d/customers/node3/" directory I have
firewall.conf file
/**
* A host definition. You can create your own configuration files
* in the conf.d directory (e.g. one per host). By default all *.conf
* files in this directory are included.
*/
object Host "Firewall" inherits "linux-server" {
display_name = "firewall",
services["ping4"] = {
templates = [ "generic-service" ],
check_command = "ping4"
},
services["http"] = {
templates = [ "generic-service" ],
check_command = "http_ip"
},
services["ssh"] = {
templates = [ "generic-service" ],
check_command = "ssh"
},
macros = {
address = "192.168.0.5",
},
check = "ping4",
}
and services.conf
object Service "generic-service" {
authorities = [ "node3" ],
}
My idea is add the authorities attribute in all services defined in
file firewall.conf, but it isn't working.
How can I do it? What is the better method todo is intead add
authorities = [ "node3" ] in each service line!?
Thanks
Carlos
--
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users