adjust nagios for 3 bugyou fedmsg hubs

This commit is contained in:
Kevin Fenzi 2016-09-26 00:22:18 +00:00
parent 15324eed25
commit 82be02911f
3 changed files with 14 additions and 1 deletions

View file

@ -136,6 +136,18 @@
- config
- nagios/client
#
# The actual items files here end in .j2 (they are templates)
# So when adding or modifying them change the .j2 version in git.
#
- name: install nrpe bugyou fedmsg hubs check config
template: src=check_fedmsg_hub_procs_bugyou.j2 dest=/etc/nrpe.d/check_fedmsg_hub_procs_bugyou.cfg
when: inventory_hostname.startswith('bugyou01')
notify:
- restart nrpe
tags:
- nagios/client
#
# The actual items files here end in .j2 (they are templates)
# So when adding or modifying them change the .j2 version in git.

View file

@ -0,0 +1 @@
command[check_fedmsg_hub_procs_bugyou]={{ libdir }}/nagios/plugins/check_procs -c 3:3 -C 'fedmsg-hub' -u fedmsg

View file

@ -108,7 +108,7 @@ define service {
define service {
host_name bugyou01
service_description Check for fedmsg-hub proc
check_command check_by_nrpe!check_fedmsg_hub_proc
check_command check_by_nrpe!check_fedmsg_hub_procs_bugyou
use defaulttemplate
}
define service {