Page 1 of 1

No ping template not working

Posted: Thu Jan 30, 2014 10:58 am
by MikeM-2468
I brought over a no ping host template from 3.x to 4.0.2. On the 4.x, the host check sits at pending forever. Service checks are ok. What's wrong here?

Code: Select all

# Public no ping
define host{
		name							public-noping	; The name of this host template
		use								generic-host	; Inherit default values from the generic-host template
		check_period					24x7			; By default, Windows servers are monitored round the clock
		check_interval					5				; Actively check the server every 5 minutes
		retry_interval					1				; Schedule host check retries at 1 minute intervals
		max_check_attempts				3				; Check each server 3 times (max)
#		check_command					check-host-alive	; Default command to check if servers are "alive"
		notification_period				24x7			; Send notification out at any time - day or night
		notification_interval			30				; Resend notifications every 30 minutes
		notification_options			d,r				; Only send notifications for specific host states
		contact_groups					admins			; Notifications get sent to the admins by default
#		hostgroups						windows-servers ; Host groups that Windows servers should be a member of
		register						0				; DONT REGISTER THIS - ITS JUST A TEMPLATE
	}

Re: No ping template not working

Posted: Thu Jan 30, 2014 11:11 am
by tmcdonald
Well you have your check command and hostgroups commented out.

Re: No ping template not working

Posted: Thu Jan 30, 2014 1:21 pm
by MikeM-2468
And...? This is the template that worked properly on 3.x. I can't check ping, but I want to check DNS. I got it to green up by submitting a passive check.

Re: No ping template not working

Posted: Thu Jan 30, 2014 1:32 pm
by tmcdonald
Do you have a check command defined anywhere else? If the host that uses this template (and by association the template that this one uses) does not have a check command defined, then it won't know what host check command to run.