host template precedence

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pnewlon
Posts: 86
Joined: Mon May 16, 2011 2:19 pm

host template precedence

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: host template precedence

Post by scottwilkerson »

This is correct
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
pnewlon
Posts: 86
Joined: Mon May 16, 2011 2:19 pm

Re: host template precedence

Post by pnewlon »

Thank you!
Locked