add nagios check for mirrorlist container tcp. maybe. Or break everything, which is more likely.

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2017-05-15 20:59:43 +00:00
parent 881735b5eb
commit a3b0b87fc7
3 changed files with 23 additions and 0 deletions

View file

@ -37,6 +37,20 @@
- nagios_client
when: ansible_distribution_major_version|int > 21
- name: install nagios tcp check for mirrorlist proxies
yum: name=nagios-plugins-tcp state=present
tags:
- packages
- nagios/client
when: ansible_distribution_major_version|int < 22 and 'mirrorlist-proxies' in group_names
- name: install nagios tcp check for mirrorlist proxies
dnf: name=nagios-plugins-tcp state=present
tags:
- packages
- nagios/client
when: ansible_distribution_major_version|int > 21 and 'mirrorlist-proxies' in group_names
- name: install local nrpe check scripts that are not packaged
copy: src="scripts/{{ item }}" dest="{{ libdir }}/nagios/plugins/{{ item }}" mode=0755 owner=nagios group=nagios
with_items:

View file

@ -343,6 +343,7 @@ command[check_koschei_build_resolver_proc]=/usr/lib64/nagios/plugins/check_procs
command[check_koschei_repo_resolver_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-repo-re -c 1:1
command[check_koschei_scheduler_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-schedul -c 1:1
command[check_koschei_watcher_proc]=/usr/lib64/nagios/plugins/check_procs -s RSD -u koschei -C koschei-watcher -c 1:1
command[check_mirrorlist_docker_proxy]=/usr/lib64/nagios/plugins/check_tcp -H localhost -p 18081
# The following are fedmsg/datanommer checks to be run on busgateway01.
# They check for the time since the latest message in any particular category.

View file

@ -0,0 +1,8 @@
{% for host in groups['mirrorlist-proxies'] %}
define service {
host_name {{ host }}
service_description {{ host }} mirrorlist docker container
check_command check_by_nrpe!check_mirrorlist_docker_proxy
use defaulttemplate
}
{% endfor %}