host template precedence
Posted: Wed Jul 18, 2012 10:31 pm
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
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