adjust nagios for 3 bugyou fedmsg hubs
This commit is contained in:
parent
15324eed25
commit
82be02911f
3 changed files with 14 additions and 1 deletions
|
@ -136,6 +136,18 @@
|
||||||
- config
|
- config
|
||||||
- nagios/client
|
- 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)
|
# The actual items files here end in .j2 (they are templates)
|
||||||
# So when adding or modifying them change the .j2 version in git.
|
# So when adding or modifying them change the .j2 version in git.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
command[check_fedmsg_hub_procs_bugyou]={{ libdir }}/nagios/plugins/check_procs -c 3:3 -C 'fedmsg-hub' -u fedmsg
|
|
@ -108,7 +108,7 @@ define service {
|
||||||
define service {
|
define service {
|
||||||
host_name bugyou01
|
host_name bugyou01
|
||||||
service_description Check for fedmsg-hub proc
|
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
|
use defaulttemplate
|
||||||
}
|
}
|
||||||
define service {
|
define service {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue