Make it so that ipv6 is checked on hosts

This commit is contained in:
Stephen Smoogen 2022-11-17 15:55:53 -05:00
parent 993245267a
commit e6b3fb1904
2 changed files with 17 additions and 3 deletions

View file

@ -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

View file

@ -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 %}