summaryrefslogtreecommitdiffstats
path: root/zones.d/master/cluster-health.conf
blob: c1d89561d5a99113026d31d9b08e440d7fe1ceab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apply Service "agent-health" {
	import "generic-service"
	zone = "master"

	check_command = "cluster-zone"

	assign where host.vars.os
	ignore where host.vars.cluster_zone == "master"
}

apply Dependency "agent-health-check" to Service {
	parent_service_name = "agent-health"

	states = [ OK ]
	disable_notifications = true

	assign where host.vars.os
	ignore where host.vars.cluster_zone == "master"
	ignore where service.name == "agent-health" // Avoid self dependency
}