-
Notifications
You must be signed in to change notification settings - Fork 28
/
pillar.example
176 lines (163 loc) · 4.15 KB
/
pillar.example
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
165
166
167
168
169
170
171
172
173
174
175
176
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
icinga2:
lookup: # See defaults.yaml and map.jinja for a better overview
config_dir: /etc/icinga2
confd_dir: /etc/icinga2/conf.d
check_command_dir: /etc/icinga2/conf.d/check_command
scripts_dir: /etc/icinga2/scripts
home_dir: /var/lib/nagios
user: nagios
group: nagios
postgresql_pkgs:
- postgresql-client
service: icinga2
pkgs:
- icinga2
# - nagios-nrpe-plugin
ido:
db:
# MUST BE SET when using icinga2.pgsql-ido
password: SomeSecurePassword
name: icinga
user: icinga2ido
host: 127.0.0.1
port: 5432
schema_path: /usr/share/icinga2-ido-pgsql/schema/pgsql.sql
pkg: icinga2-ido-pgsql
icinga_web2:
config_dir: /etc/icingaweb2
modules_dir: /usr/share/icingaweb2/modules
user: www-data
group: icingaweb2
db:
# MUST BE SET when using icinga2.icinga-web2-database
password: AnotherSecurePassword
name: icinga2web
user: icinga2web
host: 127.0.0.1
port: 5432
pkgs:
- icingaweb2
- icingaweb2-module-doc
- icingaweb2-module-monitoring
required_pkgs:
- php-fpm
- php-pgsql
- libapache2-mod-php
- php-intl
- php-gd
- php-imagick
features:
api: false # disable
command: true # enable
debuglog: false
gelf: false
graphite: false
influxdb: false
livestatus: false
opentsdb: false
perfdata: false
statusdata: false
syslog: false
notification:
xmpp:
pkg: python3-slixmpp
python_executable: python3
ca_file: /etc/ssl/certs/ca-certificates.crt
postgres:
use_formula: false # set to true if you are using postgres-formula
nrpe: # deprecated
config:
server_port: 5666
commands:
check_users: /usr/lib/nagios/plugins/check_users -w 5 -c 10
defaults:
DAEMON_OPTS: "\"--no-ssl\""
conf:
users:
alice:
email: alice@example.test
groups:
- icingaadmins
vars:
jabber: alice@jabber.example.test
user_groups:
icingaadmins:
display_name: "Icinga 2 Admin Group"
templates:
special-host:
type: Host
conf:
vars:
sla: "24x5"
special-downtime:
type: ScheduledDowntime
conf:
ranges:
monday: "02:00-03:00"
special-notification:
type: Notification
conf:
types:
- FlappingStart
- FlappingEnd
hosts:
example.com:
import: generic-host
address: 1.2.3.4
vars:
sla: "24x7"
services:
http:
import: generic-service
host_name: example.com
check_command: http
vars:
sla: "24x7"
ssh:
import: generic-service
host_name: example.com
check_command: ssh
vars:
sla: "24x7"
ssh_alt:
import: generic-service
host_name: example.com
check_command: ssh
vars:
ssh_port: 43
sla: "24x7"
obsolete_service:
remove: true
# Minimalistic, supply only hostname
example2.test: {}
# # sets
# address: example2.test
# import: generic-host
# Removes this host from Icinga
deprecated.example.com:
remove: true
notifications:
'xmpp-host':
# opt-in to trigger application
apply_to: Host
conf:
users:
- alice
# defined by icinga.notification.xmpp
command: 'xmpp-host-notification'
assign:
- 'true'
downtimes: {}
# see 'notifications' above
services: {}
# see 'notifications' above
notification:
xmpp:
pkg: python3-slixmpp
python_executable: python3
ca_file: /etc/ssl/certs/ca-certificates.crt
jid: icinga@jabber.example.test
password: supersecurerandomizeduniquepassword