ok this should fix noc02
This commit is contained in:
parent
7ae0b3abba
commit
e51982268b
3 changed files with 6 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
|||
- include: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
- name: deploy service-specific config (just for production)
|
||||
hosts: nagios-new
|
||||
hosts: nagios
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ debug=0
|
|||
# number. The file is only written if the NRPE daemon is started by the root
|
||||
# user and is running in standalone mode.
|
||||
|
||||
pid_file=/var/run/nrpe/nrpe.pid
|
||||
#pid_file=/var/run/nrpe.pid
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -85,7 +85,6 @@ define host {
|
|||
define host {
|
||||
host_name virthost20.phx2.fedoraproject.org
|
||||
alias virthost20.phx2.fedoraproject.org
|
||||
use mincheck
|
||||
check_command check-host-alive
|
||||
address 10.5.126.160
|
||||
parents phx2-gw
|
||||
|
@ -96,7 +95,11 @@ define host {
|
|||
{% for host in groups['all'] %}
|
||||
{% if hostvars[host].datacenter == 'phx2' %}
|
||||
define host {
|
||||
{% if hostvars[host].nagios_services['nrpe'] == true %}
|
||||
use defaulttemplate
|
||||
{% else %}
|
||||
use mincheck
|
||||
{% endif %}
|
||||
host_name {{ host }}
|
||||
{% if hostvars[host].ansible_hostname is defined %}
|
||||
alias {{ hostvars[host].ansible_hostname }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue