blob: da4dcc436df63e2996973d460f2e8ccc3968a77c [file] [log] [blame]
Ondrej Smola03ff34e2016-12-01 01:30:33 +01001parameters:
2 _param:
3 nagios_notification_email: root@localhost
4 nagios_host_dimension_key: nagios_host
5 nagios_default_host_alarm_clusters: 00-clusters
Éric Lemoineaecf6592016-12-14 15:24:39 +00006 stacklight_environment: ${_param:cluster_domain}
Ondrej Smola03ff34e2016-12-01 01:30:33 +01007 nagios :
8 server:
9 enabled: true
10 check_external_commands: 1
11 command_check_interval: 15s
12 log_external_commands: 1
13 log_passive_checks: 1
14 log_rotation_method: d
15 accept_passive_service_checks: 1
16 accept_passive_host_checks: 0
17 enable_notifications: 1
18 execute_service_checks: 1
19 execute_host_checks: 1
20 process_performance_data: 0
21 check_service_freshness: 1
22 check_host_freshness: 0
23 purge_distribution_config: true
Éric Lemoine0aea85d2016-12-14 15:09:37 +000024 log_external_commands: 0
25 log_passive_checks: 0
26 log_initial_states: 1
Ondrej Smola03ff34e2016-12-01 01:30:33 +010027 ui:
28 enabled: true
29 port: ${_param:nagios_ui_port}
Éric Lemoine56a65d82016-12-14 15:10:19 +000030 auth:
31 basic:
32 username: ${_param:nagios_username}
33 password: ${_param:nagios_password}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010034 wsgi:
35 port: ${_param:nagios_status_port}
36 notification:
37 smtp:
38 host: ${_param:nagios_notification_smtp_server}
39 from: ${_param:nagios_notification_from}
40 dynamic:
41 enabled: true
42 grain_hostname: 'host'
Éric Lemoineaecf6592016-12-14 15:24:39 +000043 hostname_suffix: ${_param:stacklight_environment}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010044 hostgroups:
45 - target: '*'
46 name: All
47 expr_from: glob
48 - target: 'G@roles:nova.controller'
49 expr_from: compound # the default
50 name: Nova Controller
51 - target: 'G@roles:nova.compute'
52 name: Nova Compute
53 - target: 'G@roles:keystone.server'
54 name: Keystone server
55 - target: 'G@roles:influxdb.server'
56 name: InfluxDB server
57 - target: 'G@roles:elasticsearch.server'
58 name: Elasticsearchserver
59 hosts:
60 - target: 'G@services:openssh'
61 contact_groups: Operator
62 use: generic_host_tpl
63 interface:
64 - eth0
65 - ens3
66 - p4p1.602
67 services:
68 - target: 'G@roles:openssh.server'
69 name: SSH
70 use: generic_service_tpl
71 check_command: check_ssh
72 stacklight_alarms:
73 enabled: true
74 service_template: generic_service_tpl
75 stacklight_alarm_clusters:
76 enabled: true
77 service_template: generic_service_tpl
78 host_template: generic_host_tpl
79 dimension_key: ${_param:nagios_host_dimension_key}
80 default_host: ${_param:nagios_default_host_alarm_clusters}
81 objects:
82 contactgroups:
83 operator:
84 contactgroup_name: Operator
85 contacts:
86 operator:
87 alias: 'root_at_localhost'
88 contact_name: Operator
89 contactgroups:
90 - Operator
91 email: ${_param:nagios_notification_email}
92 host_notifications_enabled: 1
93 host_notification_period: 24x7
94 host_notification_options: 'd,r'
95 host_notification_commands: notify-host-by-smtp
96 service_notifications_enabled: 1
97 service_notification_period: 24x7
98 service_notification_options: 'w,u,c,r'
99 service_notification_commands: notify-service-by-smtp
100 hosts:
101 generic_host_tpl:
102 notifications_enabled: 1
103 event_handler_enabled: 1
104 flap_detection_enabled: 1
105 failure_prediction_enabled: 1
106 process_perf_data: 0
107 retain_status_information: 1
108 retain_nonstatus_information: 1
109 max_check_attempts: 10
110 notification_interval: 0
111 notification_period: 24x7
112 notification_options: d,u,r
113 contact_groups: Operator
114 register: 0
115 services:
116 generic_service_tpl:
117 register: 0
118 contact_groups: Operator
119 process_perf_data: 0
120 max_check_attempts: 3
121