-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckmate.example.yaml
128 lines (125 loc) · 3.82 KB
/
checkmate.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
folders:
/:
title: Main
attributes:
labels:
checkmate/managed_by: checkmate
rulesets:
datasource_programs:
rules:
- id: some_custom_command
conditions:
host_labels:
- key: checkmate/datasource
operator: is
value: some_custom_command
properties:
description: >-
Use `some_custom_command` script to retrieve checkmk-compatible output for matching hosts
value_raw: >-
'some_custom_command $HOSTNAME$'
host_check_commands:
rules:
- id: some_custom_command
conditions:
host_labels:
- key: checkmate/datasource
operator: is
value: some_custom_command
properties:
description: >-
Verify outpost availability through healthcheck-endpoint using `some_custom_command` script
value_raw: >-
('custom', 'some_custom_command $HOSTNAME$')
periodic_discovery:
rules:
- id: autodiscover
conditions:
host_labels:
- key: checkmate/autodiscover
operator: is
value: 'true'
properties:
description: >-
Auto-discover and auto-vanish services for hosts with checkmate/autodiscover:true
value_raw: >-
{
'check_interval': 30.0,
'severity_unmonitored': 0,
'severity_vanished': 0,
'severity_new_host_label': 1,
'inventory_rediscovery': {
'mode': 2,
'group_time': 300,
'excluded_time': [],
'activation': True
}
}
service_contactgroups:
rules:
- id: all
properties:
description: >-
Assign all services to group
value_raw: >-
'SampleProject-ContactGroup-All'
- id: sampleproject_backend
conditions:
service_labels:
- key: team
operator: is
value: Backend
properties:
description: >-
Assign backend services to group
value_raw: >-
'SampleProject-ContactGroup-Backend'
/SampleProject:
title: Sample Project
attributes:
labels:
project: SP
checkmate/autodiscover: 'true'
/Integration:
title: SP - Integration Test Environment
attributes:
labels:
checkmate/environment: Integration
hosts:
- host_name: host1.int.domain.invalid
attributes:
entry_ipaddress: "127.0.0.1"
tag_criticality: test
tag_agent: cmk-agent
tag_address_family: ip-v4-only
- host_name: host2.int.domain.invalid
attributes:
entry_ipv6address: "::1"
labels:
service/language: python
service/framework: fastapi
tag_criticality: offline
tag_agent: all-agents
tag_address_family: ip-v6-only
/Production:
title: SP - Production Environment
attributes:
labels:
checkmate/environment: Production
hosts:
- host_name: host1.prod.domain.invalid
attributes:
entry_ipaddress: "127.0.0.1"
entry_ipv6address: "::1"
tag_criticality: prod
tag_agent: special-agents
tag_address_family: ip-v4v6
- host_name: host2.prod.domain.invalid
attributes:
labels:
service/language: python
service/framework: fastapi
tag_criticality: critical
tag_agent: no-agent
tag_address_family: no-ip