Re: [Nagios-devel] ndomod.c persistence questions

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] ndomod.c persistence questions

Post by Guest »

This is a rather old post, but its catch-up time on my end...

Nicholas Whiting wrote:
> After spending some time looking through the
> ndomod.c code I have some questions in regards to
> the sinkbuf struct.
>
> 1. It's my understanding that this is only an in-memory
> linked list. Does this not create a potential for lost
> events when the broker dies. Should ndomod_sink_buffer_deinit
> function maybe write out its contents to disk on module
> termination and read in this file on ndomod restart?
> What about the case if the module dies erroneously during
> standard execution?

Good catch! I just added this functionality to the NDO mod and will
release a new version once I catch up on the other patches/requests on
the lists.

>
> 2. rather that writing sinkbuf to file, perhaps a backend
> data store such as sqlite or berkeleydb could serve as an
> additional persistence layer for these events.
>
> I apologize in advance if I've misunderstood the c code and
> my assumptions are wrong.

A simple file should be sufficient for doing this, as its quite simple
to write and read the file to/from the sinkbuf struct.

>
> Nicholas Whiting
> Network Management Administrator
> [email protected]
> www.guest-tek.com1-866-509-1010
> ext 8433
> Direct (403) 444-84333
>

Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked