copr-be: install ping nrpe task
This commit is contained in:
parent
06f2e4b236
commit
0771b0e4ad
4 changed files with 9 additions and 10 deletions
|
@ -4,7 +4,6 @@
|
|||
ping_scriptdir: /home/copr-ping
|
||||
ping_log: /var/log/copr-ping.log
|
||||
ping_script: copr-ping-script.sh
|
||||
ping_check: copr-ping-check.py
|
||||
tags: copr_ping
|
||||
|
||||
- stat: path={{ ping_log }}
|
||||
|
@ -39,8 +38,8 @@
|
|||
|
||||
- name: install the check script
|
||||
template:
|
||||
dest: "/usr/bin/{{ ping_check }}"
|
||||
src: "{{ ping_check }}.j2"
|
||||
dest: "/usr/bin/{{ ping_check_script }}"
|
||||
src: "{{ ping_check_script }}.j2"
|
||||
owner: "{{ ping_user }}"
|
||||
group: "{{ ping_user }}"
|
||||
mode: 0700
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: install nrpe checks
|
||||
# template: src=copr_backend_nrpe.cfg dest=/etc/nrpe.d/copr_backend_nrpe.cfg
|
||||
file:
|
||||
path: /etc/nrpe.d/copr_backend_nrpe.cfg
|
||||
state: absent
|
||||
template: src=copr_backend_nrpe.cfg
|
||||
dest=/etc/nrpe.d/copr_backend_nrpe.cfg
|
||||
notify:
|
||||
- restart nrpe
|
||||
tags:
|
||||
- nagios_client
|
||||
- copr_ping
|
||||
|
||||
- name: set acl for nrpe on /etc/copr
|
||||
acl: name=/etc/copr entity=nrpe etype=user permissions=rx state=present
|
||||
|
|
|
@ -1 +1 @@
|
|||
command[check_copr_backend_failed]=/usr/bin/check_consecutive_build_fails.py
|
||||
command[copr_ping_check]=/usr/bin/{{ ping_check_script }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
define service {
|
||||
hostgroup_name copr_back_aws, copr_back_dev_aws
|
||||
service_description Copr ping package builds (that chould always succeed)
|
||||
check_command check_by_nrpe!check_disk_/var/lib/copr/public_html
|
||||
use disktemplate
|
||||
check_command check_by_nrpe!copr_ping_check
|
||||
use defaulttemplate
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue