Re: [Nagios-devel] patch for preserving status log history in SQL
Posted: Thu Oct 21, 2004 10:58 am
Funny you should ask.... I've been working on a system to reintroduce sql
as a datastore for nagios 2. Here's what I've found out, and maybe it'll
help you decide what to do:
Nagios 2 drops the sql code in favor of a far more generic event callback
system called the event broker. It's undocumented, but it's simple to use
if you've ever done anything with callbacks in C.
Depending on what you're preserving and how you've ordered your schema, it
might be trivial to turn event broker events into SQL statements. Even if
you find yourself in my place, where you have to filter the events instead
of converting them blindly, using a self-contained NEB module is far
simplier than trying maintain a patch against all of nagios.
There's a handy example NEB module to get you started at
http://www.louisville.edu/~tjande01/nagios
On Thu, 21 Oct 2004, Christophe Paris wrote:
> Hi list members,
>
> I've developed a patch for preserving status log history when running
> Nagios with an SQL database.
> This patch is against 1.2. It has been in production in several
> customers deployments for the last months.
>
> I'like to gather advices and also possible requirements for porting and
> commiting this into the new 2.0 branch.
>
> Thanks
> --
> Christophe Paris
> IDEALX infrastructure developer
> [email protected]
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
as a datastore for nagios 2. Here's what I've found out, and maybe it'll
help you decide what to do:
Nagios 2 drops the sql code in favor of a far more generic event callback
system called the event broker. It's undocumented, but it's simple to use
if you've ever done anything with callbacks in C.
Depending on what you're preserving and how you've ordered your schema, it
might be trivial to turn event broker events into SQL statements. Even if
you find yourself in my place, where you have to filter the events instead
of converting them blindly, using a self-contained NEB module is far
simplier than trying maintain a patch against all of nagios.
There's a handy example NEB module to get you started at
http://www.louisville.edu/~tjande01/nagios
On Thu, 21 Oct 2004, Christophe Paris wrote:
> Hi list members,
>
> I've developed a patch for preserving status log history when running
> Nagios with an SQL database.
> This patch is against 1.2. It has been in production in several
> customers deployments for the last months.
>
> I'like to gather advices and also possible requirements for porting and
> commiting this into the new 2.0 branch.
>
> Thanks
> --
> Christophe Paris
> IDEALX infrastructure developer
> [email protected]
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]