1 object Host "7560-server" {
2 import "test-generic-host"
4 check_command = "hostalive"
26 apply Service "if-" for (if_name => config in host.vars.interfaces) {
27 import "test-generic-service"
28 check_command = "ping4"
33 display_name = "if-" + if_name + "-" + vars.vlan
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
39 assign where match("7560-*", host.name) && typeof(host.vars.interfaces) == typeof({})