From a4e67ea220df2cf3506a99a2eb5ffba5b828b6cd Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Nov 2019 22:52:38 +0200 Subject: [PATCH] Add vin to its own router group --- monitoring/icinga2/conf.d/groups.conf | 5 +++++ monitoring/icinga2/conf.d/hosts/router-vin.conf | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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" ]