#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2013 Icinga Development Team and Community Contributors
#
# #1300
# display host/service dependencies in host/service details in extinfo.cgi
#############################################################################################

define command {
        command_name    		1300check_dummy
        command_line    		/usr/lib/nagios/plugins/check_dummy $ARG1$
}


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

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

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

define  service {
        name                            1300generic-check
        is_volatile                     0
        check_command                   1300check_dummy!2 "foobaer"
        max_check_attempts              2
        normal_check_interval           2
        retry_check_interval            1
        active_checks_enabled           1
        passive_checks_enabled          1
        check_period                    testconfig-24x7
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        contact_groups                  abc
        notification_interval           120
        notification_period             testconfig-24x7
        notification_options            w,u,c,r,f
        notifications_enabled           1
        register                        0
}


define  service {
        use                             1300generic-check
        host_name                       1300localhost
        contact_groups                 	testconfig-group-admin
	action_url			http://foobar.com
	notes_url			testestetest
        service_description             dep1
}

define  service {
        use                             1300generic-check
        host_name                       1300localhost
        contact_groups                	testconfig-group-admin
        service_description             dep2
}

define  service {
        use                             1300generic-check
        host_name                       1300localhost
        contact_groups                 	testconfig-group-admin
        service_description             dep3
}

define  service {
        use                             1300generic-check
        host_name                       1300localhost
        contact_groups                  testconfig-group-admin
	service_description             DISEÑOS
}




#define servicedependency {
#	dependent_host_name		localhost
#	dependent_service_description	dep1
#	host_name			localhost
#	service_description		dep2
#	execution_failure_criteria	n
#	notification_failure_criteria	w,u,c
#}

define servicedependency {
        host_name                       1300localhost
        dependent_host_name             1300localhost
        service_description             dep1
        dependent_service_description   dep3
        #execution_failure_criteria      w,u,c
        notification_failure_criteria   w,u,c
}

define servicedependency {
        host_name                       1300localhost
        dependent_host_name             1300localhost
        service_description             dep2
        dependent_service_description   dep3
        #execution_failure_criteria      w,u,c
        notification_failure_criteria   w,u,c
}
