copr-be: fixup copr-ping nagios mapping

This commit is contained in:
Pavel Raiskup 2021-08-09 13:34:25 +02:00
parent 54c5c85eaa
commit 73ba7d25b1
5 changed files with 5 additions and 6 deletions

View file

@ -39,8 +39,8 @@
- name: install the check script
template:
dest: "/usr/bin/{{ ping_check_script }}"
src: "{{ ping_check_script }}.j2"
dest: "/usr/bin/copr-ping-check.py"
src: "copr-ping-check.py.j2"
owner: "{{ ping_user }}"
group: "{{ ping_user }}"
mode: 0700

View file

@ -1 +1 @@
command[copr_ping_check]=/usr/bin/{{ ping_check_script }}
command[check_copr_ping]=/usr/bin/copr-ping-check.py

View file

@ -1,2 +0,0 @@
---
ping_check_script: copr-ping-check.py

View file

@ -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!copr_ping_check
check_command check_by_nrpe!check_copr_ping
use defaulttemplate
}

View file

@ -316,6 +316,7 @@ command[check_lock]=/usr/lib64/nagios/plugins/check_lock
command[check_lock_file_age]=/usr/lib64/nagios/plugins/check_lock_file_age -w 1 -c 5 -f /var/lock/fedora-ca/lock
command[check_nagios]=/usr/lib64/nagios/plugins/check_nagios -e 5 -F /var/spool/nagios/status.dat -C /usr/sbin/nagios
command[check_auditd]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -C 'auditd' -u root
command[check_copr_ping]=/usr/bin/copr-ping-check.py
command[check_cron]=/usr/lib64/nagios/plugins/check_procs -c 1:10 -C 'crond' -u root
command[check_varnish_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'varnishd' -u varnish
command[check_rsyslogd_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'rsyslogd'