[copr] adding nagios check to backend, try 1

This commit is contained in:
Valentin Gologuzov 2015-01-23 21:01:17 +01:00
parent ea8b47fc75
commit 556a636a23
4 changed files with 11 additions and 2 deletions

View file

@ -23,8 +23,8 @@
- include: "{{ tasks }}/cloud_setup_basic.yml"
- name: provision instance
hosts: copr-back:copr-back-stg
#hosts: copr-back-stg
# hosts: copr-back:copr-back-stg
hosts: copr-back-stg
user: root
gather_facts: False

View file

@ -1,4 +1,5 @@
---
dependencies:
- { role: copr/base }
- { role: nagios_client }
# - { role: collectd/base }

View file

@ -141,3 +141,10 @@
- cron: name="kill VMs in error state" minute="*/15" job="/root/instant-instance-killer.sh"
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

View file

@ -0,0 +1 @@
command[check_copr_backend_failed]=/usr/bin/check_consecutive_build_fails.py