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"
|
- include: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
- name: deploy service-specific config (just for production)
|
- name: deploy service-specific config (just for production)
|
||||||
hosts: nagios-new
|
hosts: nagios
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ debug=0
|
||||||
# number. The file is only written if the NRPE daemon is started by the root
|
# number. The file is only written if the NRPE daemon is started by the root
|
||||||
# user and is running in standalone mode.
|
# 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 {
|
define host {
|
||||||
host_name virthost20.phx2.fedoraproject.org
|
host_name virthost20.phx2.fedoraproject.org
|
||||||
alias virthost20.phx2.fedoraproject.org
|
alias virthost20.phx2.fedoraproject.org
|
||||||
use mincheck
|
|
||||||
check_command check-host-alive
|
check_command check-host-alive
|
||||||
address 10.5.126.160
|
address 10.5.126.160
|
||||||
parents phx2-gw
|
parents phx2-gw
|
||||||
|
@ -96,7 +95,11 @@ define host {
|
||||||
{% for host in groups['all'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'phx2' %}
|
{% if hostvars[host].datacenter == 'phx2' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if hostvars[host].nagios_services['nrpe'] == true %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue