<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><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 class=593574113-09102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><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 class=593574113-09102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593574113-09102007><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 class=OutlookMessageHeader lang=da dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Fra:</B>
nagios-devel-bounces@lists.sourceforge.net
[mailto:nagios-devel-bounces@lists.sourceforge.net] <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></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 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></BLOCKQUOTE></BODY></HTML>