No ping template not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

No ping template not working

Post 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
	}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: No ping template not working

Post by tmcdonald »

Well you have your check command and hostgroups commented out.
Former Nagios employee
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

Re: No ping template not working

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: No ping template not working

Post 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.
Former Nagios employee
Locked