<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Nagios-users] Generating Nagios LDAP Schema</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>This schema doesn't quite work in 2.1.  (you most likely will have to change the "_" to "-")</FONT>
</P>

<P><FONT SIZE=2>I don't think the schema will have to change for major Nagios versions.  It might have to change in 2, but some sort of upgrade path could be created.  I plan on just having the configurations in LDAP and having them generated to text files when Nagios is started or restarted.  I think this will make for a much simpler start.  Later, maybe I'll investigate hacking an LDAP backend into Nagios.</FONT></P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Luke A. Kanies [<A HREF="mailto:luke@madstop.com">mailto:luke@madstop.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, January 09, 2004 1:46 PM</FONT>
<BR><FONT SIZE=2>To: lilesb@ijet.com</FONT>
<BR><FONT SIZE=2>Cc: nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: RE: [Nagios-users] Generating Nagios LDAP Schema</FONT>
</P>
<BR>

<P><FONT SIZE=2>Well, this schema is for openldap.</FONT>
</P>

<P><FONT SIZE=2>It's not that it's that difficult to store the data; I just wanted to have</FONT>
<BR><FONT SIZE=2>the storage schema be definitively based on the Nagios code.</FONT>
</P>

<P><FONT SIZE=2>What is xdata?  I know that's the directory in nagios's source that</FONT>
<BR><FONT SIZE=2>contains all the configuration options, but does it expose interfaces or</FONT>
<BR><FONT SIZE=2>something?  Searching for it on google has yielded me nothing else.</FONT>
</P>

<P><FONT SIZE=2>Will I be able to use it with nagios to get data directly from LDAP</FONT>
<BR><FONT SIZE=2>somehow?  If so, then yeah, I'll skip the whole schema generation thing,</FONT>
<BR><FONT SIZE=2>once I've got a good one in place.</FONT>
</P>

<P><FONT SIZE=2>I just don't want to find myself having to modify the ldap schema all the</FONT>
<BR><FONT SIZE=2>time, so if I were generating it from the code, I know it would always be</FONT>
<BR><FONT SIZE=2>right.</FONT>
</P>

<P><FONT SIZE=2>As to getting the data out, that's basically already done.  I've actually</FONT>
<BR><FONT SIZE=2>almost got it going both directions:  I've written a parser for the Nagios</FONT>
<BR><FONT SIZE=2>configs, so that if someone wanted to they could parse their existing,</FONT>
<BR><FONT SIZE=2>manual configs and then write them to ldap (or SQL, but I don't have that</FONT>
<BR><FONT SIZE=2>written).</FONT>
</P>

<P><FONT SIZE=2>Luke</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>  Neonle will continue to be rude, and will nretend that you had a</FONT>
<BR><FONT SIZE=2>  small stroke which makes you unable to say or see the letter "n".</FONT>
<BR><FONT SIZE=2>  Stunid nractical joke, if you ask me.  Bunch of noon-heads, huh?</FONT>
<BR><FONT SIZE=2>                -- Fred Barling, Humorscope</FONT>
</P>

</BODY>
</HTML>