This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.conf
164 lines (139 loc) · 3.78 KB
/
services.conf
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
* Service apply rules.
*
* The CheckCommand objects `ping4`, `ping6`, etc
* are provided by the plugin check command templates.
* Check the documentation for details.
*
* Tip: Use `icinga2 object list --type Service` to
* list all service objects after running
* configuration validation (`icinga2 daemon -C`).
*/
/*
* This is an example host based on your
* local host's FQDN. Specify the NodeName
* constant in `constants.conf` or use your
* own description, e.g. "db-host-1".
*/
/*
* These are generic `ping4` and `ping6`
* checks applied to all hosts having the
* `address` resp. `address6` attribute
* defined.
*/
//apply Service "ping4" {
// import "generic-service"
//
// check_command = "ping4"
//
// assign where host.address
//}
//
//apply Service "ping6" {
// import "generic-service"
//
// check_command = "ping6"
//
// assign where host.address6
//}
/*
* Apply the `ssh` service to all hosts
* with the `address` attribute defined and
* the custom attribute `os` set to `Linux`.
*/
/*
apply Service "ssh" {
import "generic-service"
check_command = "ssh"
assign where (host.address || host.address6) && host.vars.os == "Linux"
}
*/
/*
apply Service for (http_vhost => config in host.vars.http_vhosts) {
import "generic-service"
check_command = "http"
vars += config
}
*/
/*
apply Service for (disk => config in host.vars.disks) {
import "generic-service"
check_command = "disk"
vars += config
}
*/
apply Service "icinga" {
import "generic-service"
check_command = "icinga"
assign where host.name == NodeName
}
/* monitorovani konkretniho nodu */
//apply Service "load" {
// import "generic-service"
//
// check_command = "load"
//
// /* Used by the ScheduledDowntime apply rule in `downtimes.conf`. */
// vars.backup_downtime = "02:00-03:00"
//
// assign where host.name == NodeName
//}
//
//apply Service "procs" {
// import "generic-service"
//
// check_command = "procs"
//
// assign where host.name == NodeName
//}
//
//apply Service "swap" {
// import "generic-service"
//
// check_command = "swap"
//
// assign where host.name == NodeName
//}
//
//apply Service "users" {
// import "generic-service"
//
// check_command = "users"
//
// assign where host.name == NodeName
//}
/* ---------------------------------------------------------------- */
// former client services, now running locally
apply Service "CALLING-STATION-ID" {
import "calling station id template"
groups = [ "CALLING-STATION-ID" ]
vars.doc_url = "https://www.eduroam.cz/cs/spravce/monitoring/end2end_monitoring_new#calling-station-id"
assign where host.vars.transport && host.vars.transport != "undefined"
}
apply Service "OPERATOR-NAME" {
import "operator name template"
groups = [ "OPERATOR-NAME" ]
enable_notifications = false // notitifcations are temporarily disabled
vars.doc_url = "https://www.eduroam.cz/cs/spravce/monitoring/end2end_monitoring_new#operator-name"
assign where host.vars.transport && host.vars.transport != "undefined"
}
/* ---------------------------------------------------------------- */
// client services defined here
apply Service "IPSEC" {
import "ipsec template"
groups = [ "IPSEC" ]
vars.doc_url = "https://www.eduroam.cz/cs/spravce/monitoring/end2end_monitoring_new#ipsec"
assign where host.vars.transport == "IPSEC"
}
apply Service "RADSEC" {
import "radsec template"
groups = [ "RADSEC" ]
vars.doc_url = "https://www.eduroam.cz/cs/spravce/monitoring/end2end_monitoring_new#radsec"
assign where host.vars.transport == "RADSEC" && host.vars.type != "SP"
}
apply Service "RADSEC" {
import "radsec_sp_only template"
groups = [ "RADSEC" ]
vars.doc_url = "https://www.eduroam.cz/cs/spravce/monitoring/end2end_monitoring_new#radsec"
assign where host.vars.transport == "RADSEC" && host.vars.type == "SP"
}