diff --git a/monitoring/icinga2/conf.d/groups.conf b/monitoring/icinga2/conf.d/groups.conf index 1be7907..80b41c1 100644 --- a/monitoring/icinga2/conf.d/groups.conf +++ b/monitoring/icinga2/conf.d/groups.conf @@ -88,3 +88,8 @@ object HostGroup "ups" { display_name = "UPS-es" assign where "ups" in host.vars.groups } + +object HostGroup "routers" { + display_name = "Routers" + assign where "routers" in host.vars.groups +} diff --git a/monitoring/icinga2/conf.d/hosts/router-vin.conf b/monitoring/icinga2/conf.d/hosts/router-vin.conf index 2302247..cd04081 100644 --- a/monitoring/icinga2/conf.d/hosts/router-vin.conf +++ b/monitoring/icinga2/conf.d/hosts/router-vin.conf @@ -7,7 +7,7 @@ object Host "vin-external.openfest.org" { vars.by_ssh_port = "22" vars.by_ssh_logname = "nagios" vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" - # vars.specification = "router" + vars.groups = [ "routers" ] vars.net_interfaces = [ "bond0", "bond0.20", "bond0.21", "bond0.22", "bond0.23", "bond0.24", "bond0.25", "bond0.26", "bond0.4001", "eno1", "enp1s0f4", "enp1s0f4d1" ]