[Nagiosplug-devel] check_by_ssh patch

Karl DeBisschop karl at debisschop.net
Wed Mar 31 04:50:11 CEST 2004


On Wed, 31 Mar 2004 09:26:13 +0100
Howard Wilkinson <howard at cohtech.com> wrote:

> Karl,
> 
> my approach has been that we should make the plugin writers life
> easier, even if learning a bit more about how to write a plug-in
> becomes a necessity. So I am looking to replicate the framework
> approach from Perl into C. 

Remember that the plugins are C not C++.

That being said, moving the burden of creating consistent code to
utils.c is generally a concept I support, having already written the
type checks and a variety of other functions to do that in utils.c.

Of course I'm hoping to focus on releasing 1.4 before trying to
incorporate the large amount of code you have just submitted.

Of course this comment does not answer the question I originally posed.
Currently you have chosen to go against published developer guidelines
and make usgae lines more than 80 chars long in order to meet the
requirement of your configuration generator. I'm still wondering if the
configuration info could be genrated from the source rather than from
the compiled executable.

> Big advantage that C will have is that it
> will be able to lots of things at compile time, that Perl gets to do a
> invocation time. Big disadvantage is the library will be a much larger
> body of work and I am putting it off until I can assume I have the
> Perl framework sufficiently stable to act as an exemplar of what to
> achieve if not a how to achieve it. I have thought about using a
> embedded Perl interpreter in the 'C' code plugins. But I assume this
> would go down like a lead balloon for performance reasons!

In my mind, perl is the way to write good plugins. When epn is fully
stable, there will be a fairly little reason to keep the most of the C
plugins alive. Right now, however, the basic reason to keep the C
plugins alive is for performance. So yes, performance hogs in the C
plugins will be strongly resisted.

--
Karl




More information about the Devel mailing list