Hi all,<br><br>I've read the end of this page <a href="https://nagios.sgs.net/nagios/docs/objectinheritance.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://nagios.sgs.net/nagios/docs/objectinheritance.html
</a> about multiple inheritance sources.<br><br>
I'm going to explain what I want with an example :<br><br>I have a template for windows-servers with an hostgroups variable defined.<br>I have another template for ABC-servers with also an hostgroups variable defined ( ABC is a project name).
<br><br>I want my server to belong to both.<br><br>I defined a new host like this :<br><br>define host {<br>name windows-server<br>hostgroups windows-server<br>...<br>register 0<br>}<br>define host {<br>
name ABC-server<br>
hostgroups ABC-server<br>
...<br>
register 0<br>
}<br><br>define host {<br>use  windows-server,ABC-server<br>...<br>}<br><br>The problem, and according to the documentation, is that only the hostgroups variable of the first template is kept.<br><br>Is it possible to add a concatenation feature to this inheritance, for example by adding a + in front of the hostgroups name ?
<br clear="all"><br>If I define a template like this :<br>define host {<br>

name ABC-server<br>

hostgroups +ABC-server<br>

...<br>

register 0<br>

}<br><br>I would like the hostgroups variable to be concatenated to the previous ones inherited from other templates.<br><br>I thought it was the expected behavior but it doesn't work.<br><br>Thanks,<br>-- <br>L.B.