From c4aa31556122025f34a415f6b0309d9c237e6e03 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Oct 2019 16:12:48 +0200 Subject: [PATCH] Add the overflow Raspberry Pis --- monitoring/icinga2/conf.d/groups.conf | 6 ++++++ monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-1.conf | 9 +++++++++ monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-2.conf | 9 +++++++++ 3 files changed, 24 insertions(+) create mode 100644 monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-1.conf create mode 100644 monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-2.conf diff --git a/monitoring/icinga2/conf.d/groups.conf b/monitoring/icinga2/conf.d/groups.conf index 1252492..fc3fe14 100644 --- a/monitoring/icinga2/conf.d/groups.conf +++ b/monitoring/icinga2/conf.d/groups.conf @@ -65,6 +65,12 @@ object HostGroup "misc" { assign where "misc" in host.vars.groups } +object HostGroup "overflow" { + display_name = "Overflow RPIs" + assign where "overflow" in host.vars.groups +} + + object HostGroup "phones" { display_name = "Telephones" assign where "phone" in host.vars.groups diff --git a/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-1.conf b/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-1.conf new file mode 100644 index 0000000..5db7e53 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-1.conf @@ -0,0 +1,9 @@ +object Host "rpi-tv-1" { + import "generic-host" + + # Overflow TV-1 + address = "tv-1" + vars.groups = [ "overflow" ] + + vars.parent = "teamsw.openfest.org" +} diff --git a/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-2.conf b/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-2.conf new file mode 100644 index 0000000..258eda6 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/overflow/rpi-tv-2.conf @@ -0,0 +1,9 @@ +object Host "rpi-tv-2" { + import "generic-host" + + # Overflow TV-2 + address = "tv-2" + vars.groups = [ "overflow" ] + + vars.parent = "teamsw.openfest.org" +}