summaryrefslogtreecommitdiffstats
path: root/test/config/2742.conf
blob: 555e714569927625199f39610bc88fc914498255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object CheckCommand "2742-macro-command" {
  command = "echo UPTIME: $icinga.uptime$ SERVICES warn: $icinga.num_services_warning$ crit: $icinga.num_services_critical$ unknown: $icinga.num_services_unknown$ ackd: $icinga.num_services_acknowledged$ HOST: down: $icinga.num_hosts_down$ unreachable: $icinga.num_hosts_unreachable$"
}

object HostGroup "2742-windows-servers"{
  display_name = "2742-windows-servers"
  assign where match("2742-*", host.name)
}

apply Service "2742-macro-test" {
  import "test-generic-service"
  check_command = "2742-macro-command"
  assign where match("2742-*", host.name)
}

object Host "2742-server" {
  import "test-generic-host"
  address = "192.168.1.5",
}