Page 1 of 1

host template precedence

Posted: Wed Jul 18, 2012 10:31 pm
by pnewlon
I know I have seen the answer to this before but for the life of me I can't find it.

Is this correct? When I define a host and apply two host templates:

- local variables take highest precedence
- selecting 'additional templates' for the host
- top-most template takes precedence
- lower of the two templates has lowest precedence

Thus using the host snippet below, if 'max_check_attempts' is defined as 3 in DMB_host_delay_1 and defined as 4 in xiwizard_genericnetdevice_host, were it not already defined as 5 via local variable its value would be 3 because DMB_host_delay_1 values take precedence over xiwizard_genericnetdevice_host

define host {
host_name 08596_IB01-DSP
use DMB_host_delay_1,xiwizard_genericnetdevice_host
hostgroups 6-DSP
max_check_attempts 5

Re: host template precedence

Posted: Thu Jul 19, 2012 9:29 am
by scottwilkerson
This is correct

Re: host template precedence

Posted: Thu Jul 19, 2012 10:45 am
by pnewlon
Thank you!