[Nagiosplug-devel] Please can I have GIT access

Max perldork at webwizarddesign.com
Tue Sep 1 18:21:28 CEST 2009


On Tue, Sep 1, 2009 at 11:22 AM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
> Back to the data retention debate, I agree if we go that way functions
> could be used for state retention. Another thing we could consider
> (although I believe you don't like it much) is shared memory...

Files in RAM or memcache is a lot easier to manage than shared memory.

> Finally I believe there's another method that should be considered, and
> although people are usually not very used to it it's pretty elegant
> IMHO. Just open two file descriptors for the plugin to use, one for
> reading in state and one for saving it. This could be done by Nagios
> and, for older Nagios versions or passive checks, a simple wrapper could
> be used to save the data to a file. Here's a Quick'nDirty(tm) example:

So FD 3 and 4 would be provided by Nagios to every plugin regardless
of language?

As I mentioned earlier, we have been using Memcache for this and
getting very good performance from it from our poller even with 1000
or so plugin calls on a machine saving/getting state from it every few
minutes .. it also has the advantage of being located off server if
need be ...

Or are you still speaking here of an extension to do state for
NRPE-hosted plugins?

- Max




More information about the Devel mailing list