42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
---
|
|
# Copyright 2019 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Monitor ceph mons
|
|
hosts: ceph-mon
|
|
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
|
user: root
|
|
roles:
|
|
- role: sensu_common
|
|
tasks:
|
|
- import_tasks: common-tasks/install-plugins.yml
|
|
vars:
|
|
sensu_plugins: ['sensu-plugins-ceph']
|
|
|
|
- import_tasks: common-tasks/configure-sudo.yml
|
|
vars:
|
|
sensu_commands:
|
|
- /opt/sensu/embedded/bin/check-ceph.rb -d
|
|
|
|
- import_tasks: common-tasks/setup-checks.yml
|
|
vars:
|
|
sensu_checks:
|
|
- name: ceph
|
|
command: sudo check-ceph.rb -d
|
|
vars:
|
|
sensu_service: ceph
|
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
tags:
|
|
- ceph
|
|
- ceph-mon |