blob: e495915e8db60a70b22deb7a21e73f413c886e2d [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
6 nagios :
7 server:
8 enabled: true
9 check_external_commands: 1
10 command_check_interval: 15s
11 log_external_commands: 1
12 log_passive_checks: 1
13 log_rotation_method: d
14 accept_passive_service_checks: 1
15 accept_passive_host_checks: 0
16 enable_notifications: 1
17 execute_service_checks: 1
18 execute_host_checks: 1
19 process_performance_data: 0
20 check_service_freshness: 1
21 check_host_freshness: 0
22 purge_distribution_config: true
Éric Lemoine0aea85d2016-12-14 15:09:37 +000023 log_external_commands: 0
24 log_passive_checks: 0
25 log_initial_states: 1
Ondrej Smola03ff34e2016-12-01 01:30:33 +010026 ui:
27 enabled: true
28 port: ${_param:nagios_ui_port}
Éric Lemoine56a65d82016-12-14 15:10:19 +000029 auth:
30 basic:
31 username: ${_param:nagios_username}
32 password: ${_param:nagios_password}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010033 wsgi:
34 port: ${_param:nagios_status_port}
35 notification:
36 smtp:
37 host: ${_param:nagios_notification_smtp_server}
38 from: ${_param:nagios_notification_from}
Simon Pasquier5af60d92016-12-19 16:39:01 +010039 service_subject: >-
40 ** $NOTIFICATIONTYPE$ Env:$_HOSTENV$ Service: $HOSTDISPLAYNAME$/$SERVICEDESC$ is $SERVICESTATE$ **
41 host_subject: >-
42 ** $NOTIFICATIONTYPE$ Env:$_HOSTENV$ Host: $HOSTDISPLAYNAME$ is $HOSTSTATE$ **
Ondrej Smola03ff34e2016-12-01 01:30:33 +010043 dynamic:
44 enabled: true
45 grain_hostname: 'host'
Éric Lemoineaecf6592016-12-14 15:24:39 +000046 hostname_suffix: ${_param:stacklight_environment}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010047 hostgroups:
48 - target: '*'
49 name: All
50 expr_from: glob
51 - target: 'G@roles:nova.controller'
52 expr_from: compound # the default
53 name: Nova Controller
54 - target: 'G@roles:nova.compute'
55 name: Nova Compute
56 - target: 'G@roles:keystone.server'
57 name: Keystone server
58 - target: 'G@roles:influxdb.server'
59 name: InfluxDB server
60 - target: 'G@roles:elasticsearch.server'
61 name: Elasticsearchserver
62 hosts:
63 - target: 'G@services:openssh'
64 contact_groups: Operator
65 use: generic_host_tpl
66 interface:
67 - eth0
68 - ens3
69 - p4p1.602
70 services:
71 - target: 'G@roles:openssh.server'
72 name: SSH
73 use: generic_service_tpl
74 check_command: check_ssh
75 stacklight_alarms:
76 enabled: true
77 service_template: generic_service_tpl
78 stacklight_alarm_clusters:
79 enabled: true
80 service_template: generic_service_tpl
81 host_template: generic_host_tpl
82 dimension_key: ${_param:nagios_host_dimension_key}
83 default_host: ${_param:nagios_default_host_alarm_clusters}
84 objects:
85 contactgroups:
86 operator:
87 contactgroup_name: Operator
88 contacts:
89 operator:
90 alias: 'root_at_localhost'
91 contact_name: Operator
92 contactgroups:
93 - Operator
94 email: ${_param:nagios_notification_email}
95 host_notifications_enabled: 1
96 host_notification_period: 24x7
97 host_notification_options: 'd,r'
98 host_notification_commands: notify-host-by-smtp
99 service_notifications_enabled: 1
100 service_notification_period: 24x7
101 service_notification_options: 'w,u,c,r'
102 service_notification_commands: notify-service-by-smtp
103 hosts:
104 generic_host_tpl:
105 notifications_enabled: 1
106 event_handler_enabled: 1
107 flap_detection_enabled: 1
108 failure_prediction_enabled: 1
109 process_perf_data: 0
110 retain_status_information: 1
111 retain_nonstatus_information: 1
112 max_check_attempts: 10
113 notification_interval: 0
114 notification_period: 24x7
115 notification_options: d,u,r
116 contact_groups: Operator
Simon Pasquier5af60d92016-12-19 16:39:01 +0100117 _env: ${_param:stacklight_environment}
Ondrej Smola03ff34e2016-12-01 01:30:33 +0100118 register: 0
119 services:
120 generic_service_tpl:
121 register: 0
122 contact_groups: Operator
123 process_perf_data: 0
124 max_check_attempts: 3
125