diff --git a/monitoring/icinga2/conf.d/hosts/phones/phone-a.conf b/monitoring/icinga2/conf.d/hosts/phones/phone-a.conf new file mode 100644 index 0000000..17fa5d3 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/phones/phone-a.conf @@ -0,0 +1,13 @@ +object Host "phone-A" { + import "generic-host" + + address = "phone-A" + vars.groups = [ "phone" ] + + vars.parent = "vocsw-A.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + +} diff --git a/monitoring/icinga2/conf.d/hosts/switches/coresw.conf b/monitoring/icinga2/conf.d/hosts/switches/coresw.conf new file mode 100644 index 0000000..090ffb0 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/coresw.conf @@ -0,0 +1,11 @@ +object Host "coresw.openfest.org" { + import "generic-host" + + address = "coresw" + vars.groups = [ "ciscosw" ] + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + +} diff --git a/monitoring/icinga2/conf.d/hosts/switches/f0sw.conf b/monitoring/icinga2/conf.d/hosts/switches/f0sw.conf new file mode 100644 index 0000000..7d78568 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/f0sw.conf @@ -0,0 +1,219 @@ +object Host "f0sw.openfest.org" { + import "generic-host" + + address = "f0sw" + vars.groups = [ "ciscosw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + #nocsw + vars.snmp_ifaces [ "GigabitEthernet0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10101" + value = "1" + } + + # aps + vars.snmp_ifaces [ "GigabitEthernet0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10102" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10103" + value = "1" + } + + # wired maybe + vars.snmp_ifaces [ "GigabitEthernet0/11" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10111" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/12" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10112" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/13" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10113" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/14" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10114" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/15" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10115" + value = "1" + } + vars.snmp_ifaces [ "GigabitEthernet0/16" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10116" + value = "1" + } + + # uplink + vars.snmp_ifaces [ "GigabitEthernet0/49" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10149" + value = "1" + } + + # down +vars.snmp_ifaces [ "GigabitEthernet0/04" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1014" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/05" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1015" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/06" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1016" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/07" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1017" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/08" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1018" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/09" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1019" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10110" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/17" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10117" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/18" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10118" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/19" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10119" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/20" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10120" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/21" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10121" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/22" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10122" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/23" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10123" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/24" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10124" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/25" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10125" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/26" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10126" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/27" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10127" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/28" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10128" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/29" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10129" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/30" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10130" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/31" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10131" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/32" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10132" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/33" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10133" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/34" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10134" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/35" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10135" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/36" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10136" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/37" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10137" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/38" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10138" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/39" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10139" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/40" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10140" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/41" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10141" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/42" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10142" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/43" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10143" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/44" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10144" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/45" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10145" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/46" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10146" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/47" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10147" + value = "2" +} +vars.snmp_ifaces [ "GigabitEthernet0/48" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10148" + value = "2" +} + +} diff --git a/monitoring/icinga2/conf.d/hosts/switches/nocsw.conf b/monitoring/icinga2/conf.d/hosts/switches/nocsw.conf new file mode 100644 index 0000000..f546511 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/nocsw.conf @@ -0,0 +1,11 @@ +object Host "nocsw.openfest.org" { + import "generic-host" + + address = "nocsw" + vars.groups = [ "ciscosw" ] + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + +} diff --git a/monitoring/icinga2/conf.d/hosts/switches/receptionsw.conf b/monitoring/icinga2/conf.d/hosts/switches/receptionsw.conf new file mode 100644 index 0000000..c7c925c --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/receptionsw.conf @@ -0,0 +1,68 @@ +object Host "receptionsw.openfest.org" { + import "generic-host" + + address = "receptionsw" + vars.groups = [ "vocsw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + # vars.net_interfaces = [ "eth0", "eth1" ] + vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "1" # UP - 1 , 2 - down + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.2" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.3" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.4" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.5" + value = "2" + } + vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.6" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.7" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.8" + value = "1" + } + + + vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10" + value = "2" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/switches/teamsw.conf b/monitoring/icinga2/conf.d/hosts/switches/teamsw.conf new file mode 100644 index 0000000..7a4586a --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/teamsw.conf @@ -0,0 +1,68 @@ +object Host "teamsw.openfest.org" { + import "generic-host" + + address = "teamsw" + vars.groups = [ "vocsw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + # vars.net_interfaces = [ "eth0", "eth1" ] + vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "1" # UP - 1 , 2 - down + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.2" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.3" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.4" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.5" + value = "2" + } + vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.6" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.7" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.8" + value = "1" + } + + + vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10" + value = "2" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/switches/vocsw-A.conf b/monitoring/icinga2/conf.d/hosts/switches/vocsw-A.conf new file mode 100644 index 0000000..2c3f9bb --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/vocsw-A.conf @@ -0,0 +1,68 @@ +object Host "vocsw-A.openfest.org" { + import "generic-host" + + address = "vocsw-A" + vars.groups = [ "vocsw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + # vars.net_interfaces = [ "eth0", "eth1" ] + vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "1" # UP - 1 , 2 - down + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.2" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.3" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.4" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.5" + value = "1" + } + vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.6" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.7" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.8" + value = "1" + } + + + vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10" + value = "2" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/switches/vocsw-C.conf b/monitoring/icinga2/conf.d/hosts/switches/vocsw-C.conf new file mode 100644 index 0000000..a608e22 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/vocsw-C.conf @@ -0,0 +1,68 @@ +object Host "vocsw-C.openfest.org" { + import "generic-host" + + address = "vocsw-C" + vars.groups = [ "vocsw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + # vars.net_interfaces = [ "eth0", "eth1" ] + vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "1" # UP - 1 , 2 - down + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.2" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.3" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.4" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.5" + value = "1" + } + vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.6" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.7" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.8" + value = "1" + } + + + vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10" + value = "2" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/switches/vocsw-D.conf b/monitoring/icinga2/conf.d/hosts/switches/vocsw-D.conf new file mode 100644 index 0000000..4e545a2 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/switches/vocsw-D.conf @@ -0,0 +1,68 @@ +object Host "vocsw-D.openfest.org" { + import "generic-host" + + address = "vocsw-D" + vars.groups = [ "vocsw" ] + + vars.parent = "coresw.openfest.org" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + # vars.specification = "vocsw" + + # vars.net_interfaces = [ "eth0", "eth1" ] + vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "1" # UP - 1 , 2 - down + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.2" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.3" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.4" + value = "1" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.5" + value = "1" + } + vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.6" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.7" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.8" + value = "1" + } + + + vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.1" + value = "2" + } + + vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10" + value = "2" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a1.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a1.conf new file mode 100644 index 0000000..ef1b451 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a1.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-a1.openfest.org" { + import "generic-host" + + address = "ap-cf-a1" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a2.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a2.conf new file mode 100644 index 0000000..716c63a --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-a2.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-a2.openfest.org" { + import "generic-host" + + address = "ap-cf-a2" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-b1.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-b1.conf new file mode 100644 index 0000000..19d0c14 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-b1.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-b1.openfest.org" { + import "generic-host" + + address = "ap-cf-b1" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-c1.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-c1.conf new file mode 100644 index 0000000..053b4a5 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-c1.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-c1.openfest.org" { + import "generic-host" + + address = "ap-cf-c1" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-ch.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-ch.conf new file mode 100644 index 0000000..3296481 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-ch.conf @@ -0,0 +1,33 @@ +object Host "ap-cf-ch.openfest.org" { + import "generic-host" + + # ap depends on teamsw + vars.parent = "teamsw.openfest.org" + + address = "ap-cf-ch" + vars.groups = [ "openwrt" ] + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-l.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-l.conf new file mode 100644 index 0000000..82ec3d7 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-l.conf @@ -0,0 +1,33 @@ +object Host "ap-cf-f-l.openfest.org" { + import "generic-host" + + address = "ap-cf-f-l" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-r.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-r.conf new file mode 100644 index 0000000..faad04f --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-f-r.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-f-r.openfest.org" { + import "generic-host" + + address = "ap-cf-f-r" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-qws.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-qws.conf new file mode 100644 index 0000000..077d35c --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-qws.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-qws.openfest.org" { + import "generic-host" + + address = "ap-cf-qws" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-srv.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-srv.conf new file mode 100644 index 0000000..73fab8c --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-cf-srv.conf @@ -0,0 +1,32 @@ +object Host "ap-cf-srv.openfest.org" { + import "generic-host" + + address = "ap-cf-srv" + vars.groups = [ "openwrt" ] + + vars.parent = "coresw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-noc.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-noc.conf new file mode 100644 index 0000000..d3334d3 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-noc.conf @@ -0,0 +1,32 @@ +object Host "ap-ws-noc.openfest.org" { + import "generic-host" + + address = "ap-ws-noc" + vars.groups = [ "openwrt" ] + + vars.parent = "nocsw.openfest.org" + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws1.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws1.conf new file mode 100644 index 0000000..10d7fbf --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws1.conf @@ -0,0 +1,33 @@ +object Host "ap-ws-ws1.openfest.org" { + import "generic-host" + + # depends on f0sw + vars.parent = "f0sw.openfest.org" + + address = "ap-ws-ws1" + vars.groups = [ "openwrt" ] + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} + diff --git a/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws2.conf b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws2.conf new file mode 100644 index 0000000..24a7936 --- /dev/null +++ b/monitoring/icinga2/conf.d/hosts/wifi/openwrt-ap-ws-ws2.conf @@ -0,0 +1,33 @@ +object Host "ap-ws-ws2.openfest.org" { + import "generic-host" + + # depends on f0sw + vars.parent = "f0sw.openfest.org" + + address = "ap-ws-ws2" + vars.groups = [ "openwrt" ] + + vars.os = "Linux" + + # check_command = "xxx_health" + # vars.extra_port_check = "" + vars.by_ssh_port = "22" + vars.by_ssh_logname = "root" + vars.by_ssh_identity = "/var/lib/nagios/.ssh/id_rsa" + + # vars.specification = "ap" + + vars.net_interfaces = [ "eth0", "eth1" ] + vars.ifaces[ "wlan0" ] = { + interface = "wlan0" + } + + vars.ifaces[ "wlan1" ] = { + interface = "wlan1" + } + + vars.notification["slack"] = { + groups = [ "icingaadmins" ] + } +} +