#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2015 Icinga Development Team and Community Contributors
#
# #674
# IPv6 and Multiple adresses for one host
#############################################################################################

define command {
	command_name 			check-host-alive-multi-v6
	command_line    		$USER1$/check_ping -6 -H $HOSTADDRESS6$ -w 3000.0,80% -c 5000.0,100% -p 5
}


define command {
	command_name 			check-host-alive-multi-v4
	command_line    		$USER1$/check_ping -4 -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}


define command {
	command_name         		674check_multi
	command_line         		$USER1$/check_multi -l /opt/nagios/libexec -s HOSTADDRESS=$HOSTADDRESS$ -s HOSTADDRESS6=$HOSTADDRESS6$ -f /etc/icinga/$ARG1$ $ARG2$ $ARG3$ $ARG4$
}

define command {
	command_name 			check-host-alive-v6
	command_line    		$USER1$/check_ping -6 -H $HOSTADDRESS6$ -w 3000.0,80% -c 5000.0,100% -p 5
}



define host{
        name                            674linux-server-v6
        use                             test-generic-host
        check_period                    testconfig-24x7
        check_interval                  5
        retry_interval                  1
        max_check_attempts              10
        check_command                   check-host-alive-v6
        notification_period             testconfig-workhours
        notification_interval           120
        notification_options            d,u,r
        contact_groups                 	testconfig-group-admin
        register                        0
}

define host{
        use                     	674linux-server-v6            ; Name of host template to use
        host_name               	674localhostv6
        alias                   	674localhostv6
        address                 	127.0.0.1
	address6			::1
	check_command        		674check_multi!check_multi_host_dualstack.cmd -r 1+2+4+8
}

define host{
        use                     	674linux-server-v6            ; Name of host template to use
        host_name               	ns4.univie.ac.at
        alias                   	ns4
        address                 	131.130.1.12
        address6                	2001:62a:4:304::53
}

define host{
        use                     	674linux-server-v6            ; Name of host template to use
        host_name               	ns3.univie.ac.at
        alias                   	ns3
        address                 	131.130.1.11
        address6                	2001:62a:4:303::53
}

