#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2015 Icinga Development Team
#
# #4390
# classic ui: exclude customvariable name: PASSWORD value: secret (cgi.cfg defaults)
#############################################################################################


define host{
	name				4390linux-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                     	4390linux-server
        host_name               	4390localhost
        display_name            	4390display_localhost
        alias                   	4390localhost
        address                 	127.0.0.1
        _CV1                     	cv bumsti01 shown
	_CV2				this cv value contains secret, not shown
        _PASSWORD               	thisismypw
	_COMMUNITY			snmppublic
        _DN                     	cn=icinga2-dev-host,ou=icinga,ou=main,ou=IcingaConfig,ou=LConf,dc=icinga,dc=org
}


define command {
	command_name 			4390check_dummy_custom
	command_line 			/usr/lib/nagios/plugins/check_dummy -H "$HOSTNAME$" -n "$ARG1$" -D "$ARG2$" -l "$ARG3$"
}

define service {
	name                           	4390default-servicecheck
	register                       	0
	service_description             4390 ServiceCheck Template: default
	check_command                   4390check_dummy_custom!$SERVICEDESC$!$SERVICEDISPLAYNAME$!$LASTSERVICECHECK$
	max_check_attempts              3
	check_interval                  7
	retry_interval                  3
	active_checks_enabled           0
	check_period                    testconfig-24x7
	obsess_over_service             0
	check_freshness                 1
	event_handler_enabled           0
}

define service {
	use                    		4390default-servicecheck
	host_name              		4390localhost
	service_description    		4390service
        _CV1                     	cv bumsti01 shown
	_CV2				this cv value contains secret, not shown
        _PASSWORD               	thisismypw
	_COMMUNITY			snmppublic
        _DN                     	cn=icinga2-dev-service,ou=icinga,ou=main,ou=IcingaConfig,ou=LConf,dc=icinga,dc=org
}
