]> granicus.if.org Git - icinga2/blob - test/config/7560.conf
Move new password functions into tlsutility
[icinga2] / test / config / 7560.conf
1 object Host "7560-server" {
2   import "test-generic-host"
3   address = "127.0.0.1"
4   check_command = "hostalive"
5
6   vars.interfaces += {
7     eth0 = {
8       port = 1
9       vlan = "internal"
10       address = "127.0.0.2"
11       qos = "enabled"
12     }
13     eth1 = {
14       port = 2
15       vlan = "mgmt"
16       address = "127.0.1.2"
17     }
18     eth2 = {
19       port = 3
20       vlan = "remote"
21       address = "127.0.2.2"
22     }
23   }
24 }
25
26 apply Service "if-" for (if_name => config in host.vars.interfaces) {
27   import "test-generic-service"
28   check_command = "ping4"
29
30   vars.qos = "disabled"
31   vars += config
32
33   display_name = "if-" + if_name + "-" + vars.vlan
34
35   notes = "Interface check for Port " + string(vars.port) + " in VLAN " + vars.vlan + " on Address " + vars.address + " QoS " + vars.qos
36   notes_url = "http://foreman.company.com/hosts/" + host.name
37   action_url = "http://snmp.checker.company.com/" + host.name + "if-" + if_name
38
39   assign where match("7560-*", host.name) && typeof(host.vars.interfaces) == typeof({})
40 }
41