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