-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservices-nrpe.conf
64 lines (43 loc) · 1.3 KB
/
services-nrpe.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
apply Service "nsclient++" {
import "generic-service"
check_command = "nrpe-legacy"
vars.nrpe_args = false
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
}
apply Service "cpu usage" {
import "generic-service"
check_command = "nrpe-legacy-cpu"
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
}
apply Service "memory" {
import "generic-service"
check_command = "nrpe-legacy-memory"
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
}
apply Service for (disk => config in host.vars.disks) {
import "disk-service"
check_command = "nrpe-legacy-disk"
vars += config
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
ignore where typeof(config) != Dictionary
}
apply Service for (srv => config in host.vars.services) {
import "generic-service"
check_command = "nrpe-legacy-service"
vars += config
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
ignore where typeof(config) != Dictionary
}
apply Service for (counter => config in host.vars.counters) {
import "generic-service"
check_command = "nrpe-legacy-counter"
vars += config
assign where host.vars.os == "Windows"
ignore where !host.vars.noagent
ignore where typeof(config) != Dictionary
}