Generating Nagios LDAP Schema

Luke A. Kanies luke at madstop.com
Fri Jan 9 19:45:35 CET 2004


On Fri, 9 Jan 2004 lilesb at ijet.com wrote:

> I'm curious to what LDAP server you running.  In your previous email, you
> included a URL to a Nagios schema that I then imported into my openldap
> setup.  With a little more work on the script that I posted, I don't see how
> it would be difficult to actually store Nagios configuration data in LDAP.
> There would need to be minor changes to the schema to make it work all
> situations, but then again, that would trivial.
>
> The question is, do you create a process to generate Nagios configurations,
> or do you create a Nagios LDAP xdata backend?  I would be inclined to wait
> on the latter seeing as how Nagios 2 is nearing completion.

Well, this schema is for openldap.

It's not that it's that difficult to store the data; I just wanted to have
the storage schema be definitively based on the Nagios code.

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

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

I just don't want to find myself having to modify the ldap schema all the
time, so if I were generating it from the code, I know it would always be
right.

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

Luke

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


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list