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.
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?
# 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
}
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.
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.