[copr] adding nagios check to backend, try 1
This commit is contained in:
parent
ea8b47fc75
commit
556a636a23
4 changed files with 11 additions and 2 deletions
|
@ -23,8 +23,8 @@
|
||||||
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||||
|
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: copr-back:copr-back-stg
|
# hosts: copr-back:copr-back-stg
|
||||||
#hosts: copr-back-stg
|
hosts: copr-back-stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: copr/base }
|
- { role: copr/base }
|
||||||
|
- { role: nagios_client }
|
||||||
# - { role: collectd/base }
|
# - { role: collectd/base }
|
||||||
|
|
|
@ -141,3 +141,10 @@
|
||||||
|
|
||||||
- cron: name="kill VMs in error state" minute="*/15" job="/root/instant-instance-killer.sh"
|
- cron: name="kill VMs in error state" minute="*/15" job="/root/instant-instance-killer.sh"
|
||||||
when: not devel
|
when: not devel
|
||||||
|
|
||||||
|
- name: install nrpe checks for proxies
|
||||||
|
template: src=copr_backend_nrpe.cfg dest=/etc/nrpe.d/copr_backend_nrpe.cfg
|
||||||
|
notify:
|
||||||
|
- restart nrpe
|
||||||
|
tags:
|
||||||
|
- nagios_client
|
||||||
|
|
1
roles/copr/backend/templates/copr_backend_nrpe.cfg
Normal file
1
roles/copr/backend/templates/copr_backend_nrpe.cfg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
command[check_copr_backend_failed]=/usr/bin/check_consecutive_build_fails.py
|
Loading…
Add table
Add a link
Reference in a new issue