New Nagios implementation proposal
nap
naparuba at gmail.com
Fri Dec 11 16:30:49 CET 2009
On Fri, Dec 11, 2009 at 1:53 PM, Andreas Ericsson <ae at op5.se> wrote:
> On 12/09/2009 04:12 PM, nap wrote:
>> No other feed back ?
>>
>> Maybe we can start a survey :
>>
>> What do you think about think about changing the current implementation by a
>> new one based on Shinken in the dev branch for Nagios 4?
>> 1 : Stupid, useless and dangerous idea, we can still go on with the current
>> implementation
>> 2 : Can be look at, but have very slow chance of success
>> 3 : Great idea!! Why isn't it already done?
>> 4 : Obi Wan Kenobi (you just do not care about this or you just hate
>> surveys)
>>
>
> If this was done in C, as a series of patches to the current Nagios code
> and not breaking compatibility with modules (being "config and output
> compatible" is nowhere near enough I'm afraid), I'd be all over it.
>
> As it's Python, which I neither speak nor read, I have no choice but to
> say "Interesting concept, but I cannot approve of something I do not
> fully understand".
I understand easily.
>
> Process pools aren't that hard to do in C really, but altering the
> entire concept of how Nagios operates is a fairly big change. OTOH, I'm
> not thrilled about the whole "check-results are stored in tempfiles"
> thing either, and *that* was a major change too.
Maybe we can first work in the "return in socket/memory" before try
the process pool. It must be easier and can have very huge effect.
>
> Jean, let's discuss how we can move this forward within the C-code
> in such a way that we retain compatibility on all levels. Too many
> have invested too much in Merlin, NDOUtils and other C-based addons
> to relinquish them easily, and splitting the community again would
> be really, really stupid.
I'm agree with it. But I also think we cannot avoid a lot of years a
re-factory in order to use new tools like distributed object
technologies or dynamic development (you create properties for your
object, so you cut a lot part of your code). I know we can make greats
things in C. We will make great things in C for V4. But we must think
about long term development too.
I propose 2 things:
*we list ideas in Shinken absent of Nagios (process pool, return in
socket/memory, new options for services like inverse_ok_critical or
critical_is_warning) or Merlin (the "automatic cutting"
function/dispatching function) and we watch how put them into the
current code for the v4 for Nagios (next year? :) ) and v1 for Merlin.
*we open a "lab" or "long-term-dev" branch where we test things
without fearing of breaking the current modules. With such a branch,
everyone can begin to test and hack the code, see how it work, and
slowly redo everything that is done in the current code. It will call
new developers who are affrayed by C (yes, they are some :) ) so It
will not divided efforts on the main code. If this branch is a
success, we can put ideas from it to the main code, and try to make a
mix of theses branchs like you propose just above.
With this solution, community will not be divided in two, we will have
a "pool of ideas" branch and if it stabilizes in the long term, maybe
a good mix of the two worlds and give time to every one to peek into
and see how it work and if it can be used in some situations (like on
Windows for small environments) for testing.
The main difficulty will be to keep the lab not too far from the main
branch, but with a common git, it must be easier than a fork or
something like that.
>
> Would it for example be possible to use Shinken as the checking
> engine that supplies check-results back to a C-based scheduler
> that retains config parsing and module compatibility? If that's
> the case, we might be on to something. Otherwise, we'd better get
> busy re-writing parts of the Nagios core to implement a process
> pool.
The "orders" for pollers are send with Pyro, a full python module. I
know we can load C code into Python, but it must be possible to load
Python into C. But this part of Shinken is not the more important. For
C Pool, we can watch for DNX (it's threads but if we remove XML from
it, it can be fast, isn't it? ).
Jean
>
> Note that this would have to be a 4.0 release, so it won't happen
> this year.
>
> --
> Andreas Ericsson andreas.ericsson at op5.se
> OP5 AB www.op5.se
> Tel: +46 8-230225 Fax: +46 8-230231
>
> Considering the successes of the wars on alcohol, poverty, drugs and
> terror, I think we should give some serious thought to declaring war
> on peace.
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
More information about the Developers
mailing list