<div>I do not think it is a bug, have you reviewed the manual?</div>
<div> </div>
<div>It has been a while since I read the manual, However I thought the manual was clear about using custom variables.</div>
<div>Also I thought the manual is clear that the object definitions have a discrete number of published fields and they cannot be expanded in the way you desire.</div>
<div> </div>
<div>I would suggest you patch Nagios to handle this at your organization, then submit the patch, as a feature request or patch. </div>
<div> </div>
<div>Please note: that the original response from Ethan; He is the primary developer of Nagios.  </div>
<div>His comments represent that he did not believe this was a bug. but was per spec.</div>
<div> </div>
<div> </div>
<div>Good luck,</div>
<div> </div>
<div>TOny (author of NC_Net) </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 10/9/07, <b class="gmail_sendername">Steffen Poulsen</b> <<a href="mailto:step@tdc.dk">step@tdc.dk</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I would like to report this as a bug - what is the proper procedure?<br><br>Best regards,<br>Steffen Poulsen
<br><br><br>> -----Oprindelig meddelelse-----<br>> Fra: <a href="mailto:nagios-devel-bounces@lists.sourceforge.net">nagios-devel-bounces@lists.sourceforge.net</a><br>> [mailto:<a href="mailto:nagios-devel-bounces@lists.sourceforge.net">
nagios-devel-bounces@lists.sourceforge.net</a>] På vegne<br>> af Steffen Poulsen<br>> Sendt: 1. oktober 2007 16:05<br>> Til: Nagios Developers List<br>> Emne: [Nagios-devel] Inherited custom object vars using<br>
> definitions inresource.cfg<br>><br>> Hi,<br>><br>> We would like to utilize resource.cfg for holding secrets, and we are<br>> trying to do something like this:<br>><br>> Passwords in resource.cfg
:<br>><br>> $USER20$=secret1<br>> $USER21$=secret2<br>><br>> Each host use one of the passwords in hosts.cfg:<br>><br>> define host {<br>>         use                 generic-host<br>>         host_name           host1
<br>>         alias               host1<br>>         address             ip1<br>>         _snmp_community     $USER20$<br>>         }<br>><br>> Services use the community in services.cfg:<br>><br>> define service {
<br>>         use                 generic-service<br>>         host_name           host1<br>>         service_description snmp_check_load<br>>         check_command       check_snmp_11187<br>>         }<br>
><br>> define command {<br>>         command_name          check_snmp_11187<br>>         command_line          $USER1$/check_snmp -H $HOSTADDRESS$ -C<br>> $_HOSTSNMP_COMMUNITY$ -o .1.3.6.1.... -w 70<br>>         }
<br>><br>> But $_HOSTSNMP_COMMUNITY$ appears to be not set once it reaches the<br>> command_line?<br>><br>> Using something like this (defining the password directly in<br>> hosts.cfg,<br>> without going through 
resource.cfg):<br>><br>>         _snmp_community     secret3<br>><br>> Appears to work ok - so what is hindering the other approach? Is there<br>> an undocumented expansion order preventing the hierarchical use? And,
<br>> more importantly - is this per spec or in error? :-)<br>><br>> Best regards,<br>> Steffen Poulsen<br>><br>> --------------------------------------------------------------<br>> -----------<br>> This 
SF.net email is sponsored by: Microsoft<br>> Defy all challenges. Microsoft(R) Visual Studio 2005.<br>> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
</a><br>> _______________________________________________<br>> Nagios-devel mailing list<br>> <a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">
https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br>><br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems?  Stop.
<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >> <a href="http://get.splunk.com/">http://get.splunk.com/</a><br>_______________________________________________
<br>Nagios-devel mailing list<br><a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel
</a><br></blockquote></div><br>