Generating Nagios LDAP Schema

Luke A. Kanies luke at madstop.com
Fri Jan 9 15:39:27 CET 2004


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

> I promise that the code that follows will not work on your system.  If isn't
> safe, and there is no error checking (use at your own risk).
>
> That being said, it would be almost trivial to generate LDIFs out of nagios
> configuration files...

I agree, it is nearly trivial to get the LDAP data.  However, I'm
interested in generating the LDAP schema itself, not just the data.

For instance, the code you sent won't work because my LDAP server doesn't
know anything about the objectclasses or attributes in question.

The people storing their configs in SQL have a similar problem:  How do we
get a valid SQL schema for any data we might end up storing?  Their
current solution is that someone has written a script which just creates
the schema, but if Nagios's configs ever change, this script will have to
be changed.

I'm in the process of writing a (rather stupid) script to just generate
the LDAP schema (i.e., something that will be imported by the ldap server
at startup) based on simple parsing of the code, but it will quite likely
break if the code it's generating from changes at all.

Luke

-- 
    SCSI is *not* magic. There are fundamental technical reasons
    why it is necessary to sacrifice a young goat to your SCSI chain
    now and then.


-------------------------------------------------------
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