Page 1 of 1

[Nagios-devel] macro_x madness heads up

Posted: Wed Oct 27, 2010 6:59 pm
by Guest
Poke yall.

I'm in the process of rewriting the macro_x madness to something that's
actually threadsafe instead of mangling a global variable (in expensive
ways) each and every time a macro-based string is evaluated.

If you or anyone you know write eventbroker modules that rely heavily
on the availability of macro_x being globally available (though how on
earth you can do that with the current code is beyond me), you should
probably get ready to change that code, as it won't be around much
longer. How it's managed to survive this long is a f*cking mystery.

I'll start with rewriting the performance data handling functions to not
use the global macros, as I need to call that stuff from Merlin and the
fact that they're not threadsafe is causing me more headache than I'm
prepared to handle with workarounds. If that pans out ok, I'll probably
do the same with the check execution and notifications as well, unless
it's simply easier to implement it for all three straight off (which it
very well might be).

--
Andreas Ericsson [email protected]
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.





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