Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | nagios_notification_email: root@localhost |
| 4 | nagios_host_dimension_key: nagios_host |
| 5 | nagios_default_host_alarm_clusters: 00-clusters |
Swann Croiset | 09be814 | 2017-01-24 11:37:56 +0100 | [diff] [blame] | 6 | nagios_monitoring_network: [] |
| 7 | nagios_monitoring_interface: |
| 8 | - eth0 |
| 9 | - ens3 |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 10 | 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 Lemoine | 0aea85d | 2016-12-14 15:09:37 +0000 | [diff] [blame] | 27 | log_external_commands: 0 |
| 28 | log_passive_checks: 0 |
| 29 | log_initial_states: 1 |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 30 | ui: |
| 31 | enabled: true |
| 32 | port: ${_param:nagios_ui_port} |
Éric Lemoine | 56a65d8 | 2016-12-14 15:10:19 +0000 | [diff] [blame] | 33 | auth: |
| 34 | basic: |
| 35 | username: ${_param:nagios_username} |
| 36 | password: ${_param:nagios_password} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 37 | 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 Pasquier | 5af60d9 | 2016-12-19 16:39:01 +0100 | [diff] [blame] | 43 | service_subject: >- |
| 44 | ** $NOTIFICATIONTYPE$ Env:$_HOSTENV$ Service: $HOSTDISPLAYNAME$/$SERVICEDESC$ is $SERVICESTATE$ ** |
| 45 | host_subject: >- |
| 46 | ** $NOTIFICATIONTYPE$ Env:$_HOSTENV$ Host: $HOSTDISPLAYNAME$ is $HOSTSTATE$ ** |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 47 | dynamic: |
| 48 | enabled: true |
| 49 | grain_hostname: 'host' |
Éric Lemoine | aecf659 | 2016-12-14 15:24:39 +0000 | [diff] [blame] | 50 | hostname_suffix: ${_param:stacklight_environment} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 51 | hostgroups: |
Swann Croiset | 964a73f | 2017-03-28 16:55:05 +0200 | [diff] [blame] | 52 | - target: 'G@services:openssh' |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 53 | name: All |
Swann Croiset | 964a73f | 2017-03-28 16:55:05 +0200 | [diff] [blame] | 54 | expr_from: compound |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 55 | - 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 Croiset | 09be814 | 2017-01-24 11:37:56 +0100 | [diff] [blame] | 70 | interface: ${_param:nagios_monitoring_interface} |
| 71 | network: ${_param:nagios_monitoring_network} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 72 | 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 Pasquier | 5af60d9 | 2016-12-19 16:39:01 +0100 | [diff] [blame] | 119 | _env: ${_param:stacklight_environment} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 120 | 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 | |