<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Howdy,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think I've found a bug with the "Object Definition Tricks" found at <A href="http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service">http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service</A>.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Here is my configuration using the tricks above, which works...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">define host {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> use production-host</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> host_name myhost</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> alias My Host</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> address x.x.x.x</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> hostgroups <FONT class="Apple-style-span" color="#002A81"><B>dell-servers</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">}</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">define hostgroup{</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> hostgroup_name<SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> <FONT class="Apple-style-span" color="#002A81"><B>dell-servers</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> alias <SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> Dell Servers</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">}</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">define service{</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> name dell-hardware</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> <SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> service_description Dell Hardware</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> <SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> hostgroup_name <FONT class="Apple-style-span" color="#002A81"><B>dell-servers</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> <SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> contact_groups sysadmins</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"> <SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN> check_command check_nrpe!check_dell</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">}</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Right up until I add back in a legacy host/service definition...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00">define host {</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"> use production-host</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"> host_name newhost</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"> alias New Host</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"> address y.y.y.y</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00">}</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"><BR class="khtml-block-placeholder"></FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00">define service {</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><B><FONT class="Apple-style-span" color="#FB0C00"> use </FONT></B></FONT><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00"> dell-hardware</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><B><FONT class="Apple-style-span" color="#FB0C00"> host</FONT></B><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><B><FONT class="Apple-style-span" color="#FB0C00"> newhost</FONT></B></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><B><FONT class="Apple-style-span" color="#FB0C00">}</FONT></B></FONT> </DIV><DIV><FONT class="Apple-style-span" face="Courier"><SPAN class="Apple-tab-span" style="white-space:pre"></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><B>Error: Service 'Dell Hardware' on host 'myhost' has already been defined</B></DIV><DIV><B>Error: Could not register service (config file .... newhost.cfg on line XX)</B></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Question: Why does "using" dell-hardware in a normal syntax (remember, my goal is to migrate the old style in red to the new hostgroups trick style above), is not compatible when the service has a hostgroup_name defined? This looks to me like a bug, where it's trying to redefine the service instead of just using it.<BR> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR></DIV><DIV>Thoughts?</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>---</DIV><DIV><BR></DIV><DIV>Caylan</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>