<div>Hi List,</div>
<div> </div>
<div>Just a quick question?</div>
<div> </div>
<div>Could the "notes" directive of the Host definition be used to meet Steffen's need of passing a string from the Host definition to the command deffinition?</div>
<div> </div>
<div>The only issue I would be causous of is- are you publishing passwords into a text format that may be accessible to others who should not know it?</div>
<div> </div>
<div>Good Luck,</div>
<div> </div>
<div>Tony (Author of NC_NEt)</div>
<div><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">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Thanks for the detailed reply, Tony - the original reponse from Ethan must have escaped my mailbox, sorry.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">I am not comfortable patching nagios, but I might be able to do an errata for the manual - I will look into it.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Best regards,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Steffen Poulsen</font></span></div><br>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<div lang="da" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>Fra:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-devel-bounces@lists.sourceforge.net" target="_blank">nagios-devel-bounces@lists.sourceforge.net</a> [mailto:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-devel-bounces@lists.sourceforge.net" target="_blank">nagios-devel-bounces@lists.sourceforge.net</a>] <b>På vegne af </b>Anthony Montibello<br><b>
Sendt:</b> 9. oktober 2007 15:20<br><b>Til:</b> Nagios Developers List<br><b>Emne:</b> Re: [Nagios-devel] Inherited custom object vars using definitionsinresource.cfg<br></font><br> </div>
<div><span class="e" id="q_1158504a0a36653c_1">
<div></div>
<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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:step@tdc.dk" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-devel-bounces@lists.sourceforge.net" target="_blank">nagios-devel-bounces@lists.sourceforge.net
</a><br>> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-devel-bounces@lists.sourceforge.net" target="_blank"> 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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ </a><br>> _______________________________________________<br>> Nagios-devel mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-devel@lists.sourceforge.net" target="_blank">
Nagios-devel@lists.sourceforge.net</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://get.splunk.com/" target="_blank">http://get.splunk.com/</a><br>_______________________________________________
<br>Nagios-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-devel@lists.sourceforge.net" target="_blank">Nagios-devel@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">
https://lists.sourceforge.net/lists/listinfo/nagios-devel </a><br></blockquote></div><br></span></div></blockquote></div><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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://get.splunk.com/" target="_blank">
http://get.splunk.com/</a><br>_______________________________________________<br>Nagios-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br><br></blockquote>
</div><br>