Host template setting not applied to host group members

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mikemontreal
Posts: 17
Joined: Mon Oct 29, 2012 8:54 am

Host template setting not applied to host group members

Post by mikemontreal »

Host template setting are not applied to host group members

I have tried using host group "+" and "Standard"
testtemplate added--> hostgrouptest <-- testhost
I get the following error on Apply
Error: Invalid max_check_attempts value for host 'test'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/test.cfg', starting on line 16)

Note:In template I have Max check attempts set to 1
The only work around is applying testtemplate directly to host
Version - Nagios XI 2014R1.5
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host template setting not applied to host group members

Post by tmcdonald »

Are you trying to apply a template to all hosts in a group? The hostgroup option in the host template will only add a host to the group if that host is using the template.
Former Nagios employee
mikemontreal
Posts: 17
Joined: Mon Oct 29, 2012 8:54 am

Re: Host template setting not applied to host group members

Post by mikemontreal »

I thought that was the case but wasn't sure.

Thanks for your knowledge and time
Locked