Make it so that ipv6 is checked on hosts
This commit is contained in:
parent
993245267a
commit
e6b3fb1904
2 changed files with 17 additions and 3 deletions
|
@ -42,6 +42,20 @@ define host {
|
|||
register 0
|
||||
}
|
||||
|
||||
define host {
|
||||
name mincheck6
|
||||
check_command check-host-alive6
|
||||
max_check_attempts 8
|
||||
checks_enabled 1
|
||||
retain_status_information 1
|
||||
retain_nonstatus_information 1
|
||||
notification_interval 15
|
||||
notifications_enabled 1
|
||||
notification_options d,r
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
register 0
|
||||
}
|
||||
|
||||
define host {
|
||||
name ppc-secondarytemplate
|
||||
check_command check-host-alive4
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
{% for host in groups['all']|sort %}
|
||||
{% if hostvars[host].datacenter == 'ibiblio' and hostvars[host].nagios_Can_Connect == true %}
|
||||
define host {
|
||||
use mincheck
|
||||
host_name {{ host }}-ipv6
|
||||
use mincheck6
|
||||
host_name {{ hostvars[host].ansible_hostname }}-ipv6.fedoraproject.org
|
||||
{% if hostvars[host].ansible_hostname is defined %}
|
||||
alias {{ hostvars[host].ansible_hostname }}
|
||||
alias {{ hostvars[host].ansible_hostname }}-ipv6
|
||||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue